mirror of
https://github.com/stronk-dev/Tokyo-Night-Linux.git
synced 2025-03-13 23:07:50 -04:00
15 lines
No EOL
552 B
Bash
Executable file
15 lines
No EOL
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" |