fix variables and inputs

This commit is contained in:
wieerwill 2024-12-13 15:17:53 +01:00
parent a9d6ed21a6
commit 94f26e3fe5
3 changed files with 33 additions and 30 deletions

View File

@ -10,7 +10,7 @@ in
./sway.nix ./sway.nix
./terminal.nix ./terminal.nix
./vim.nix ./vim.nix
] ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.

View File

@ -28,8 +28,8 @@
mako # notification system developed by swaywm maintainer mako # notification system developed by swaywm maintainer
# steam deck touch compability in non-steam games # steam deck touch compability in non-steam games
caribou #caribou
evtest # for input key testing #evtest # for input key testing
# # It is sometimes useful to fine-tune packages, for example, by applying # # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the # # overrides. You can do that directly here, just don't forget the
@ -38,4 +38,4 @@
(pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
]; ];
} }

View File

@ -1,4 +1,18 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let
# Define variables for your workspaces and displays
display1 = "card1-eDP-1";
touchDisplay = "10248:4117:FTS3528:00_2808:1015";
workspace1 = "1:Web";
workspace2 = "2:App";
workspace3 = "3:Chat";
workspace4 = "4:Read";
workspace5 = "5:Code";
workspace6 = "6:Password";
workspace7 = "7:Shell";
workspace8 = "8:Media";
in
{ {
# Enable Sway window manager # Enable Sway window manager
@ -11,17 +25,6 @@
terminal = "alacritty"; terminal = "alacritty";
menu = "bemenu-run"; menu = "bemenu-run";
# Define variables for your workspaces and displays
display1 = "card1-eDP-1";
workspace1 = "1:Web";
workspace2 = "2:App";
workspace3 = "3:Chat";
workspace4 = "4:Read";
workspace5 = "5:Code";
workspace6 = "6:Password";
workspace7 = "7:Shell";
workspace8 = "8:Media";
# Autostart applications # Autostart applications
startup = [ startup = [
{ command = "swaymsg workspace ${workspace7}; exec nvim"; } { command = "swaymsg workspace ${workspace7}; exec nvim"; }
@ -36,16 +39,16 @@
# Start sway-session.target # Start sway-session.target
{ command = "systemctl --user start sway-session.target";} { command = "systemctl --user start sway-session.target";}
# Switch to the desired workspaces on each output # Switch to the desired workspaces on each output
{ command = "swaymsg focus output ${display1}; swaymsg workspace ${workspace1}"; } #{ command = "swaymsg focus output ${display1}; swaymsg workspace ${workspace1}"; }
{ command = "swaymsg focus output ${display2}; swaymsg workspace ${workspace3}"; } #{ command = "swaymsg focus output ${display2}; swaymsg workspace ${workspace3}"; }
]; ];
# Keyboard layout # Keyboard layout
input = { input = {
# Enable touch screen # Enable touch screen
"10248:4117:FTS3528:00_2808:1015" = { "10248:4117:FTS3528:00_2808:1015" = {
send_events = "enabled"; #send_events = "enabled";
tap_enabled = true; #tap_enabled = "true";
map_to_output = "${display1}"; map_to_output = "${display1}";
}; };
@ -57,11 +60,11 @@
# Configure Steam Controller pointer # Configure Steam Controller pointer
"10462:4613:Valve_Software_Steam_Controller" = { "10462:4613:Valve_Software_Steam_Controller" = {
# For the pointer device # For the pointer device
accel_speed = 0.0; #accel_speed = "0.0";
natural_scroll = false; natural_scroll = "false";
left_handed = false; left_handed = "false";
scroll_method = "two_finger"; scroll_method = "two_finger";
middle_emulation = true; middle_emulation = "true";
}; };
# Configure Steam Controller keyboard # Configure Steam Controller keyboard
@ -72,16 +75,16 @@
# Set German layout for all keyboards # Set German layout for all keyboards
"type:keyboard" = { "type:keyboard" = {
xkb_layout = "de"; xkb_layout = "de";
repeat_delay = 600; repeat_delay = "600";
repeat_rate = 25; repeat_rate = "25";
}; };
# For all pointers # For all pointers
"type:pointer" = { "type:pointer" = {
accel_speed = 0.0; # accel_speed = "0.0";
natural_scroll = false; natural_scroll = "false";
left_handed = false; left_handed = "false";
middle_emulation = true; middle_emulation = "true";
}; };
"*" = { "*" = {
@ -176,4 +179,4 @@
}; };
}; };
}; };
} }