feat: added touch input mapping (closes #19)
This commit is contained in:
parent
7e4c4c5ad1
commit
5d37bf3a30
|
@ -129,6 +129,8 @@
|
|||
file
|
||||
];
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
|
|
10
users/common/touchscreen.nix
Normal file
10
users/common/touchscreen.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: let
|
||||
# This is small script to map touchinputs to outputs
|
||||
# in an ideal world this would happen automatically but
|
||||
# with udev and X11 we truly do not live in an ideal world
|
||||
fix = pkgs.writeShellScriptBin "fix-shit" ''
|
||||
xinput --map-to-output "ELAN2514:00 04F3:2817" eDP-1
|
||||
'';
|
||||
in {
|
||||
home.packages = [fix];
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
common/desktop.nix
|
||||
common/polybar.nix
|
||||
common/rofi.nix
|
||||
common/touchscreen.nix
|
||||
#common/touchegg.nix
|
||||
];
|
||||
|
||||
|
@ -23,6 +24,7 @@
|
|||
signal-desktop
|
||||
spotify
|
||||
xdragon
|
||||
xournalpp
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue