diff --git a/configure b/configure index be15297..7165d9c 100755 --- a/configure +++ b/configure @@ -56,9 +56,17 @@ rtorrent() { cp $CONFIGS/.rtorrentrc } +xsession() { + cp $CONFIGS/.xsession ~/ +} + +installs() { + ls +} + # Used to configure a new system or reset things for an existing one. all() { - ls + vim; neomutt; mbsync; bash; rtorrent; xsession } case $1 in @@ -70,5 +78,7 @@ case $1 in neomutt) neomutt;; bash) bash;; mbsync) mbsync;; + xsession) xsession;; + all) all;; *) printf "Invalid argument\n";; esac diff --git a/dwm-statusbar b/dwm-statusbar index 0fc2602..3df551f 100755 --- a/dwm-statusbar +++ b/dwm-statusbar @@ -5,8 +5,17 @@ speaker_low=πŸ”ˆ speaker_medium=πŸ”‰ speaker_high=πŸ”Š brightness_symbol=πŸ”… + +DELAY=1m # Statusbar loop + +while true; do + mbsync -a + sleep $DELAY +done & + while true; do + mail volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') volume_amount=$(printf $volume | tr -d %) if [ $volume_amount = 0 ]; then @@ -19,6 +28,7 @@ while true; do volume_symbol=$speaker_high 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 diff --git a/prompt b/prompt index 3ccc6fc..a375aef 100755 --- a/prompt +++ b/prompt @@ -44,6 +44,7 @@ launch() { Browser Hidden browser Email + Contacts Page Go page Package info @@ -79,6 +80,7 @@ launch() { Browser) $browser_cmd;; 'Hidden browser') $browser_cmd --incognito;; Email) st -t 'Email' -e sh -lc neomutt;; + Contacts) st -t 'Contacts' -e sh -lc abook;; Images) view_images;; 'Play clipboard') mpv "$(xclip -o -selection clipboard)";; 'Play downloads') mpv "$HOME/Downloads/tmp/$(ls ~/Downloads/tmp/ |