update niri config more
This commit is contained in:
parent
2648a90126
commit
3db35ea68b
2 changed files with 77 additions and 103 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
url = "github:noctalia-dev/noctalia/cachix";
|
url = "github:noctalia-dev/noctalia/cachix";
|
||||||
};
|
};
|
||||||
niri = {
|
niri = {
|
||||||
url = "github:sodiboo/niri-flake";
|
url = "github:epireyn/niri-flake";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-index-database = {
|
nix-index-database = {
|
||||||
|
|
|
||||||
|
|
@ -102,8 +102,40 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.niri-unstable;
|
package = pkgs.niri-unstable;
|
||||||
settings = {
|
settings = {
|
||||||
|
blur = {
|
||||||
|
passes = 2;
|
||||||
|
offset = 3.0;
|
||||||
|
noise = 0.03;
|
||||||
|
saturation = 1.0;
|
||||||
|
};
|
||||||
|
layer-rules = [
|
||||||
|
{
|
||||||
|
matches = [{ namespace = "^noctalia-(bar-[^\"]+|notification|dock|panel|attached-panel|osd)$"; }];
|
||||||
|
background-effect.xray = false;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [{ namespace = "^noctalia-backdrop"; }];
|
||||||
|
place-within-backdrop = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
window-rules = [
|
window-rules = [
|
||||||
{draw-border-with-background = false;}
|
{
|
||||||
|
draw-border-with-background = false;
|
||||||
|
geometry-corner-radius = {
|
||||||
|
bottom-left = 8.0;
|
||||||
|
bottom-right = 8.0;
|
||||||
|
top-left = 8.0;
|
||||||
|
top-right = 8.0;
|
||||||
|
};
|
||||||
|
clip-to-geometry = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
background-effect = {
|
||||||
|
blur = true;
|
||||||
|
xray = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
prefer-no-csd = true;
|
prefer-no-csd = true;
|
||||||
xwayland-satellite = {
|
xwayland-satellite = {
|
||||||
|
|
@ -135,6 +167,8 @@ in {
|
||||||
|
|
||||||
"Mod+c".action.spawn = ["noctalia" "msg" "panel-open" "clipboard"];
|
"Mod+c".action.spawn = ["noctalia" "msg" "panel-open" "clipboard"];
|
||||||
|
|
||||||
|
"Mod+e".action.spawn = ["noctalia" "msg" "panel-open" "launcher" "/emo"];
|
||||||
|
|
||||||
"Mod+Minus".action.spawn = ["noctalia" "msg" "volume-down"];
|
"Mod+Minus".action.spawn = ["noctalia" "msg" "volume-down"];
|
||||||
"Mod+Equal".action.spawn = ["noctalia" "msg" "volume-up"];
|
"Mod+Equal".action.spawn = ["noctalia" "msg" "volume-up"];
|
||||||
"XF86AudioLowerVolume".action.spawn = ["noctalia" "msg" "volume-down"];
|
"XF86AudioLowerVolume".action.spawn = ["noctalia" "msg" "volume-down"];
|
||||||
|
|
@ -203,36 +237,6 @@ in {
|
||||||
"Mod+Control+Shift+Left".action = config.lib.niri.actions.move-window-to-monitor-left;
|
"Mod+Control+Shift+Left".action = config.lib.niri.actions.move-window-to-monitor-left;
|
||||||
"Mod+Control+Shift+Up".action = config.lib.niri.actions.move-window-to-monitor-up;
|
"Mod+Control+Shift+Up".action = config.lib.niri.actions.move-window-to-monitor-up;
|
||||||
"Mod+Control+Shift+Down".action = config.lib.niri.actions.move-window-to-monitor-down;
|
"Mod+Control+Shift+Down".action = config.lib.niri.actions.move-window-to-monitor-down;
|
||||||
|
|
||||||
# "$mod, left, hy3:movefocus, l"
|
|
||||||
# "$mod, right, hy3:movefocus, r"
|
|
||||||
# "$mod, up, hy3:movefocus, u"
|
|
||||||
# "$mod, down, hy3:movefocus, d"
|
|
||||||
# "$mod, h, hy3:movefocus, l"
|
|
||||||
# "$mod, j, hy3:movefocus, d"
|
|
||||||
# "$mod, k, hy3:movefocus, u"
|
|
||||||
# "$mod, l, hy3:movefocus, r"
|
|
||||||
|
|
||||||
# "$mod SHIFT, left, hy3:movewindow, l"
|
|
||||||
# "$mod SHIFT, right, hy3:movewindow, r"
|
|
||||||
# "$mod SHIFT, up, hy3:movewindow, u"
|
|
||||||
# "$mod SHIFT, down, hy3:movewindow, d"
|
|
||||||
# "$mod SHIFT, h, hy3:movewindow, l"
|
|
||||||
# "$mod SHIFT, j, hy3:movewindow, d"
|
|
||||||
# "$mod SHIFT, k, hy3:movewindow, u"
|
|
||||||
# "$mod SHIFT, l, hy3:movewindow, r"
|
|
||||||
|
|
||||||
# "$mod CTRL, left, resizeactive, -80 0"
|
|
||||||
# "$mod CTRL, right, resizeactive, 80 0"
|
|
||||||
# "$mod CTRL, up, resizeactive, 0 -80"
|
|
||||||
# "$mod CTRL, down, resizeactive, 0 80"
|
|
||||||
# "$mod CTRL, h, resizeactive, -80 0"
|
|
||||||
# "$mod CTRL, j, resizeactive, 0 80"
|
|
||||||
# "$mod CTRL, k, resizeactive, 0 -80"
|
|
||||||
# "$mod CTRL, l, resizeactive, 80 0"
|
|
||||||
|
|
||||||
# "$mod, mouse_down, workspace, e-1"
|
|
||||||
# "$mod, mouse_up, workspace, e+1"
|
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
# workspaces
|
# workspaces
|
||||||
|
|
@ -250,8 +254,6 @@ in {
|
||||||
name = "Mod+Shift+${toString i}";
|
name = "Mod+Shift+${toString i}";
|
||||||
value = {action.move-window-to-workspace = i;};
|
value = {action.move-window-to-workspace = i;};
|
||||||
}
|
}
|
||||||
# "$mod, code:1${toString i}, workspace, ${toString ws}"
|
|
||||||
# "$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
9)
|
9)
|
||||||
|
|
@ -263,77 +265,49 @@ in {
|
||||||
programs.noctalia = {
|
programs.noctalia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
appLauncher = {
|
|
||||||
terminalCommand = "${config.programs.foot.package}/bin/foot";
|
|
||||||
enableClipboardHistory = true;
|
|
||||||
};
|
|
||||||
general = {
|
|
||||||
compactLockScreen = true;
|
|
||||||
};
|
|
||||||
location = {
|
|
||||||
weatherEnabled = false;
|
|
||||||
use12hourFormat = true;
|
|
||||||
};
|
|
||||||
colorSchemes = {
|
|
||||||
generateTemplatesForPredefined = false;
|
|
||||||
};
|
|
||||||
dock.enabled = false;
|
dock.enabled = false;
|
||||||
bar = {
|
|
||||||
|
shell = {
|
||||||
|
time_format = "{:%-I:%M %p}";
|
||||||
|
|
||||||
|
setup_wizard_enabled = false;
|
||||||
|
|
||||||
|
telemetry_enabled = false;
|
||||||
|
external_ip_enabled = false;
|
||||||
|
|
||||||
|
niri_overview_type_to_launch_enabled = true;
|
||||||
|
|
||||||
|
animation.speed = 2.0;
|
||||||
|
|
||||||
|
panel = {
|
||||||
|
transparency_mode = "glass";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
desktop_widgets = {
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
location = {
|
||||||
|
auto_locate = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
widget = {
|
||||||
|
media = {
|
||||||
|
max_length = 400;
|
||||||
|
title_scroll = "always";
|
||||||
|
};
|
||||||
|
audio_visualizer = {
|
||||||
|
show_when_idle = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
bar.main = {
|
||||||
floating = false;
|
floating = false;
|
||||||
|
|
||||||
widgets = {
|
start = ["workspaces" "active_window"];
|
||||||
left = [
|
center = ["media" "spacer" "clock" "spacer" "audio_visualizer"];
|
||||||
{
|
end = ["tray" "notifications" "battery" "power_profile" "volume" "network" "bluetooth" "control-center"];
|
||||||
id = "Workspace";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "ActiveWindow";
|
|
||||||
width = 200;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
center = [
|
|
||||||
{
|
|
||||||
id = "MediaMini";
|
|
||||||
maxWidth = 400;
|
|
||||||
scrollingMode = "always";
|
|
||||||
showVisualizer = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "Clock";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
right = [
|
|
||||||
{
|
|
||||||
id = "Tray";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "NotificationHistory";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "Battery";
|
|
||||||
displayMode = "alwaysShow";
|
|
||||||
warningThreshold = 20;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "PowerProfile";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "Volume";
|
|
||||||
displayMode = "alwaysShow";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "WiFi";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "Bluetooth";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
id = "ControlCenter";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue