Email client bound to alt+e in ratpoison mode.

This commit is contained in:
Storm Dragon 2023-08-29 16:57:06 -04:00
parent 68620696fc
commit 9c16367299

21
i38.sh
View File

@ -174,9 +174,26 @@ while [[ "$escapeKey" == "$mod" ]]; do
done done
# Volume jump # Volume jump
volumeJump=$(rangebox "How much should pressing the volume keys change the volume?" 1 15 5) volumeJump=$(rangebox "How much should pressing the volume keys change the volume?" 1 15 5)
# Email client
unset programList
for i in betterbird evolution thunderbird ; do
if command -v ${i/#-/} &> /dev/null ; then
if [ -n "$programList" ]; then
programList="$programList $i"
else
programList="$i"
fi
fi
done
if [ "$programList" != "${programList// /}" ]; then
emailClient="$(menulist "Email client:" $programList)"
else
emailClient="${programList/#-/}"
fi
emailClient="$(command -v $emailClient)"
# Web browser # Web browser
unset programList unset programList
for i in brave chromium epiphany firefox google-chrome-stable midori seamonkey ; do for i in brave chromium epiphany firefox google-chrome-stable microsoft-edge microsoft-edge-beta microsoft-edge-dev midori seamonkey ; do
if command -v ${i/#-/} &> /dev/null ; then if command -v ${i/#-/} &> /dev/null ; then
if [ -n "$programList" ]; then if [ -n "$programList" ]; then
programList="$programList $i" programList="$programList $i"
@ -398,6 +415,8 @@ bindsym c exec $sensibleTerminal, mode "default"
bindsym e exec $textEditor, mode "default" bindsym e exec $textEditor, mode "default"
# File browser bound to f # File browser bound to f
bindsym f exec $fileBrowser, mode "default" bindsym f exec $fileBrowser, mode "default"
# Email client bound to \$mod+e
bindsym \$mod+e exec $emailClient, mode "default"
# Web browser bound to w # Web browser bound to w
bindsym w exec $webBrowser, mode "default" bindsym w exec $webBrowser, mode "default"
# Kill window bound to k # Kill window bound to k