Merge branch 'master' of https://github.com/aaron-gh/I38 into aaron-gh-master

This commit is contained in:
Jeremiah Ticket 2022-11-30 12:31:35 -07:00
commit ef41ad1238
2 changed files with 14 additions and 1 deletions

5
i38.sh Executable file → Normal file
View File

@ -293,6 +293,9 @@ bindsym \$mod+F1 exec --no-startup-id sgtk-menu -f
# Desktop icons # Desktop icons
bindsym \$mod+Control+d exec --no-startup-id yad --icons --compact --no-buttons --title="Desktop" --close-on-unfocus --read-dir=${HOME}/Desktop bindsym \$mod+Control+d exec --no-startup-id yad --icons --compact --no-buttons --title="Desktop" --close-on-unfocus --read-dir=${HOME}/Desktop
#Check battery status
bindsym \$mod+Shift+b exec --no-startup-id ${i3Path}/scripts/battery_status.sh
# change focus # change focus
# alt+tab and shift tab # alt+tab and shift tab
bindsym Mod1+Shift+Tab focus left bindsym Mod1+Shift+Tab focus left
@ -302,7 +305,7 @@ bindsym Mod1+Tab focus right
bindsym \$mod+BackSpace fullscreen toggle bindsym \$mod+BackSpace fullscreen toggle
# focus the parent container # focus the parent container
bindsym \$mod+a focus parent #bindsym \$mod+a focus parent
# focus the child container # focus the child container
#bindsym \$mod+d focus child #bindsym \$mod+d focus child

10
scripts/battery_status.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/env bash
#Get battery status
cd /sys/class/power_supply
for f in `ls`; do
if [ -e $f"/capacity" ]; then
export stat=`cat $f"/status"`
export cap=`cat $f"/capacity"`
echo battery $f": "$stat", "$cap"%"
fi
done|spd-say -e