|
|
@@ -1,16 +1,46 @@ |
|
|
|
#!/bin/bash |
|
|
|
setxkbmap -option ctrl:swapcaps -option tilde:swapescape |
|
|
|
source ~/.profile |
|
|
|
|
|
|
|
# Setup statusbar and mail |
|
|
|
speaker_muted=🔇 |
|
|
|
speaker_low=🔈 |
|
|
|
speaker_medium=🔉 |
|
|
|
speaker_high=🔊 |
|
|
|
brightness_symbol=🔅 |
|
|
|
|
|
|
|
DELAY=1m |
|
|
|
|
|
|
|
while true; do |
|
|
|
mbsync -a |
|
|
|
sleep $DELAY |
|
|
|
done & |
|
|
|
|
|
|
|
while true; do |
|
|
|
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') |
|
|
|
volume_amount=$(printf $volume | tr -d %) |
|
|
|
if [ $volume_amount = 0 ]; then |
|
|
|
volume_symbol=$speaker_muted |
|
|
|
elif [ $volume_amount -lt 30 ]; then |
|
|
|
volume_symbol=$speaker_low |
|
|
|
elif [ $volume_amount -lt 70 ]; then |
|
|
|
volume_symbol=$speaker_medium |
|
|
|
else |
|
|
|
volume_symbol=$speaker_high |
|
|
|
fi |
|
|
|
|
|
|
|
xsetroot -name "📧Messages $(find ~/Mail -path '*/INBOX/new' -type f | wc -l) | |
|
|
|
$volume_symbol$volume | $(date +"%c")" |
|
|
|
sleep $DELAY |
|
|
|
done & |
|
|
|
|
|
|
|
setxkbmap -option ctrl:swapcaps -option tilde:swapescape |
|
|
|
picom -b |
|
|
|
~/.fehbg |
|
|
|
xbindkeys -f $HOME/Source/configs/xbindkeysrc |
|
|
|
|
|
|
|
mkfifo /tmp/torrents.fifo |
|
|
|
# aria2 downloads should be resumed here |
|
|
|
|
|
|
|
( mru update; mru updatedirs ) & |
|
|
|
|
|
|
|
# relaunch DWM if the binary changes, otherwise bail |
|
|
|
# Relaunch DWM if the binary changes, otherwise bail |
|
|
|
csum=$(sha1sum $(which dwm)) |
|
|
|
new_csum="" |
|
|
|
while true |
|
|
@@ -18,7 +48,6 @@ do |
|
|
|
if [ "$csum" != "$new_csum" ] |
|
|
|
then |
|
|
|
csum=$new_csum |
|
|
|
dwm-statusbar & |
|
|
|
dwm |
|
|
|
else |
|
|
|
exit 0 |
|
|
|