Split i3 classic config with XFCE+i3 config
This commit is contained in:
7
xfce/.config/i3/scripts/lockscreen.sh
Executable file
7
xfce/.config/i3/scripts/lockscreen.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#/usr/bin/env bash
|
||||
|
||||
BACKGROUND="${XDG_CONFIG_HOME:-${HOME}/.config}/i3/lockscreen.png"
|
||||
i3lock --image="${BACKGROUND}" \
|
||||
--color=000000 \
|
||||
--ignore-empty-password \
|
||||
--show-failed-attempts
|
||||
12
xfce/.config/i3/scripts/poweroff.sh
Executable file
12
xfce/.config/i3/scripts/poweroff.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
chosen=$(echo -e "⏻ Shutdown\n Restart\n Logout\n Suspend\n Hibernate" | rofi -dmenu -p "Power Menu:" -theme-str 'window {width: 20%;}')
|
||||
|
||||
case "$chosen" in
|
||||
"⏻ Shutdown") systemctl poweroff ;;
|
||||
" Restart") systemctl reboot ;;
|
||||
" Logout") loginctl terminate-session $XDG_SESSION_ID ;;
|
||||
" Suspend") systemctl suspend ;;
|
||||
" Hibernate") systemctl hibernate ;;
|
||||
*) exit 0 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user