[nixbox] Configure logipos and hyprland to switch between desktops.

This commit is contained in:
jmug
2026-01-18 01:41:51 -08:00
parent e87207d4d8
commit 67f7e8fee8
2 changed files with 81 additions and 0 deletions
+2
View File
@@ -156,6 +156,8 @@
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
"$mainMod, left, workspace, -1"
"$mainMod, right, workspace, +1"
# Move active window to a workspace with mainMod + SHIFT + [0-9]
"$mainMod SHIFT, 1, movetoworkspace, 1"
+79
View File
@@ -102,6 +102,7 @@ in
hyprlock
# Idling
sway-audio-idle-inhibit
logiops
];
environment.pathsToLink = [ "/share/applications" "/share/xdg-desktop-portal" ];
fonts = {
@@ -113,6 +114,84 @@ in
];
};
# Logiops daemon
systemd.packages = [ pkgs.logiops ];
systemd.services.logid.wantedBy = [ "multi-user.target" ];
environment.etc = {
"logid.cfg" = {
# For some reason scroll inversion does not work for the mx vertical...
text = ''
devices: (
{
name: "Wireless Mouse MX Master 3";
hiresscroll: {
};
thumbwheel: {
invert: true;
};
buttons: (
{
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_LEFT"];
};
},
{
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_RIGHT"];
};
}
);
},
{
name: "MX Vertical Advanced Ergonomic Mouse";
hiresscroll: {
hires: true;
invert: false;
target: false;
};
buttons: (
{
cid: 0x53;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEUP"];
};
},
{
cid: 0x56;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA", "KEY_PAGEDOWN"];
};
},
{
cid: 0xfd;
action =
{
type : "Keypress";
keys: ["KEY_LEFTMETA"];
};
}
);
}
);
'';
};
};
security.pam.services.hyprlock = {};
programs.hyprland = {
enable = true;