reimplement config dotfiles with templates

This commit is contained in:
SALVI Jérémie
2024-08-15 17:56:06 +02:00
parent 9ae4fdb609
commit d02841fd19
49 changed files with 2451 additions and 219 deletions

35
scripts/disconnect.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
selected=$(printf "Lock\0icon\x1fsystem-lock-screen
Update\0icon\x1fsystem-software-update
Shutdown\0icon\x1fsystem-shutdown
Reboot\0icon\x1fsystem-reboot
Exit i3\0icon\x1fsystem-log-out
Reload i3\0icon\x1fsystem-log-out
Restart i3\0icon\x1fsystem-log-out" | rofi -dmenu -show-icons -i -theme disconnect -p System)
echo "$selected"
case $selected in
"Reload i3")
i3 reload
;;
"Restart i3")
i3 restart
;;
"Exit i3")
i3 exit
;;
"Update")
urxvt -e /usr/local/share/dotfiles/scripts/update.sh
;;
"Lock")
i3lock
;;
"Shutdown")
systemctl poweroff
;;
"Reboot")
reboot
;;
esac