nix/package/swayscript/script/Reload.nix

27 lines
335 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-09-19 11:35:19 +03:00
# Notifications.
makoctl reload
2024-08-20 11:27:59 +03:00
}
_sway_iterate_sockets re
}
'';
}