nix/package/swayscript/script/Reload.nix

31 lines
444 B
Nix

{ ... }:
{
text = ''
# Reload.
function reload() {
re() {
# Sway.
swaymsg reload
# Waybar.
pkill waybar
swaymsg exec waybar
# Tmux.
tmux source-file ~/.config/tmux/tmux.conf
# Bash.
pkill -SIGUSR1 bash
# Notifications.
makoctl reload
# Reset displays.
displayreset
}
_sway_iterate_sockets re
}
'';
}