diff options
| author | Robert Günzler <r@gnzler.io> | 2022-02-09 00:11:14 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-02-09 00:11:14 +0100 |
| commit | fcd381b368c1498034f8d0170268dc5613ba23f8 (patch) | |
| tree | 8928266f6c4d6f53e724441e730503a6722f48e2 /.config/sway | |
| parent | 15927f85498a5db739710322f6ea9fe075780771 (diff) | |
sway: put xkb config into env vars to make them work cross-compositor
Diffstat (limited to '.config/sway')
| -rw-r--r-- | .config/sway/env | 4 | ||||
| -rw-r--r-- | .config/sway/input.conf | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/.config/sway/env b/.config/sway/env index d091809..93c4421 100644 --- a/.config/sway/env +++ b/.config/sway/env @@ -1,5 +1,9 @@ #!/bin/sh +export XKB_DEFAULT_OPTIONS='caps:hyper,eurosign:5' +export XKB_DEFAULT_LAYOUT='us' +export XKB_DEFAULT_VARIANT='mac' + export GDK_BACKEND=wayland export CLUTTER_BACKEND=wayland export QT_QPA_PLATFORM=wayland-egl diff --git a/.config/sway/input.conf b/.config/sway/input.conf index 0d0a335..6d7eade 100644 --- a/.config/sway/input.conf +++ b/.config/sway/input.conf @@ -1,9 +1,8 @@ # vim: ft=i3config fdm=marker fen +seat * hide_cursor when-typing enable + input type:keyboard { - xkb_layout us - xkb_variant mac - xkb_options 'caps:hyper,lvl3:ralt_switch_multikey,eurosign:5' repeat_rate 70 repeat_delay 200 @@ -22,9 +21,6 @@ input type:touchpad { #events disabled } -#input type:tablet_tool { -# accel_profile flat -#} set { $keyboard 1:1:AT_Translated_Set_2_keyboard @@ -62,3 +58,6 @@ bindsym --input-device=$slimblade --whole-window button3 seat - cursor press but input $pen { accel_profile flat } +input "10429:148:XP-PEN_STAR_G640_Mouse" { + events disabled +} |