working on keyboards some more
This commit is contained in:
parent
3dad064b3d
commit
65b5562502
3 changed files with 48 additions and 32 deletions
|
@ -86,12 +86,20 @@
|
|||
{ on = "!"; run = "shell '$SHELL' --block"; desc = "Open shell here"; }
|
||||
|
||||
{ on = ["c" "d"]; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; desc = "Drag selection";}
|
||||
{ on = ["c" "y"]; run = "yank"; desc = "Copy file (yank)"; }
|
||||
{ on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; desc = "Yank selected files (copy)"; }
|
||||
{ on = ["c" "c"]; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; desc = "Copy file (yank)"; }
|
||||
{ on = ["c" "p"]; run = "copy path"; desc = "Copy file path"; }
|
||||
{ on = ["c" "u"]; run = "unyank"; desc = "Cancel file copy"; }
|
||||
|
||||
|
||||
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; desc = "Go to top of git repo"; }
|
||||
{ on = ["g" "p"]; run = "cd ~/Projects"; desc = "Go to ~/Projects"; }
|
||||
|
||||
{ on = "v"; run = "paste"; }
|
||||
{ on = "V"; run = "paste --force"; }
|
||||
|
||||
{ on = "e"; run = "visual"; }
|
||||
{ on = "E"; run = "visual --unset"; }
|
||||
|
||||
{ on = "<C-t>"; run ="tab_create"; }
|
||||
{ on = "<C-w>"; run ="close"; }
|
||||
{ on = "<C-A-right>"; run ="tab_switch 1 --relative"; }
|
||||
|
@ -105,8 +113,6 @@
|
|||
|
||||
{ on = "M"; run = "plugin mount"; }
|
||||
|
||||
{ on = "p"; run = "plugin smart-paste"; desc = "Paste into the hovered directory or CWD"; }
|
||||
|
||||
{ on = "C"; run = "plugin ouch zip"; }
|
||||
|
||||
{ on = "T"; run = "plugin smart-tab"; desc = "Create a tab and enter the hovered directory"; }
|
||||
|
|
|
@ -8,10 +8,24 @@ let
|
|||
'';
|
||||
shared-alias = ''
|
||||
(defalias
|
||||
spcnav (tap-hold-release $tap-timeout $hold-timeout spc (layer-while-held navigation))
|
||||
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
|
||||
;; ctrl return
|
||||
ctrl-ret (tap-hold-press $tap-timeout $hold-timeout ret lctl)
|
||||
|
||||
;; layer mods
|
||||
spcnav (tap-hold $tap-timeout 300 spc (layer-while-held navigation))
|
||||
|
||||
;; space cadet shift
|
||||
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft))
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft)
|
||||
|
||||
;; home-row mods
|
||||
a (tap-hold $tap-timeout $hold-timeout a lshift)
|
||||
s (tap-hold $tap-timeout $hold-timeout s lctrl)
|
||||
d (tap-hold $tap-timeout $hold-timeout d lalt)
|
||||
;; f (tap-hold-press $tap-timeout $hold-timeout f )
|
||||
)
|
||||
'';
|
||||
|
||||
in
|
||||
|
@ -79,7 +93,7 @@ ${shared-alias}
|
|||
esc VolumeMute VolumeDown VolumeUp f4 MediaTrackPrevious MediaPlayPause MediaTrackNext f8 f9 f10 f11 f12 prtsc
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = \ del home
|
||||
tab q w e r t y u i o MediaPlayPause [ ] bspc end
|
||||
@supesc a s d f g MediaTrackNext VolumeDown VolumeUp MediaTrackPrevious ; ' ret pgup
|
||||
@supesc a s d f g MediaTrackPrevious VolumeDown VolumeUp MediaTrackNext ; ' ret pgup
|
||||
@sp-lsft z x c v b n VolumeMute , . / @sp-rsft pgup _
|
||||
lmet lmet lalt lctrl _ rctrl ralt rmet home pgdn end)
|
||||
'';
|
||||
|
@ -103,25 +117,21 @@ allow-hardware-repeat false
|
|||
|
||||
${k-vars}
|
||||
|
||||
(defalias
|
||||
spcnav (tap-hold $tap-timeout 300 spc (layer-while-held navigation))
|
||||
supesc (tap-hold-press $tap-timeout $hold-timeout esc lmet)
|
||||
sp-lsft (tap-hold-press $tap-timeout $hold-timeout S-9 lsft)
|
||||
sp-rsft (tap-hold-press $tap-timeout $hold-timeout S-0 lsft))
|
||||
${shared-alias}
|
||||
|
||||
(deflayer qwerty
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@supesc a s d f g h j k l ; ' ret
|
||||
@supesc @a @s @d f g h j k l ; ' ret
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft
|
||||
lmet lalt lctrl @spcnav rctrl ralt)
|
||||
lmet lalt @ctrl-ret @spcnav @ctrl-ret ralt)
|
||||
|
||||
(deflayer navigation
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g left down up right ; ' ret
|
||||
tab q w e r t home pgdn pgup end p [ ] \
|
||||
caps _ _ _ _ _ left down up right ; ' ret
|
||||
@sp-lsft z x c v b n m , . / @sp-rsft
|
||||
lmet lalt lctrl _ rctrl ralt)
|
||||
lmet lalt @ctrl-ret _ rctrl ralt)
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue