Riyyi
6 years ago
7 changed files with 189 additions and 156 deletions
@ -0,0 +1,65 @@
|
||||
# -*-conf-*- |
||||
|
||||
#--- General ---# |
||||
|
||||
# Kill focused window |
||||
super + shift + q |
||||
i3-msg kill |
||||
|
||||
# Split container horizontal / vertical |
||||
super + {h,v} |
||||
i3-msg split {h,v} |
||||
|
||||
# Container layout |
||||
super + {s,w,e} |
||||
i3-msg layout {stacking,tabbed,toggle split} |
||||
|
||||
#--- Control ---# |
||||
|
||||
# Reload i3 config |
||||
super + shift + r |
||||
i3-msg restart |
||||
|
||||
# Logout |
||||
super + shift + e |
||||
prompt.sh "Logout and exit i3?" "i3-msg exit" |
||||
|
||||
#--- Window ---# |
||||
|
||||
# Fullscreen window |
||||
super + f |
||||
i3-msg fullscreen toggle |
||||
|
||||
# Focus / move window |
||||
super + {_,shift} + {Left,Down,Up,Right} |
||||
i3-msg {focus,move} {left,down,up,right} |
||||
|
||||
# Resize window |
||||
super + alt + {Left,Down,Up,Right} |
||||
i3-msg resize {shrink width,shrink height,grow height,grow width} \ |
||||
10 px or 10 ppt |
||||
|
||||
# Floating window |
||||
super + space |
||||
i3-msg focus mode_toggle |
||||
super + shift + space |
||||
i3-msg floating toggle, sticky disable |
||||
|
||||
# Sticky floating window |
||||
super + shift + f |
||||
i3-msg fullscreen disable, floating enable, sticky enable; \ |
||||
$HOME/.scripts/wm/hover.sh |
||||
|
||||
#--- Workspace ---# |
||||
|
||||
# Switch to workspace |
||||
super + {0-9} |
||||
i3-msg workspace $WS{0-9} |
||||
|
||||
# Move focused container to workspace |
||||
super + shift + {0-9} |
||||
i3-msg move container to workspace $WS{0-9} |
||||
|
||||
# Move workspace to monitor |
||||
super + ctrl + {Left,Right} |
||||
i3-msg move workspace to output {left,right} |
@ -0,0 +1,52 @@
|
||||
# -*-conf-*- |
||||
|
||||
#--- General ---# |
||||
|
||||
# Start a terminal |
||||
super + Return |
||||
$TERMINAL |
||||
|
||||
# Start rofi (program launcher) |
||||
super + d |
||||
rofi -show run |
||||
|
||||
# mpv |
||||
super + {_,shift} + m |
||||
mpv.sh {_,queue} |
||||
|
||||
#--- Control ---# |
||||
|
||||
# Reload sxhkd config and panel |
||||
super + ctrl + r |
||||
pkill -USR1 -x sxhkd; $HOME/.scripts/panel/lemonbar.sh & |
||||
|
||||
# Lock |
||||
super + alt + l |
||||
$HOME/.scripts/wm/lock.sh |
||||
|
||||
# Shutdown |
||||
super + shift + s |
||||
prompt.sh "Shutdown computer?" "poweroff" |
||||
|
||||
# Reboot |
||||
super + shift + w |
||||
prompt.sh "Reboot computer?" "reboot" |
||||
|
||||
# Screen brightness |
||||
super + {F2,F3} |
||||
brightnesscontrol.sh {down,up} 10 |
||||
|
||||
# Screenshot (fullscreen, selection, focused window) |
||||
{_,shift,super} + @Print |
||||
scrot {_,-s,-u} -e "mv \$f $CAPTURE" |
||||
|
||||
# Volume |
||||
XF86Audio{LowerVolume,RaiseVolume,Mute} |
||||
mediacontrol.sh {down 5,up 5,toggle} |
||||
|
||||
# Touchpad toggle |
||||
# XF86iTouch |
||||
|
||||
# Touchscreen toggle |
||||
XF86HomePage |
||||
touchscreen.sh |
Loading…
Reference in new issue