Updated the readme. Added power options to the panel mode. It relies on lxsession being installed and is optional, so not necessary for those who prefer to shutdown from the command line.

This commit is contained in:
Storm Dragon
2025-04-08 19:20:39 -04:00
parent 002c5ce1d7
commit 7ce6e3d10b
2 changed files with 26 additions and 11 deletions

9
i38.sh
View File

@@ -276,6 +276,10 @@ while getopts "${args}" i ; do
esac
done
# Mod1 alt
# Mod4 super
# Mod2 and Mod3 not usually defined.
# Configuration questions
export i3Mode=$(yesno "Would you like to use ratpoison mode? This behaves more like strychnine, with an escape key followed by keybindings. (Recommended)")
# Prevent setting ratpoison mode key to the same as default mode key
@@ -607,6 +611,11 @@ $(if command -v blueman-manager &> /dev/null ; then
echo "bindsym b exec --no-startup-id blueman-manager, mode \"default\""
fi)
$(if command -v lxsession-logout &> /dev/null ; then
echo "# Power options bound to p"
echo "bindsym p exec --no-startup-id lxsession-logout, mode \"default\""
fi)
# Exit panel mode without any action
bindsym Escape mode "default"
bindsym Control+g mode "default"