Skip to content

Instantly share code, notes, and snippets.

@lasida
Last active November 27, 2025 23:31
Show Gist options
  • Select an option

  • Save lasida/38b98f3174a263af9dacf6aa6be7e4bd to your computer and use it in GitHub Desktop.

Select an option

Save lasida/38b98f3174a263af9dacf6aa6be7e4bd to your computer and use it in GitHub Desktop.
Omarchy Mouseless + Remap with Kanata
(defcfg
danger-enable-cmd yes
process-unmapped-keys yes
concurrent-tap-hold yes
linux-dev-names-include ("Keyboard K380 Keyboard")
)
;; -------------------------
;; SOURCE LAYOUT
;; -------------------------
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
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 h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet rctl
)
;; -------------------------
;; ALIAS
;; -------------------------
(defalias
;; Wallpaper ON (mouse mode)
neon-on (multi
(movemouse-accel-up 1 130 1 2)
)
;; Mouse layer activator (hold space)
spc-mouse
;; Tap = space only. Hold (after 550ms) = neon wallpaper + mouse layer until release.
(tap-hold 720 750
spc
(multi
(layer-while-held mouse))
)
;; wl-kbptr trigger
kbptr (cmd "sh" "-c" "wl-kbptr -o modes=floating,click -o mode_floating.source=detect")
;; Mouse moves
mup (tap-hold-press 110 140
(movemouse-accel-up 1 130 1 2)
(movemouse-accel-up 1 65 1 3))
mdn (tap-hold-press 110 140
(movemouse-accel-down 1 130 1 2)
(movemouse-accel-down 1 65 1 3))
mlf (tap-hold-press 110 140
(movemouse-accel-left 1 130 1 2)
(movemouse-accel-left 1 65 1 3))
mrt (tap-hold-press 110 140
(movemouse-accel-right 1 130 1 2)
(movemouse-accel-right 1 65 1 3))
;; Scroll
mwu (mwheel-up 50 120)
mwd (mwheel-down 50 120)
)
;; -------------------------
;; KEYBOARD LAYER
;; -------------------------
(deflayer keyboard
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
lmet a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt @spc-mouse ralt rmet rctl
)
;; -------------------------
;; MOUSE LAYER
;; -------------------------
(deflayer mouse
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w @mup r t lalt pgup up pgdn @mwu @mwd esc \
lmet a @mlf @mdn @mrt mlft mrgt left down rght ret ' ret
spc z x c v lctl mlft @kbptr prtsc . / bck
lctl lmet lalt @spc-mouse ralt rmet rctl
)
sudo pacman -S hyprpaper kanata wl-kbptr
#create service daemon
kanata.service -> Remap & Keyboard Layering
hyprpaper.service -> Background Change Indiacator
wl-kbptr -> Home row alternatie
#!/bin/bash
export WAYLAND_DISPLAY="${WAYLAND_DISPLAY:-wayland-1}"
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"
exec wlrctl "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment