Minimal i3 setup

This commit is contained in:
Fabio Scotto di Santolo
2026-03-15 22:00:35 +01:00
parent 6e0f5eb83b
commit 34276c2de1
33 changed files with 1034 additions and 52 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/sh
choice="$(printf "⏻ Shutdown\n Reboot\n Logout\n Lock\n⏾ Suspend" \
| rofi -dmenu \
-i \
-p "Power" \
-theme ~/.config/rofi/config.rasi \
-theme-str 'window { width: 20%; location: center; anchor: center; } listview { columns: 1; spacing: 6px; }')"
[ -z "$choice" ] && exit 0
case "$choice" in
*Lock)
~/.config/i3/scripts/lockscreen
;;
*Logout)
i3-msg exit
;;
*Suspend)
~/.config/i3/scripts/lockscreen
loginctl suspend
;;
*Reboot)
loginctl reboot
;;
*Shutdown)
loginctl poweroff
;;
esac