update various configs

This commit is contained in:
Veneficium 2025-07-18 13:03:45 +02:00
parent 809e6f2157
commit ef72e46e77
4 changed files with 36 additions and 29 deletions

View file

@ -24,6 +24,9 @@
treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
helix.url = "github:helix-editor/helix";
helix.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs =
@ -36,6 +39,7 @@
niri, niri,
nix-vscode-extensions, nix-vscode-extensions,
treefmt-nix, treefmt-nix,
helix,
... ...
}: }:
{ {
@ -47,6 +51,7 @@
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
nix-vscode-extensions.overlays.default nix-vscode-extensions.overlays.default
helix.overlays.default
niri.overlays.niri niri.overlays.niri
]; ];
} }

View file

@ -351,6 +351,8 @@ binds {
// The quit action will show a confirmation dialog to avoid accidental exits. // The quit action will show a confirmation dialog to avoid accidental exits.
Mod+Shift+E { quit; } Mod+Shift+E { quit; }
Mod+V { toggle-window-floating; }
// Powers off the monitors. To turn them back on, do any input like // Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key. // moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; } Mod+Shift+P { power-off-monitors; }

View file

@ -17,7 +17,26 @@
services.mako = { services.mako = {
enable = true; enable = true;
extraConfig = builtins.readFile ./mako.conf; settings = {
sort = "+time";
on-button-left = "invoke-default-action";
on-button-middle = "dismiss-group";
on-button-right = "dismiss";
on-touch = "invoke-default-action";
height = 99;
width = 299;
margin = 0;
padding = 10;
border-size = 1;
border-radius = 1;
icons = 1;
layer = "top";
anchor = "bottom-right";
markup = 1;
actions = 1;
text-alignment = "center";
default-timeout = 10000;
};
}; };
services.swayosd = { services.swayosd = {
enable = true; enable = true;
@ -30,6 +49,9 @@
]; ];
style = builtins.readFile ./waybar.css; style = builtins.readFile ./waybar.css;
}; };
programs.fuzzel.enable = true;
services.wpaperd.enable = true; services.wpaperd.enable = true;
programs.niri.config = builtins.readFile ./config.kdl; programs.niri.config = builtins.readFile ./config.kdl;
} }

View file

@ -2,22 +2,9 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"spacing": 10, "spacing": 10,
"modules-left": [ "modules-left": ["niri/workspaces"],
"niri/workspaces" "modules-center": ["clock#1", "clock#2", "clock#3"],
], "modules-right": ["pulseaudio", "memory", "cpu", "battery", "disk", "tray"],
"modules-center": [
"clock#1",
"clock#2",
"clock#3"
],
"modules-right": [
"pulseaudio",
"memory",
"cpu",
"battery",
"disk",
"tray"
],
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"format": "{name}" "format": "{name}"
@ -40,10 +27,7 @@
"format-muted": "", "format-muted": "",
"format-icons": { "format-icons": {
"headphones": "", "headphones": "",
"default": [ "default": ["", ""]
"",
""
]
}, },
"scroll-step": 5, "scroll-step": 5,
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
@ -65,13 +49,7 @@
"critical": 15 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-icons": [ "format-icons": ["", "", "", "", ""]
"",
"",
"",
"",
""
]
}, },
"disk": { "disk": {
"interval": 5, "interval": 5,
@ -82,4 +60,4 @@
"icon-size": 22, "icon-size": 22,
"spacing": 6 "spacing": 6
} }
} }