added tofi config
This commit is contained in:
19
.config/tofi/config
Normal file
19
.config/tofi/config
Normal file
@ -0,0 +1,19 @@
|
||||
anchor = top
|
||||
width = 100%
|
||||
height = 30
|
||||
horizontal = true
|
||||
font-size = 12
|
||||
prompt-text = " run: "
|
||||
font = Input Mono
|
||||
outline-width = 0
|
||||
border-width = 0
|
||||
background-color = #000000
|
||||
min-input-width = 120
|
||||
result-spacing = 15
|
||||
padding-top = 0
|
||||
padding-bottom = 0
|
||||
padding-left = 0
|
||||
padding-right = 0
|
||||
|
||||
|
||||
selection-color = #7bc6e2
|
||||
15
.config/tofi/powermenu.sh
Executable file
15
.config/tofi/powermenu.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e " Shutdown\n Reboot\n Suspend\n" | tofi | awk '{print tolower($2)}' )
|
||||
|
||||
case $op in
|
||||
shutdown)
|
||||
shutdown now
|
||||
;;
|
||||
reboot)
|
||||
shutdown -r now
|
||||
;;
|
||||
suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user