Basic libinput gestures + structured shell aliases
This commit is contained in:
parent
2d6084b28a
commit
1f49192ab3
6 changed files with 68 additions and 19 deletions
26
modules/libinput-gestures.nix
Normal file
26
modules/libinput-gestures.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, config, ... }:
|
||||
let
|
||||
libinputGesturesCmd = "${pkgs.libinput-gestures}/bin/libinput-gestures";
|
||||
xdotool = "${pkgs.xdotool}/bin/xdotool";
|
||||
in
|
||||
{
|
||||
systemd.user.services."libinput-gestures" = {
|
||||
Unit = {
|
||||
Description = "Touchpad gestures";
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = libinputGesturesCmd;
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."libinput-gestures.conf".text = ''
|
||||
gesture swipe left ${xdotool} key alt+Right
|
||||
gesture swipe right ${xdotool} key alt+Left
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue