From 4f604c77374590d4da8741fe51ccd67f037f4463 Mon Sep 17 00:00:00 2001 From: inkch Date: Tue, 21 Jan 2025 15:34:39 +0900 Subject: [PATCH 1/4] fish: fix if-else condition for nnn environment variable --- dot_config/private_fish/env.fish.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/private_fish/env.fish.tmpl b/dot_config/private_fish/env.fish.tmpl index f25103b..4d46f2e 100644 --- a/dot_config/private_fish/env.fish.tmpl +++ b/dot_config/private_fish/env.fish.tmpl @@ -42,11 +42,11 @@ set -x LESSHISTFILE '-' # nnn (filemanager) settings if type -q nnn set -x NNN_CONTEXT_COLORS '4231' - {{- if eq .chezmoi.osRelease.id "arch" }} + {{- if eq .chezmoi.hostname "arch" }} set -x NNN_BMS 'm:/mnt/;h:/mnt/hdd/;t:/mnt/hdd/torrent;v:/mnt/hdd/vids;B:/mnt/hdd/bass;b:/mnt/hdd/books;M:/mnt/hdd/books/manga;d:~/dl;.:~/.config' - {{- else if eq .chezmoi.osRelease.id "buzz" }} + {{- else if eq .chezmoi.hostname "buzz" }} set -x NNN_BMS 'u:/usbkey;m:/mnt/;d:~/dl;t:~/dl/torrent;.:~/.config' - {{ end }} + {{- end }} end # python From 71ea0433c4ae1168a86d4c7a41b0aba0e3f90dca Mon Sep 17 00:00:00 2001 From: inkch Date: Fri, 24 Jan 2025 01:45:25 +0900 Subject: [PATCH 2/4] kmonad: disable ralt as return --- dot_config/kmonad/thinkpad.kbd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/kmonad/thinkpad.kbd b/dot_config/kmonad/thinkpad.kbd index a8c75ad..74b966f 100644 --- a/dot_config/kmonad/thinkpad.kbd +++ b/dot_config/kmonad/thinkpad.kbd @@ -42,7 +42,7 @@ s13 S-KeyF13 c13 C-KeyF13 low (tap-hold-next-release 150 spc (layer-toggle lower)) - upp (tap-hold-next-release 150 ret (layer-toggle upper)) + upp (layer-toggle upper) uti (layer-toggle util) esc #(esc C-KeyF13) ssf (sticky-key 750 lsft) From 455c3b970606f92b1af9190d9f221fdf6aca87ac Mon Sep 17 00:00:00 2001 From: inkch Date: Fri, 24 Jan 2025 01:45:59 +0900 Subject: [PATCH 3/4] kmonad: assign ret to lower F --- dot_config/kmonad/thinkpad.kbd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/kmonad/thinkpad.kbd b/dot_config/kmonad/thinkpad.kbd index 74b966f..49628b5 100644 --- a/dot_config/kmonad/thinkpad.kbd +++ b/dot_config/kmonad/thinkpad.kbd @@ -65,7 +65,7 @@ (deflayer lower grv 1 2 3 4 5 6 7 8 9 0 - = bspc tab @esc tab end r C-t @cle pgdn pgup @cri @esc [ ] \ - lctl home @ssf del tab @sme left down up rght : " ret + lctl home @ssf del ret @sme left down up rght : " ret lsft C-z C-x @sct @sal @s13 bspc @ar < > ? rsft lctl lalt @met @low @uti _ bspc ) From a803516c405c250c9ca85a0f07fea2ef5b9910c1 Mon Sep 17 00:00:00 2001 From: inkch Date: Fri, 24 Jan 2025 01:46:24 +0900 Subject: [PATCH 4/4] =?UTF-8?q?kmonad:=20add=20a=20new=20bind:=20?= =?UTF-8?q?=20R=20=E2=86=92=20Ctrl=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for org-mode --- dot_config/kmonad/thinkpad.kbd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_config/kmonad/thinkpad.kbd b/dot_config/kmonad/thinkpad.kbd index 49628b5..458a074 100644 --- a/dot_config/kmonad/thinkpad.kbd +++ b/dot_config/kmonad/thinkpad.kbd @@ -50,6 +50,7 @@ sct (sticky-key 750 lctl) sme (sticky-key 750 lmet) ar A-ret + cr C-ret ctl (tap-hold-next-release 500 S-KeyF13 lctl) met (tap-hold-next-release 500 C-KeyF13 lmet) ) @@ -64,7 +65,7 @@ (deflayer lower grv 1 2 3 4 5 6 7 8 9 0 - = bspc - tab @esc tab end r C-t @cle pgdn pgup @cri @esc [ ] \ + tab @esc tab end @cr C-t @cle pgdn pgup @cri @esc [ ] \ lctl home @ssf del ret @sme left down up rght : " ret lsft C-z C-x @sct @sal @s13 bspc @ar < > ? rsft lctl lalt @met @low @uti _ bspc