From 93ddb63e3781c2a66476978c4fb584865c8c2e7d Mon Sep 17 00:00:00 2001 From: Wekuz Date: Sun, 19 Apr 2026 21:05:23 +0300 Subject: [PATCH] Configure stylus on laptop --- dot_config/hypr/hyprland.conf.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dot_config/hypr/hyprland.conf.tmpl b/dot_config/hypr/hyprland.conf.tmpl index f0d1ebd..04ca2f1 100644 --- a/dot_config/hypr/hyprland.conf.tmpl +++ b/dot_config/hypr/hyprland.conf.tmpl @@ -188,6 +188,14 @@ device { sensitivity = -0.5 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 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: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" +{{- 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 ###