@@ -56,9 +56,17 @@ rtorrent() { | |||||
cp $CONFIGS/.rtorrentrc | cp $CONFIGS/.rtorrentrc | ||||
} | } | ||||
xsession() { | |||||
cp $CONFIGS/.xsession ~/ | |||||
} | |||||
installs() { | |||||
ls | |||||
} | |||||
# Used to configure a new system or reset things for an existing one. | # Used to configure a new system or reset things for an existing one. | ||||
all() { | all() { | ||||
ls | |||||
vim; neomutt; mbsync; bash; rtorrent; xsession | |||||
} | } | ||||
case $1 in | case $1 in | ||||
@@ -70,5 +78,7 @@ case $1 in | |||||
neomutt) neomutt;; | neomutt) neomutt;; | ||||
bash) bash;; | bash) bash;; | ||||
mbsync) mbsync;; | mbsync) mbsync;; | ||||
xsession) xsession;; | |||||
all) all;; | |||||
*) printf "Invalid argument\n";; | *) printf "Invalid argument\n";; | ||||
esac | esac |
@@ -5,8 +5,17 @@ speaker_low=🔈 | |||||
speaker_medium=🔉 | speaker_medium=🔉 | ||||
speaker_high=🔊 | speaker_high=🔊 | ||||
brightness_symbol=🔅 | brightness_symbol=🔅 | ||||
DELAY=1m | |||||
# Statusbar loop | # Statusbar loop | ||||
while true; do | |||||
mbsync -a | |||||
sleep $DELAY | |||||
done & | |||||
while true; do | while true; do | ||||
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') | volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') | ||||
volume_amount=$(printf $volume | tr -d %) | volume_amount=$(printf $volume | tr -d %) | ||||
if [ $volume_amount = 0 ]; then | if [ $volume_amount = 0 ]; then | ||||
@@ -19,6 +28,7 @@ while true; do | |||||
volume_symbol=$speaker_high | volume_symbol=$speaker_high | ||||
fi | fi | ||||
xsetroot -name "$volume_symbol$volume | $(date +"%c")" | |||||
sleep 1m # Update time every minute | |||||
xsetroot -name "📧Messages $(find ~/Mail -path '*/INBOX/new' -type f | wc -l) | | |||||
$volume_symbol$volume | $(date +"%c")" | |||||
sleep $DELAY | |||||
done | done |
@@ -44,6 +44,7 @@ launch() { | |||||
Browser | Browser | ||||
Hidden browser | Hidden browser | ||||
Contacts | |||||
Page | Page | ||||
Go page | Go page | ||||
Package info | Package info | ||||
@@ -79,6 +80,7 @@ launch() { | |||||
Browser) $browser_cmd;; | Browser) $browser_cmd;; | ||||
'Hidden browser') $browser_cmd --incognito;; | 'Hidden browser') $browser_cmd --incognito;; | ||||
Email) st -t 'Email' -e sh -lc neomutt;; | Email) st -t 'Email' -e sh -lc neomutt;; | ||||
Contacts) st -t 'Contacts' -e sh -lc abook;; | |||||
Images) view_images;; | Images) view_images;; | ||||
'Play clipboard') mpv "$(xclip -o -selection clipboard)";; | 'Play clipboard') mpv "$(xclip -o -selection clipboard)";; | ||||
'Play downloads') mpv "$HOME/Downloads/tmp/$(ls ~/Downloads/tmp/ | | 'Play downloads') mpv "$HOME/Downloads/tmp/$(ls ~/Downloads/tmp/ | | ||||