the core of niri is done

This commit is contained in:
Chris Cochrun 2025-09-02 06:33:13 -05:00
parent d0c8e279ca
commit d6d16bfe7f
3 changed files with 40 additions and 13 deletions

View file

@ -62,18 +62,23 @@ in
# enable = true;
settings = {
prefer-no-csd = true;
binds = with config.lib.niri.actions; {
"XF86AudioRaiseVolume".action.spawn = ["volup"];
"XF86AudioLowerVolume".action.spawn = ["voldown"];
"Super+E".action.spawn = "nu nirilof emacs 'emacslient -c'";
binds = with config.lib.niri.actions; let
in {
"XF86AudioRaiseVolume".action.spawn = ["pamixer" "--allow-boost" "-i" "5"];
"XF86AudioLowerVolume".action.spawn = ["pamixer" "--allow-boost" "-d" "5"];
"Super+E".action.spawn = ["${pkgs.nushell}/bin/nu" "/home/chris/nirilof emacs 'emacslient -c'"];
"Super+Return".action.spawn = "alacritty";
"Super+B".action.spawn = "nu nirilof org.qutebrowser.qutebrowser qutebrowser";
"Super+B".action = spawn ["${pkgs.nushell}/bin/nu" "/home/chris/nirilof org.qutebrowser.qutebrowser qutebrowser"];
"Super+Space".action.spawn = "cosmic-launcher";
"Super+V".action= spawn ["${pkgs.fish}/bin/fish" "-c" "${pkgs.cliphist}/bin/cliphist list | ${pkgs.rofi-wayland}/bin/rofi -p '󱃔 ' -dmenu | ${pkgs.cliphist}/bin/cliphist decode | ${pkgs.wl-clipboard}/bin/wl-copy"];
"Super+I".action.spawn = ["alacritty" "--class" "btm" "-e" "btm"];
"Super+A".action.spawn = ["alacritty" "--class" "pulsemixer" "-e" "pulsemixer"];
"Super+Shift+Q".action = quit;
"Super+O".action = toggle-overview;
"Super+F".action = fullscreen-window;
"Super+Shift+F".action = toggle-windowed-fullscreen;
"Super+C".action = close-window;
"Super+Shift+C".action = center-window;
"Super+P".action.spawn = "/home/chris/bin/rbw.sh";
"Super+Left".action = focus-column-left;
"Super+H".action = focus-column-left;
@ -83,10 +88,15 @@ in
"Super+Shift+L".action = move-column-right;
"Super+Ctrl+L".action = set-column-width "+10%";
"Super+Ctrl+H".action = set-column-width "-10%";
"Super+M".action = set-column-width "95%";
"Super+M".action = maximize-column;
"Super+W".action = switch-preset-column-width;
"Super+Comma".action = consume-or-expel-window-left;
"Super+Period".action = consume-or-expel-window-right;
};
spawn-at-startup = [
{ argv = ["${pkgs.xwayland-satellite}/bin/xwayland-satellite"]; }
{ argv = ["waybar"]; }
{ argv = ["cosmic-osd"]; }
{ argv = ["kwalled6"]; }
{ argv = ["swww-daemon"]; }
{ argv = ["rbw-agent"]; }
@ -122,11 +132,27 @@ in
}
{
matches = [{app-id = "com.system76.CosmicFiles";}];
open-on-workspace = "main";
open-floating = true;
}
{
matches = [{app-id = "btm";}];
open-floating = true;
default-column-width.proportion = 0.7;
default-window-height.proportion = 0.7;
}
{
matches = [{app-id = "pulsemixer";}];
open-floating = true;
}
];
layout = {
center-focused-column = "never";
preset-column-widths = [
{ proportion = 1. / 3.; }
{ proportion = 1. / 2.; }
{ proportion = 2. / 3.; }
{ proportion = 1. / 1.; }
];
gaps = 15;
struts = {
bottom = 5;