0
0
Fork 0
mirror of https://github.com/stronk-dev/Tokyo-Night-Linux.git synced 2024-10-17 20:58:16 -04:00
tokyo-night-linux/.config/wofi/wofi-power.sh

16 lines
527 B
Bash
Raw Permalink Normal View History

2021-07-13 11:26:13 -04:00
#!/bin/sh
2021-07-14 10:57:27 -04:00
Shutdown_command="systemctl poweroff"
Reboot_command="systemctl reboot"
Logout_command="swaymsg exit"
Hibernate_command="systemctl hibernate"
Suspend_command="systemctl suspend"
Back_command=""
2021-07-13 11:26:13 -04:00
# you can customise the rofi command all you want ...
2021-07-14 10:57:27 -04:00
rofi_command="rofi -theme /home/marco/.config/wofi/launcherSmoll.rasi"
options=$'Back\nShutdown\nLogout\nReboot\nHibernate\nSuspend'
2021-07-13 11:26:13 -04:00
# ... because the essential options (-dmenu and -p) are added here
eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command"