adds rofi as styling
This commit is contained in:
parent
d03146f3a1
commit
1682bed87f
9 changed files with 124 additions and 8 deletions
25
.config/rofi/scripts/system.sh
Executable file
25
.config/rofi/scripts/system.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$HOME/.config/rofi/scripts/_lib.sh"
|
||||
|
||||
SCRIPTS_DIR="$HOME/.config/scripts"
|
||||
|
||||
declare -A scripts
|
||||
scripts["Shutdown"]="systemctl poweroff"
|
||||
scripts["Reboot"]="systemctl reboot"
|
||||
scripts["Logout"]="logout terminate-user $USER"
|
||||
scripts["Lock"]="$SCRIPTS_DIR/LockScreen.sh"
|
||||
scripts["Notification Center (SwayNC)"]="swaync-client -t -sw"
|
||||
|
||||
setOption no-custom true
|
||||
setOption use-hot-keys true
|
||||
case $ROFI_RETV in
|
||||
0)
|
||||
printf "%s\n" "${!scripts[@]}"
|
||||
;;
|
||||
1)
|
||||
command="${scripts[$@]}"
|
||||
coproc ($command >/dev/null 2>&1)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue