1
0
Fork 0

for now sxhkd will use alt as a modifier, also a bit of an attempt to make all the config in python

This commit is contained in:
Von Random 2015-06-26 03:39:37 +03:00
parent cfdea9b660
commit 233ba33ec7
2 changed files with 61 additions and 20 deletions

41
bspwm-py/bspwmrc Executable file
View file

@ -0,0 +1,41 @@
#!/usr/bin/env python
from subprocess import call
color_fg_normal = '#f9f9f9'
color_fg_focused = color_fg_normal
color_bg_normal = '#2d2d2d'
color_bg_focused = '#00612b'
color_urgent = '#610000'
color_sticky_focused = '#030061'
config = {
'focused_border_color': color_bg_focused,
'normal_border_color': color_bg_normal,
'urgent_border_color': color_urgent,
'focused_sticky_border_color': color_sticky_focused,
'top_padding': '18',
'border_width': '2',
'window_gap': '19',
'focus_follows_pointer': 'true',
'pointer_follows_monitor': 'true',
'split_ratio': '0.50',
'borderless_monocle': 'true',
'gapless_monocle': 'true',
'focus_by_distance': 'true',
'ignore_ewmh_focus': 'true'
}
rules = {
'URxvt': 'desktop=^2 follow=on floating=on'
}
bspc_cmd = '/usr/bin/bspc'
call([bspc_cmd, 'monitor', '-d', '1', '2', '3', '4', '5'])
for key, value in config.items():
call([bspc_cmd, 'config', key, value])
for key, value in rules.items():
call([bspc_cmd, 'rule', '-a', key, value])

View file

@ -2,67 +2,67 @@
# bspwm hotkeys
#
super + control + c
alt + control + c
bspc window -c
super + control + k
alt + control + k
bspc window -k
alt + Return
bspc window -t fullscreen
super + {j,k}
alt + {j,k}
bspc window -f {next,prev}
super + shift + {j,l}
alt + shift + {j,l}
bspc window -e {down,right} +32
super + shift + {k,h}
alt + shift + {k,h}
bspc window -e {down,right} -32
super + Tab
alt + Tab
bspc window -t floating
super + Return
alt + Return
bspc window -s biggest
super + {1-9}
alt + {1-9}
bspc desktop -f {1-9}
super + shift + {1-9}
alt + shift + {1-9}
bspc window -d {1-9}
super + t
alt + t
bspc desktop -R 90
super + m
alt + m
bspc desktop -l next
super + f
alt + f
/home/von/.config/bspwm/bsptf
~button{1-3}
bspc pointer -g focus
super + button{1-3}
alt + button{1-3}
bspc pointer -g {move,resize_side,resize_corner}
super + !button{1-3}
alt + !button{1-3}
bspc pointer -t %i %i
super + @button{1-3}
alt + @button{1-3}
bspc pointer -u
super + x
alt + x
termite
super + {r,u}
alt + {r,u}
/home/von/.config/bspwm/bspmenu_{run,url}
alt + F2
dmenu_run
super + z
alt + z
bash -c "until i3lock -entc 661111 -i /home/von/Pictures/wallpaper.png; do :; done"
Print
@ -71,8 +71,8 @@ Print
alt + shift + F12
/home/von/vscripts/compton_toggle
super + {Left,Up,Right,Down}
alt + {Left,Up,Right,Down}
bspc window --presel {left,up,right,down}
super + o
alt + o
bspc monitor -f {right,left}