Clean up configs, remove bashrc conflicting with bash
This commit is contained in:
13
home/bin/rofi-logout
Executable file
13
home/bin/rofi-logout
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -location 0 -yoffset -200 -font "xos4 Terminus 10" -eh 1 -line-padding 2 -padding 30 -no-config -lines 4 -color-enabled -color-window "#1F2326, #F1F1F1, #1F2326" -color-normal "#1F2326, #F1F1F1, #1F2326, #4E88CF, #1F2326")
|
||||
|
||||
if [[ "$ANS" == *lock ]]; then
|
||||
i3lock-fancy
|
||||
elif [[ "$ANS" == *logout ]]; then
|
||||
i3-msg exit
|
||||
elif [[ "$ANS" == *reboot ]]; then
|
||||
systemctl reboot
|
||||
elif [[ "$ANS" == *shutdown ]]; then
|
||||
systemctl poweroff
|
||||
fi
|
Reference in New Issue
Block a user