Configure stylus on laptop

This commit is contained in:
Wekuz 2026-04-19 21:05:23 +03:00
parent 60e74c6b77
commit 93ddb63e37
Signed by: Wekuz
GPG key ID: 2E502F2AABD32DF9

View file

@ -188,6 +188,14 @@ device {
sensitivity = -0.5 sensitivity = -0.5
accel_profile = flat accel_profile = flat
} }
{{- if eq .chezmoi.hostname "wkz-lapdog" }}
device {
name = hp-active-pen-g3-keyboard
kb_layout = us
kb_options =
}
{{- end }}
# https://wiki.hyprland.org/Configuring/Variables/#gestures # https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures { gestures {
@ -280,6 +288,13 @@ bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "HDMI-A-1, 1920x10
bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable" bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"
bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1920x1080@60, 0x0, 1.25" bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1920x1080@60, 0x0, 1.25"
bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "HDMI-A-1, disable" bindl = , switch:off:Lid Switch, exec, hyprctl keyword monitor "HDMI-A-1, disable"
{{- if eq .chezmoi.hostname "wkz-lapdog" }}
# Stylus
bind = SUPER, F20, sendshortcut, CTRL, Z, active # Single-click
bind = SUPER, F19, sendshortcut, CTRL SHIFT, Z, active # Double-click
bind = SUPER, F18, exec, pkill wvkbd-deskintl || uwsm-app -- wvkbd-deskintl # Press & hold
{{- end }}
############################## ##############################
### WINDOWS AND WORKSPACES ### ### WINDOWS AND WORKSPACES ###