From 2522f7f8e60dfdaa88876b9cfd4940f898d5a7d8 Mon Sep 17 00:00:00 2001 From: wieerwill Date: Tue, 19 Nov 2024 19:15:19 +0100 Subject: [PATCH] map steam deck inputs --- home.nix | 4 +- sway_inputs.txt | 180 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 sway_inputs.txt diff --git a/home.nix b/home.nix index 59b9fb0..ecc1f65 100644 --- a/home.nix +++ b/home.nix @@ -3,6 +3,7 @@ let # Define variables for your workspaces and displays display1 = "card1-eDP-1"; # Replace with your actual display identifier + touchDisplay = "10248:4117:FTS3528:00_2808:1015"; workspace1 = "1:Web"; workspace2 = "2:App"; workspace3 = "3:Chat"; @@ -153,7 +154,7 @@ in {command = "logseq";} {command = "thunderbird";} {command = "firefox";} - {command = "steam";} + #{command = "steam";} # Update environment variables {command = "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE PATH";} # Start sway-session.target @@ -162,6 +163,7 @@ in # Keyboard layout input = { + # input touchDisplay "type:touch" = { map_to_output = "${display1}"; }; diff --git a/sway_inputs.txt b/sway_inputs.txt new file mode 100644 index 0000000..ddb48ff --- /dev/null +++ b/sway_inputs.txt @@ -0,0 +1,180 @@ +[ + { + "identifier": "1133:45943:Pebble_K380s", + "name": "Pebble K380s", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 1133, + "product": 45943 + }, + { + "identifier": "1:1:AT_Translated_Set_2_keyboard", + "name": "AT Translated Set 2 keyboard", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 1, + "product": 1 + }, + { + "identifier": "10248:4117:FTS3528:00_2808:1015_UNKNOWN", + "name": "FTS3528:00 2808:1015 UNKNOWN", + "type": "tablet_tool", + "libinput": { + "send_events": "enabled", + "accel_speed": 0.0, + "accel_profile": "none", + "left_handed": "disabled" + }, + "vendor": 10248, + "product": 4117 + }, + { + "identifier": "10248:4117:FTS3528:00_2808:1015", + "name": "FTS3528:00 2808:1015", + "type": "touch", + "libinput": { + "send_events": "disabled", + "calibration_matrix": [ + 1.0, + 0.0, + 0.0, + 0.0, + 1.0, + 0.0 + ] + }, + "vendor": 10248, + "product": 4117 + }, + { + "identifier": "0:0:sof-nau8821-max_Headset_Jack", + "name": "sof-nau8821-max Headset Jack", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 0, + "product": 0 + }, + { + "identifier": "10462:4613:Valve_Software_Steam_Controller", + "name": "Valve Software Steam Controller", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 10462, + "product": 4613 + }, + { + "identifier": "10462:4613:Valve_Software_Steam_Controller", + "name": "Valve Software Steam Controller", + "type": "pointer", + "scroll_factor": 1.0, + "libinput": { + "send_events": "enabled", + "accel_speed": 0.0, + "accel_profile": "adaptive", + "natural_scroll": "disabled", + "left_handed": "disabled", + "scroll_method": "none", + "scroll_button": 273, + "scroll_button_lock": "disabled" + }, + "vendor": 10462, + "product": 4613 + }, + { + "identifier": "0:5:Lid_Switch", + "name": "Lid Switch", + "type": "switch", + "libinput": { + "send_events": "enabled" + }, + "vendor": 0, + "product": 5 + }, + { + "identifier": "0:1:Power_Button", + "name": "Power Button", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 0, + "product": 1 + }, + { + "identifier": "0:6:Video_Bus", + "name": "Video Bus", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 0, + "product": 6 + }, + { + "identifier": "0:1:Power_Button", + "name": "Power Button", + "type": "keyboard", + "repeat_delay": 600, + "repeat_rate": 25, + "xkb_layout_names": [ + "German" + ], + "xkb_active_layout_index": 0, + "xkb_active_layout_name": "German", + "libinput": { + "send_events": "enabled" + }, + "vendor": 0, + "product": 1 + } +]