diff --git a/.bashrc b/.bashrc index 41dd28d..93dda2c 100644 --- a/.bashrc +++ b/.bashrc @@ -142,6 +142,10 @@ alias nnn='nnn -xE' alias do-xbind='xbindkeys -f $HOME/Source/configs/xbindkeysrc' alias get-rndnum='head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8' alias music="ncmpcpp" +alias chat="irssi" +alias t="task" +alias record-window='recordmydesktop --full-shots --windowid $(xwininfo | grep "id: 0x" | + grep -Eo "0x[a-z0-9]+")' # Programming diff --git a/.xsession b/.xsession index 8b468d8..a319428 100755 --- a/.xsession +++ b/.xsession @@ -14,7 +14,21 @@ messages() { '.uidvalidity' -type f | grep -vE ',[^,]*S[^,]*$'| wc -l)" } -DELAY=10m +volume() { + v="$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')" + + if [ $v -eq 0 ]; then + i="ﱝ" + elif [ $v -le 50 ]; then + i="" + else + i="墳" + fi + + printf "$i $v" +} + +DELAY=5m while true; do mbsync -a @@ -22,25 +36,14 @@ while true; do 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 $(messages) | - $volume_symbol$volume | $(date +"%c")" + xsetroot -name " Messages $(messages)  \ +$(volume)  \ + $(date +"%c")" sleep $DELAY done & setxkbmap -option ctrl:swapcaps -option tilde:swapescape -picom -b +picom -bfc ~/.fehbg xbindkeys -f $HOME/Source/configs/xbindkeysrc @@ -54,7 +57,7 @@ do if [ "$csum" != "$new_csum" ] then csum=$new_csum - dwm + awesome else exit 0 fi diff --git a/installs b/installs index e93c6ad..5ff470b 100644 --- a/installs +++ b/installs @@ -16,3 +16,11 @@ feh trash-cli pulseaudio wmctrl +recordmydesktop +bc +rtorrent +lutris +dex +awesome + +# copy awesme-copycats/* to /usr/share/awesome diff --git a/vimrc.local b/vimrc.local index a490b90..b5a9372 100644 --- a/vimrc.local +++ b/vimrc.local @@ -9,7 +9,6 @@ set nu rnu set hidden set tabstop=4 set shiftwidth=4 -runtime ftplugin/man.vim set keywordprg=:Man let mapleader = "s" set is @@ -22,7 +21,7 @@ set tgc "More terminal colours let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" let base16colorspace=256 -colorscheme base16-mocha +colorscheme base16-nord "Pymode stuff let g:pymode_folding = 0 diff --git a/xbindkeysrc b/xbindkeysrc index ff60541..68ed9ed 100644 --- a/xbindkeysrc +++ b/xbindkeysrc @@ -21,7 +21,7 @@ Mod4 + a "prompt search" - Mod4 + r + Mod4 + F1 "prompt pick" Mod4 + n