[nixbox] Configure logipos and hyprland to switch between desktops.
This commit is contained in:
@@ -156,6 +156,8 @@
|
|||||||
"$mainMod, 8, workspace, 8"
|
"$mainMod, 8, workspace, 8"
|
||||||
"$mainMod, 9, workspace, 9"
|
"$mainMod, 9, workspace, 9"
|
||||||
"$mainMod, 0, workspace, 10"
|
"$mainMod, 0, workspace, 10"
|
||||||
|
"$mainMod, left, workspace, -1"
|
||||||
|
"$mainMod, right, workspace, +1"
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ in
|
|||||||
hyprlock
|
hyprlock
|
||||||
# Idling
|
# Idling
|
||||||
sway-audio-idle-inhibit
|
sway-audio-idle-inhibit
|
||||||
|
logiops
|
||||||
];
|
];
|
||||||
environment.pathsToLink = [ "/share/applications" "/share/xdg-desktop-portal" ];
|
environment.pathsToLink = [ "/share/applications" "/share/xdg-desktop-portal" ];
|
||||||
fonts = {
|
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 = {};
|
security.pam.services.hyprlock = {};
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user