diff --git a/home/home.nix b/home/home.nix index c112f78..6390f84 100644 --- a/home/home.nix +++ b/home/home.nix @@ -833,7 +833,7 @@ in { #window { padding-left: 3px; - + } window#waybar > box { color: @base05; @@ -866,6 +866,7 @@ in { padding-top: 2px; padding-bottom: 2px; padding-right: 10px; + padding-left: 5px; background: @backtransparent; box-shadow: 5px 5px 4px 4px #202020; border-radius: 20px; diff --git a/home/modules/niri.nix b/home/modules/niri.nix index 1307963..e02987b 100644 --- a/home/modules/niri.nix +++ b/home/modules/niri.nix @@ -92,10 +92,11 @@ in settings = { prefer-no-csd = true; binds = with config.lib.niri.actions; let + sh = spawn "sh" "-c"; 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/bin/nirilof" "emacs" "\"emacslient -c\""]; + "Super+E".action = sh ''${pkgs.nushell}/bin/nu /home/chris/bin/nirilof emacs "emacslient -c"''; "Super+Return".action.spawn = "alacritty"; "Super+B".action = spawn ["${pkgs.nushell}/bin/nu" "/home/chris/bin/nirilof" "org.qutebrowser.qutebrowser" "qutebrowser"]; "Super+Alt+Space".action.spawn = "${pkgs.cosmic-launcher}/bin/cosmic-launcher"; @@ -136,6 +137,7 @@ in }; spawn-at-startup = [ { argv = ["waybar"]; } + { argv = ["hyprpaper"]; } { argv = ["${pkgs.xwayland-satellite}/bin/xwayland-satellite"]; } { argv = ["/usr/lib/kdeconnectd"]; } { argv = ["cosmic-osd"]; } @@ -170,11 +172,11 @@ in } { matches = [ {app-id = "emacs";} ]; - open-on-workspace = "main"; + open-on-output = "DP-1"; } { matches = [{app-id = "org.qutebrowser.qutebrowser";}]; - open-on-workspace = "main"; + open-on-output = "DP-1"; } { matches = [{app-id = "mpv";}]; @@ -183,6 +185,8 @@ in { matches = [{app-id = "com.system76.CosmicFiles";}]; open-floating = true; + default-column-width.proportion = 0.6; + default-window-height.proportion = 0.5; } { matches = [{app-id = "bluetui";}]; @@ -207,6 +211,47 @@ in open-floating = true; } ]; + layer-rules = [ + { + matches = [{namespace = "hyprpaper";}]; + place-within-backdrop = true; + } + { + matches = [{namespace = "rofi";}]; + geometry-corner-radius = { + top-left = 14.0; + top-right = 14.0; + bottom-left = 14.0; + bottom-right = 14.0; + }; + shadow = { + enable = true; + draw-behind-window = false; + inactive-color = "#00000000"; + softness = 10; + spread = 15; + }; + } + { + matches = [{namespace = "launcher";}]; + geometry-corner-radius = { + top-left = 14.0; + top-right = 14.0; + bottom-left = 14.0; + bottom-right = 14.0; + }; + shadow = { + enable = true; + draw-behind-window = false; + inactive-color = "#00000000"; + softness = 10; + spread = 15; + }; + } + ]; + animations = { + }; + hotkey-overlay.skip-at-startup = true; layout = { center-focused-column = "never"; always-center-single-column = true; @@ -233,13 +278,29 @@ in border = { enable = false; width = 4; - active = { color = "#57c7ff"; }; + active = { + gradient = { + from = "#57c7ff"; + to = "#57c7ff"; + relative-to = "workspace-view"; + in' = "oklch increasing hue"; + }; + }; inactive = { color = "#5af78e"; }; }; focus-ring = { enable = true; width = 4; - active = { color = "#5af78e"; }; + active = { + gradient = { + angle = 120; + from = "#5af78e"; + to = "#57c7ff"; + relative-to = "window"; + in' = "oklch increasing hue"; + }; + }; + inactive = { color = "#43454f"; }; }; }; screenshot-path = "~/pics/screenshot_%Y-%m-%d_%H-%M-%S.png";