20 lines
603 B
Nix
20 lines
603 B
Nix
{pkgs, config, ...}: {
|
|
home.packages = with pkgs; [
|
|
libinput
|
|
libinput-gestures
|
|
];
|
|
|
|
# Ensure libinput-gestures service is enabled
|
|
wayland.windowManager.sway.systemd.extraCommands = [
|
|
"systemctl --user enable libinput-gestures.service"
|
|
"systemctl --user start libinput-gestures.service"
|
|
];
|
|
|
|
xdg.configFile."libinput-gestures.conf".text = ''
|
|
gesture swipe left 4 swaymsg workspace next
|
|
gesture swipe right 4 swaymsg workspace next
|
|
gesture swipe down 4 swaylock-wrapper
|
|
gesture pinch in 4 rofi -combi-modi window,drun,run,ssh,combi -show combi -show-icons
|
|
'';
|
|
}
|