urxvt clipboard/vselect/xdg-open, rewrite color red in terminal, added dunst, added ranger config

This commit is contained in:
TuDatTr
2019-10-29 13:56:54 +01:00
parent 352b894ce2
commit 92001234c6
24 changed files with 6130 additions and 416 deletions

34
config/.scripts/startup.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
function kb_routine {
oldKBD="$KBD";
case "$(xset -q | grep -A 0 'LED' | cut -c59-67)" in
"00000000")
KBD="English (US)" ;;
"00001000")
KBD="Deutsch" ;;
*) KBD="unknown" ;;
esac
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