Browse Source

Change chat client to irssi

master
Immanuel Onyeka 2 years ago
parent
commit
35675bea5f
5 changed files with 34 additions and 20 deletions
  1. +4
    -0
      .bashrc
  2. +20
    -17
      .xsession
  3. +8
    -0
      installs
  4. +1
    -2
      vimrc.local
  5. +1
    -1
      xbindkeysrc

+ 4
- 0
.bashrc View File

@@ -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


+ 20
- 17
.xsession View File

@@ -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


+ 8
- 0
installs View File

@@ -16,3 +16,11 @@ feh
trash-cli
pulseaudio
wmctrl
recordmydesktop
bc
rtorrent
lutris
dex
awesome

# copy awesme-copycats/* to /usr/share/awesome

+ 1
- 2
vimrc.local View File

@@ -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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
let base16colorspace=256
colorscheme base16-mocha
colorscheme base16-nord

"Pymode stuff
let g:pymode_folding = 0


+ 1
- 1
xbindkeysrc View File

@@ -21,7 +21,7 @@
Mod4 + a

"prompt search"
Mod4 + r
Mod4 + F1

"prompt pick"
Mod4 + n

Loading…
Cancel
Save