Improve waybar and custom scripts
This commit is contained in:
31
modules/optionnals/desktop/config/etc/xdg/scripts/wayland-disconnect.sh
Executable file
31
modules/optionnals/desktop/config/etc/xdg/scripts/wayland-disconnect.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
selected=$(printf "Lock\0icon\x1fsystem-lock-screen
|
||||
Update\0icon\x1fsystem-software-update
|
||||
Shutdown\0icon\x1fsystem-shutdown
|
||||
Reboot\0icon\x1fsystem-reboot
|
||||
Exit hyprland\0icon\x1fsystem-log-out
|
||||
Reload hyprland\0icon\x1fsystem-log-out" | rofi -dmenu -show-icons -i -theme /etc/xdg/rofi/disconnect.rasi -p System)
|
||||
|
||||
echo "$selected"
|
||||
|
||||
case $selected in
|
||||
"Lock")
|
||||
/nix/store/4pwvyyjrc7frwkycbszakd7z6nf44qgv-hyprlock-0.9.2/bin/hyprlock
|
||||
;;
|
||||
"Update")
|
||||
kitty /usr/local/share/dotfiles/scripts/update.sh
|
||||
;;
|
||||
"Shutdown")
|
||||
systemctl poweroff
|
||||
;;
|
||||
"Reboot")
|
||||
reboot
|
||||
;;
|
||||
"Exit hyprland")
|
||||
hyprctl dispatch exit
|
||||
;;
|
||||
"Reload hyprland")
|
||||
hyprctl reload
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user