From 21531260a4f0615284b46b91d970d65d91e4174b Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 6 Jan 2024 12:20:46 +0100 Subject: up --- .config/zsh/alias.zsh | 3 ++- .local/bin/kb | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 3ac04fc..f090628 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -63,7 +63,8 @@ alias \ gjdo="$HOME/dev/perl/gitjoe-scripts/gitjoe-do.pl" \ ddgit='git --git-dir=$HOME/docs/redot --work-tree=$HOME' \ dgit='git --git-dir=$HOME/docs/dotfiles-bsd --work-tree=$HOME' \ - confgit='git --git-dir=$HOME/docs/conffiles-bsd --work-tree=/' + confgit='git --git-dir=$HOME/docs/conffiles-bsd --work-tree=/' \ + git-pull-all='git branch -r | sed "1d;s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; git checkout "${remote#origin/}"; git pull; done' bssh() { user='rbousset' host='bastion' diff --git a/.local/bin/kb b/.local/bin/kb index 43e4cbb..6391df1 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -47,13 +47,13 @@ xset r rate 200 150 setxkbmap -option setxkbmap -layout us -variant intl -#if [ "$(hostname -s)" = "mother" ]; then -# setxkbmap -option ctrl:swapcaps -# setxkbmap -option caps:none -# xmodmap -e 'keycode 9 = Tab' -# xmodmap -e 'keycode 23 = Escape' -# xmodmap -e 'keycode 37 =' -#fi +if [ "$(hostname -s)" = "motherqwe" ]; then + setxkbmap -option ctrl:swapcaps + setxkbmap -option caps:none + xmodmap -e 'keycode 9 = Tab' + xmodmap -e 'keycode 23 = Escape' + xmodmap -e 'keycode 37 =' +fi notify-send -u low -t 2000 'kb' ' Swapped Esc/Tab' # vim: filetype=sh -- cgit v1.2.3