From 581696120c576fa794040be14ef236e49e8a64ef Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 19 May 2022 12:50:45 +0200 Subject: keyd: created a layout for steelseries keyboard --- .config/keyd/default.conf | 1 + .config/keyd/steelseries.conf | 107 ++++++++++++++++++++++++++++++++++++++++++ .config/zsh/.zshrc | 6 +-- 3 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 .config/keyd/steelseries.conf diff --git a/.config/keyd/default.conf b/.config/keyd/default.conf index d6434e8..1f39d25 100644 --- a/.config/keyd/default.conf +++ b/.config/keyd/default.conf @@ -2,6 +2,7 @@ * -046d:4079 -4653:0001 +-04b4:0101 # Colemak-DH (matrix) [main] diff --git a/.config/keyd/steelseries.conf b/.config/keyd/steelseries.conf new file mode 100644 index 0000000..a11f704 --- /dev/null +++ b/.config/keyd/steelseries.conf @@ -0,0 +1,107 @@ +[ids] +04b4:0101 + +# Colemak-DH (matrix) +[main] +esc = overload(switch, capslock) +capslock = overload(extend, esc) +leftalt = layer(meta) +e = f +r = p +t = b +y = j +u = l +i = u +o = y +p = ; +s = r +d = s +f = t +h = m +j = n +k = e +l = i +; = o +v = d +b = v +n = k +m = h + +[qwerty] +e = e +r = r +t = t +y = y +u = u +i = i +o = o +p = p +s = s +d = d +f = f +h = h +j = j +k = k +l = l +; = ; +v = v +b = b +n = n +m = m + +[shift] +capslock = overload(extend+shift, S-esc) + +[meta] +esc = M-esc +capslock = overload(extend+meta, esc) + +[extend:C] +j = left +k = down +l = up +; = right +z = C-z +x = C-x +c = C-c +v = C-v +1 = f1 +2 = f2 +3 = f3 +4 = f4 +5 = f5 +6 = f6 +7 = f7 +8 = f8 +9 = f9 + +[extend+shift] +j = C-left +k = C-down +l = C-up +; = C-right +z = C-S-z +x = C-S-x +c = C-S-c +v = C-S-v + +[extend+meta] +j = M-left +k = M-down +l = M-up +; = M-right + +[meta+shift] +j = M-S-left +k = M-S-down +l = M-S-up +; = M-S-right + +[extend+alt] +j = A-left +k = A-down +l = A-up +; = A-right + +[switch] +q = toggle(qwerty) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 774d861..df737ba 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -4,6 +4,8 @@ SAVEHIST=5000 setopt hist_ignore_all_dups unsetopt beep +precmd () {print -Pn "\e]0;%n@%m:%~\a"} + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' menu select autoload -Uz compinit @@ -17,18 +19,14 @@ export PATH export EDITOR=vim export VISUAL=vim export PAGER="less -i -j.5 -R" -# export PAGER="less -i -j.5 -R --use-color -Dd+y -Du+c" export LESS_TERMCAP_mb=$'\E[1;31m' export LESS_TERMCAP_md=$'\E[1;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_ue=$'\E[0m' -# export LESS_TERMCAP_so=$'\E[1;33m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_us=$'\E[1;32m' -precmd () {print -Pn "\e]0;%n@%m:%~\a"} - alias sudo='doas' alias sudoedit='doasedit' -- cgit v1.2.3-70-g09d2