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
2021-07-13 17:26:13 +02:00

15 lines
552 B
Bash
Executable file

#!/bin/sh
poweroff_command="systemctl poweroff"
reboot_command="systemctl reboot"
logout_command="swaymsg exit"
hibernate_command="systemctl hibernate"
suspend_command="systemctl suspend"
# you can customise the rofi command all you want ...
rofi_command="rofi -width 10 -hide-scrollbar -bg #586e75 -opacity 100 -padding 5 -theme ~/.config/wofi/launcher.rasi"
options=$'poweroff\nreboot\nlogout\nhibernate\nsuspend'
# ... because the essential options (-dmenu and -p) are added here
eval \$"$(echo "$options" | $rofi_command -dmenu -p "")_command"