Update many things and add new colorscheme, termite config, tilda config, Xresource, etc...
This commit is contained in:
@ -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)%"
|
||||
|
16
scripts/bin/change_termite_colorscheme
Executable file
16
scripts/bin/change_termite_colorscheme
Executable 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
|
@ -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=""
|
||||
|
7
scripts/workarounds/inc_max_user_watches.sh
Normal file
7
scripts/workarounds/inc_max_user_watches.sh
Normal 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
|
Reference in New Issue
Block a user