Update many things and add new colorscheme, termite config, tilda config, Xresource, etc...

This commit is contained in:
2018-04-30 00:37:31 +02:00
parent 304f883c1e
commit 5ef18b7a9d
17 changed files with 646 additions and 67 deletions

View File

@ -1,13 +1,17 @@
#!/bin/bash
STATUS="$(cat /sys/class/power_supply/BAT1/status)"
BAT="$(cat /sys/class/power_supply/BAT1/capacity)"
STATUS="/sys/class/power_supply/BAT1/status"
BAT="/sys/class/power_supply/BAT1/capacity"
if [ ! -f "$STATUS" ] || [ ! -f "$BAT" ]; then
exit
fi
OUTPUT="♥ "
if [ "$STATUS" == "charging" ]
if [ "$(cat $STATUS)" == "charging" ]
then
OUTPUT=$OUTPUT"l"
OUTPUT="$OUTPUTl"
fi
echo "$OUTPUT$BAT%"
echo " | $OUTPUT$(cat $BAT)%"

View File

@ -0,0 +1,16 @@
#!/bin/bash
termite_conf=~/.config/termite
if [ -f "$termite_conf"/light.config ]; then
mv "$termite_conf/config" "$termite_conf/dark.config"
mv "$termite_conf/light.config" "$termite_conf/config"
elif [ -f "$termite_conf"/dark.config ]; then
mv "$termite_conf/config" "$termite_conf/light.config"
mv "$termite_conf/dark.config" "$termite_conf/config"
else
echo "Error while changing colorscheme!"
return -1
fi
killall -USR1 termite

View File

@ -30,10 +30,10 @@ if [ -n "$ARTIST" ]
length=$((${#ARTIST} - $index + 2))
ARTIST=${ttest::-$length}
fi
OUTPUT="$SYMBOL $ARTIST - $TITLE"
OUTPUT=" | $SYMBOL $ARTIST - $TITLE"
if [ ${#OUTPUT} -gt 35 ]
then
OUTPUT="$SYMBOL $TITLE"
OUTPUT=" | $SYMBOL $TITLE"
fi
else
OUTPUT=""

View File

@ -0,0 +1,7 @@
#!/bin/bash
# for e.g. nextcloud client, if it doesn't sync anymore
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf
sudo sysctl --system