mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
[wofi] replace rofi with wofi in sway
This commit is contained in:
parent
e4726c9174
commit
72acfd474b
4 changed files with 55 additions and 3 deletions
20
wofi/system.sh
Executable file
20
wofi/system.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
chosen=$(echo -e "[Cancel]\nLogout\nShutdown\nReboot\nSuspend\nHibernate\nHybrid-sleep\nSuspend-then-hibernate" | wofi --dmenu --insensitive)
|
||||
|
||||
if [[ $chosen = "Logout" ]]; then
|
||||
swaymsg exit
|
||||
loginctl terminate-session "$(loginctl session-status | awk 'NR==1{print $1}')"
|
||||
elif [[ $chosen = "Shutdown" ]]; then
|
||||
systemctl poweroff
|
||||
elif [[ $chosen = "Reboot" ]]; then
|
||||
systemctl reboot
|
||||
elif [[ $chosen = "Suspend" ]]; then
|
||||
systemctl suspend
|
||||
elif [[ $chosen = "Hibernate" ]]; then
|
||||
systemctl hibernate
|
||||
elif [[ $chosen = "Hybrid-sleep" ]]; then
|
||||
systemctl hibernate
|
||||
elif [[ $chosen = "Suspend-then-hibernate" ]]; then
|
||||
systemctl suspend-then-hibernate
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue