dotfiles

My personal configuration files.
Log | Files | Refs

commit fe442a64d6f11457eed2ca81a643249fa62348d9
parent 8ab13fc535e0c9eb07b2e8333bd7233a1a9a548d
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Thu,  8 Oct 2020 02:30:38 -0400

layouttoggle updates its dwmblock

Diffstat:
M.config/aliasrc | 82++++++++++++++++++++++++++++++++++++++++----------------------------------------
M.local/bin/dwmbar/dwmb-test | 2+-
M.local/bin/layouttoggle | 10++--------
3 files changed, 44 insertions(+), 50 deletions(-)

diff --git a/.config/aliasrc b/.config/aliasrc @@ -13,45 +13,45 @@ # First column contains the alias # Second column contains the command to execute -|---------+----------------------------------------------------------------------| -| :e | $EDITOR | -| :q | exit | -| adog | git log --all --decorate --oneline --graph | -| cdd | cd .. | -| cs | cowsay -f sodomized | -| df | yadm | -| dfa | yadm add | -| dfc | yadm commit | -| dfp | yadm pull | -| dfup | yadm commit -a ; yadm push && yadm push all master && kill -39 $(pidof dwmblocks)| -| e | $EDITOR | -| ew | nvim ./main.rnw | -| fetch | clear && printf '\n$(pfetch)\n$(bars)\n' | -| fp | fontpreview | -| fu | fuck | -| f | vicd | -| g | git | -| goobook | goobook -c $HOME/.config/goobook/config | -| gor | go run *.go | -| less | nvimpager | -| mmi | make && sudo make install | -| op | e main.rnw | -| R | R -q | -| td | todotxt-machine -c ~/.config/todotxt-machine/config | -| tm | tmux | -| tmcd | tmux attach-session -t | -| tmdd | tmux kill-session -t | -| tmls | tmux list-sessions | -| t | todo.sh -d $HOME/.config/todo/todo.cfg | -| ta | todo.sh -d $HOME/.config/todo/todo.cfg a | -| tl | todo.sh -d $HOME/.config/todo/todo.cfg ls | -| v | nvim | -| vc | expressvpn connect && dwmbar | -| vd | expressvpn disconnect && dwmbar | -| vm | expressvpn connect camo && dwmbar | -| vpn | expressvpn | -| vs | expressvpn connect smart && dwmbar | -| xx | chmod +x | -| yadog | yadm log --all --decorate --oneline --graph | -|---------+----------------------------------------------------------------------| +|---------+-----------------------------------------------------------------------------------| +| :e | $EDITOR | +| :q | exit | +| adog | git log --all --decorate --oneline --graph | +| cdd | cd .. | +| cs | cowsay -f sodomized | +| df | yadm | +| dfa | yadm add | +| dfc | yadm commit | +| dfp | yadm pull | +| dfup | yadm commit -a ; yadm push && yadm push all master && kill -39 $(pidof dwmblocks) | +| e | $EDITOR | +| ew | nvim ./main.rnw | +| fetch | clear && printf '\n$(pfetch)\n$(bars)\n' | +| fp | fontpreview | +| fu | fuck | +| f | vicd | +| g | git | +| goobook | goobook -c $HOME/.config/goobook/config | +| gor | go run *.go | +| less | nvimpager | +| mmi | make && sudo make install | +| op | e main.rnw | +| R | R -q | +| td | todotxt-machine -c ~/.config/todotxt-machine/config | +| tm | tmux | +| tmcd | tmux attach-session -t | +| tmdd | tmux kill-session -t | +| tmls | tmux list-sessions | +| t | todo.sh -d $HOME/.config/todo/todo.cfg | +| ta | todo.sh -d $HOME/.config/todo/todo.cfg a | +| tl | todo.sh -d $HOME/.config/todo/todo.cfg ls | +| v | nvim | +| vc | expressvpn connect && dwmbar | +| vd | expressvpn disconnect && dwmbar | +| vm | expressvpn connect camo && dwmbar | +| vpn | expressvpn | +| vs | expressvpn connect smart && dwmbar | +| xx | chmod +x | +| yadog | yadm log --all --decorate --oneline --graph | +|---------+-----------------------------------------------------------------------------------| diff --git a/.local/bin/dwmbar/dwmb-test b/.local/bin/dwmbar/dwmb-test @@ -1,3 +1,3 @@ #!/bin/sh -cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 +cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 99 | head -n 1 diff --git a/.local/bin/layouttoggle b/.local/bin/layouttoggle @@ -5,20 +5,14 @@ layout=$(cat $HOME/.cache/layout) case "$layout" in ca) setxkbmap -model pc104 -layout us -variant ,, echo us > $HOME/.cache/layout - # pkill -RTMIN+46 dwmblocks - $SCRIPTS/cron/dwmbar ;; us) setxkbmap -model pc104 -layout ca -variant ,, echo ca > $HOME/.cache/layout - # pkill -RTMIN+46 dwmblocks - $SCRIPTS/cron/dwmbar ;; *) setxkbmap -model pc104 -layout us -variant ,, echo us > $HOME/.cache/layout - # pkill -RTMIN+46 dwmblocks - $SCRIPTS/cron/dwmbar ;; esac -# [[ "$layout" == "us" ]] && setxkbmap -model pc104 -layout ca -variant ,, ; echo ca > $HOME/.cache/layout && $SCRIPTS/cron/dwmbar -# [[ "$layout" == "us" ]] || setxkbmap -model pc104 -layout ca -variant ,, ; echo ca > $HOME/.cache/layout && $SCRIPTS/cron/dwmbar +kill -38 $(pidof dwmblocks) +