nix/package/swayscript/script/Reload.nix

24 lines
294 B
Nix
Raw Normal View History

2024-08-20 11:27:59 +03:00
{ ... }: {
text = ''
# Reload.
function reload() {
re() {
2024-08-20 15:14:18 +03:00
# Sway.
2024-08-20 11:27:59 +03:00
swaymsg reload
2024-08-20 15:14:18 +03:00
# Waybar.
2024-08-20 11:27:59 +03:00
pkill waybar
swaymsg exec waybar
2024-08-20 15:14:18 +03:00
# Tmux.
2024-08-20 11:27:59 +03:00
tmux source-file ~/.config/tmux/tmux.conf
2024-08-20 15:14:18 +03:00
# Bash.
pkill -SIGUSR1 bash
2024-08-20 11:27:59 +03:00
}
_sway_iterate_sockets re
}
'';
}