aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-14 20:20:06 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-16 20:16:19 +0100
commit0f56054e8f1baf2920bf8ce0b3bbb7b46eb1d4c9 (patch)
tree027b544918ca9a038e887aebfcba8375c1bf6cd0
parente818f9488c4bbd6f1e04dae5e4cbe50a94b004b1 (diff)
Fixing the keyboard stuff in Bash
-rw-r--r--bashrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/bashrc b/bashrc
index 76092ee..e1a7f9f 100644
--- a/bashrc
+++ b/bashrc
@@ -5,11 +5,11 @@ complete -cf sudo man which
_have() { type "$1" &>/dev/null; }
_source_if() { [[ -r "$1" ]] && source "$1"; }
-_have setxkbmap && test -n "$DISPLAY" &&
- setxkbmap -option caps:escape &>/dev/null
+# _have setxkbmap && test -n "$DISPLAY" && setxkbmap -option caps:escape &>/dev/null
_have xset && xset r rate 300 30
-_have xsetkbmap && setxkbmap -option ctrl:nocaps
+_have setxkbmap && setxkbmap -option ctrl:nocaps
+_have setxkbmap && setxkbmap -layout gb
_have pandoc && . <(pandoc --bash-completion)
shopt -s globstar
@@ -80,6 +80,7 @@ set -o noclobber
# aliases
alias c='printf "\e[H\e[2J"'
+alias xterm-blue='xterm -bg Dark\ Slate\ Blue -fg white'
alias temp='cd $(mktemp -d)'
alias am='append_to_masterlist'
alias annex-sync='cd ~/annex/ && git annex sync && cd -'
@@ -364,3 +365,4 @@ ytmp3-split-to-chapters() {
yt-dlp -f 'bestaudio' -x --audio-format mp3 --split-chapters -o '%(title)s.%(ext)s' "$1" && cd - || return
}
. "$HOME/.cargo/env"
+eval "$(direnv hook bash)"