desktop/niri: lisgd for touchscreen gestures
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -145,39 +145,60 @@ in {
|
|||||||
RestartSec = 1;
|
RestartSec = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
udiskie = mkGraphicalService {};
|
lib.mkMerge [
|
||||||
waybar = mkGraphicalService {};
|
{
|
||||||
network-manager-applet = mkGraphicalService {};
|
udiskie = mkGraphicalService {};
|
||||||
copyq = mkGraphicalService {
|
waybar = mkGraphicalService {};
|
||||||
Service =
|
network-manager-applet = mkGraphicalService {};
|
||||||
graphicalService.Service
|
copyq = mkGraphicalService {
|
||||||
// {
|
Service =
|
||||||
Environment = mkForce "QT_QPA_PLATFORM=wayland";
|
graphicalService.Service
|
||||||
|
// {
|
||||||
|
Environment = mkForce "QT_QPA_PLATFORM=wayland";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
xwayland-satellite = mkGraphicalService {
|
||||||
xwayland-satellite = mkGraphicalService {
|
Service =
|
||||||
Service =
|
graphicalService.Service
|
||||||
graphicalService.Service
|
// {
|
||||||
// {
|
Type = "simple";
|
||||||
Type = "simple";
|
ExecStart = getExe pkgs.xwayland-satellite + " :123";
|
||||||
ExecStart = getExe pkgs.xwayland-satellite + " :123";
|
};
|
||||||
};
|
};
|
||||||
};
|
wpaperd = mkGraphicalService {
|
||||||
wpaperd = mkGraphicalService {
|
Service =
|
||||||
Service =
|
mkDefault graphicalService.Service;
|
||||||
mkDefault graphicalService.Service;
|
};
|
||||||
};
|
walker = mkGraphicalService {};
|
||||||
walker = mkGraphicalService {};
|
# gnome-polkit-agent = mkGraphicalService {
|
||||||
# gnome-polkit-agent = mkGraphicalService {
|
# Service =
|
||||||
# Service =
|
# graphicalService.Service
|
||||||
# graphicalService.Service
|
# // {
|
||||||
# // {
|
# Type = "simple";
|
||||||
# Type = "simple";
|
# ExecStart = pkgs.polkit_gnome + "/libexec/polkit-gnome-authentication-agent-1";
|
||||||
# ExecStart = pkgs.polkit_gnome + "/libexec/polkit-gnome-authentication-agent-1";
|
# };
|
||||||
# };
|
# };
|
||||||
# };
|
}
|
||||||
};
|
(lib.mkIf (hostName == "morphius") {
|
||||||
|
lisgd = mkGraphicalService {
|
||||||
|
Service =
|
||||||
|
graphicalService.Service
|
||||||
|
// {
|
||||||
|
# Group = "input";
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart =
|
||||||
|
"${pkgs.lisgd}/bin/lisgd"
|
||||||
|
+ " -d /dev/input/by-path/pci-0000:00:15.1-platform-i2c_designware.1-event"
|
||||||
|
+ " -g \"1,DU,TL,*,P,niri msg action toggle-overview\""
|
||||||
|
+ " -g \"3,UD,T,*,P,niri msg action focus-workspace-up\""
|
||||||
|
+ " -g \"3,DU,B,*,P,niri msg action focus-workspace-down\""
|
||||||
|
+ " -g \"3,LR,L,*,P,niri msg action focus-column-left\""
|
||||||
|
+ " -g \"3,RL,R,*,P,niri msg action focus-column-right\"";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (config.networking) hostName;
|
||||||
inherit (config.sops) secrets;
|
inherit (config.sops) secrets;
|
||||||
inherit (inputs) mysecrets;
|
inherit (inputs) mysecrets;
|
||||||
sshKeys = f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub";
|
sshKeys = f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub";
|
||||||
@ -13,15 +15,20 @@ in {
|
|||||||
users.users = {
|
users.users = {
|
||||||
user = {
|
user = {
|
||||||
hashedPasswordFile = secrets."user-password-hashed".path;
|
hashedPasswordFile = secrets."user-password-hashed".path;
|
||||||
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
|
extraGroups =
|
||||||
|
["wheel" "video" "libvirtd" "dialout"]
|
||||||
|
/*
|
||||||
|
for lisgd
|
||||||
|
*/
|
||||||
|
++ lib.optional (hostName == "morphius" && config.desktop.niri.enable) "input";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
openssh.authorizedKeys.keyFiles = map sshKeys [
|
openssh.authorizedKeys.keyFiles = map sshKeys [
|
||||||
"dunamis"
|
"dunamis"
|
||||||
"eldrid"
|
"eldrid"
|
||||||
"sarien"
|
|
||||||
"legion"
|
"legion"
|
||||||
"morphius"
|
"morphius"
|
||||||
|
"sarien"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user