Fixed batteries script notifying for critically low battery charge
This commit is contained in:
@ -51,7 +51,7 @@ for battery in $batteries; do
|
|||||||
text+="<span foreground=\"${COLOR}\">${BATTEXT}</span> "
|
text+="<span foreground=\"${COLOR}\">${BATTEXT}</span> "
|
||||||
|
|
||||||
[ "$STAT" = "Charging" ] && ischarging=1
|
[ "$STAT" = "Charging" ] && ischarging=1
|
||||||
[ "$BAT" -gt 10 ] hasenough=1
|
[ "$BAT" -gt 10 ] && hasenough=1
|
||||||
done
|
done
|
||||||
printf "${text:0:-1}\n\n"
|
printf "${text:0:-1}\n\n"
|
||||||
|
|
||||||
|
|||||||
@ -177,7 +177,7 @@ bindsym $mod+Shift+c reload
|
|||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
bindsym $mod+Shift+e exec "i3-nagbar -f 'pango:IosevkaTerm NF 14' -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
# bindsym $mod+Shift+s exec --no-startup-id "slop | xargs -I % shotgun -g % | pst | xclip -selection clipboard -i"
|
# bindsym $mod+Shift+s exec --no-startup-id "slop | xargs -I % shotgun -g % | pst | xclip -selection clipboard -i"
|
||||||
bindsym Print exec --no-startup-id "maim | ~/bin/pst | xclip -selection clipboard && notify-send 'Screenshot created' || notify-send 'Screenshoter failed'"
|
bindsym Print exec --no-startup-id "maim | ~/bin/pst | xclip -selection clipboard && notify-send 'Screenshot created' || notify-send 'Screenshoter failed'"
|
||||||
|
|||||||
Reference in New Issue
Block a user