Sway : Add reload key.
This commit is contained in:
parent
9311efa511
commit
0838a84a86
|
@ -8,6 +8,7 @@ in {
|
||||||
bindsym --to-code ${mod}+l exec 'powerlimit toggle'
|
bindsym --to-code ${mod}+l exec 'powerlimit toggle'
|
||||||
bindsym --to-code ${mod}+m exec 'swayscript montoggle'
|
bindsym --to-code ${mod}+m exec 'swayscript montoggle'
|
||||||
bindsym --to-code ${mod}+p exec 'powersave toggle'
|
bindsym --to-code ${mod}+p exec 'powersave toggle'
|
||||||
|
bindsym --to-code ${mod}+r exec 'swayscript reload'
|
||||||
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'
|
bindsym --to-code ${mod}+v exec 'swayscript vpntoggle'
|
||||||
bindsym --to-code ${mod}+x exec 'systemctl poweroff -i'
|
bindsym --to-code ${mod}+x exec 'systemctl poweroff -i'
|
||||||
bindsym --to-code ${mod}+z exec 'systemctl suspend -i'
|
bindsym --to-code ${mod}+z exec 'systemctl suspend -i'
|
||||||
|
|
15
package/swayscript/script/Reload.nix
Normal file
15
package/swayscript/script/Reload.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ ... }: {
|
||||||
|
text = ''
|
||||||
|
# Reload.
|
||||||
|
function reload() {
|
||||||
|
re() {
|
||||||
|
swaymsg reload
|
||||||
|
pkill waybar
|
||||||
|
swaymsg exec waybar
|
||||||
|
tmux source-file ~/.config/tmux/tmux.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
_sway_iterate_sockets re
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue