From fcd381b368c1498034f8d0170268dc5613ba23f8 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 9 Feb 2022 00:11:14 +0100 Subject: sway: put xkb config into env vars to make them work cross-compositor --- .config/sway/env | 4 ++++ .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 +} -- cgit 1.4.1