urxvt clipboard/vselect/xdg-open, rewrite color red in terminal, added dunst, added ranger config
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/bin/bash
|
||||
KBD="";
|
||||
oldKBD="";
|
||||
while :
|
||||
do
|
||||
|
||||
function kb_routine {
|
||||
oldKBD="$KBD";
|
||||
case "$(xset -q | grep -A 0 'LED' | cut -c59-67)" in
|
||||
"00000000")
|
||||
@@ -15,5 +13,22 @@ do
|
||||
if [ "$KBD" != "$oldKBD" ]; then
|
||||
notify-send "$KBD";
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function battery_routine {
|
||||
capacity=$(< /sys/class/power_supply/BAT0/capacity)
|
||||
if [[ $capacity -lt 5 ]]; then
|
||||
echo $capacity
|
||||
fi
|
||||
}
|
||||
|
||||
KBD="";
|
||||
oldKBD="";
|
||||
|
||||
while :
|
||||
do
|
||||
kb_routine
|
||||
battery_routine
|
||||
sleep 1;
|
||||
done
|
||||
Reference in New Issue
Block a user