Merge branch 'master' of ssh://git.nx2.site:20022/nx2/dotfiles
This commit is contained in:
@@ -1,32 +1,16 @@
|
||||
{ config, pkgs, lib, host, ... }:
|
||||
{ pkgs, lib, host, ... }:
|
||||
lib.mkIf (host == "NxXPS")
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.libinput-gestures
|
||||
pkgs.ydotool
|
||||
home.packages = with pkgs; [
|
||||
libinput-gestures
|
||||
];
|
||||
|
||||
home.file.".config/libinput/gestures".text = ''
|
||||
home.file.".config/libinput-gestures.conf".text = ''
|
||||
# Swipe threshold (0-100)
|
||||
swipe_threshold 0
|
||||
|
||||
# Gestures
|
||||
gesture swipe left 3 echo key k:276 | dotool
|
||||
gesture swipe right 3 echo key k:275 | dotool
|
||||
gesture swipe right 3 ydotool key 158:1 158:0 # back
|
||||
gesture swipe left 3 ydotool key 159:1 159:0 # forward
|
||||
'';
|
||||
# systemd.user.services = {
|
||||
# ydotoold = {
|
||||
# Unit = {
|
||||
# Description = "An auto-input utility for wayland";
|
||||
# Documentation = [ "man:ydotool(1)" "man:ydotoold(8)" ];
|
||||
# };
|
||||
|
||||
# Service = {
|
||||
# ExecStart = "/run/current-system/sw/bin/ydotoold --socket-path /tmp/ydotool_socket ";
|
||||
# };
|
||||
# Install = {
|
||||
# WantedBy = ["default.target"];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user