{inputs, ...}: { programs.umbriel = { enable = true; settings = { include = { optional.files = [ "noctalia.toml" ]; }; output.eDP-1 = { enabled = true; scale = 1.333; hdr = "on"; position = [0 0]; bit_depth = 10; sdr_transfer = "gamma22"; # Or "srgb" for piecewise SDR decoding in HDR. direct_scanout = true; tearing = true; }; output.HDMI-A-1 = { mode = "1920x1080@144.02"; position = [1922 0]; direct_scanout = true; tearing = true; focus_at_startup = true; }; general = { autostart = ["noctalia" "wl-paste --watch cliphist store"]; xwayland_native_resolution = true; show_cheatsheet = false; }; events.lid_close = "umbriel msg output-disable:eDP-1"; events.lid_open = "umbriel msg output-enable:eDP-1"; animation = { curve = "spring:1,2000"; dialogs.dim = 0.3; windows_opacity.enabled = true; windows_opacity.curve = "spring:1,900"; }; appearance = { drag_opacity = 1.0; corner_radius = 8; }; appearance.blur = { radius = 12; passes = 3; noise = 0.04; brightness = 0.9; contrast = 1.1; saturation = 1.2; }; input = { keyboard.numlock_toggle = true; keyboard.repeat_rate = 50; keyboard.repeat_delay = 300; mouse.natural_scroll = false; mouse.sensitivity = -0.3; mouse.accel_profile = "flat"; touchpad.natural_scroll = true; touchpad.sensitivity = -0.1; touchpad.scroll_factor = 0.15; cursor = { theme = "breeze_cursors"; }; }; layout.mode = "scrolling"; layout.client_maximize = "column"; layout.scrolling.default_extent_fraction = 0.5; layout.scrolling.center_focused = "on_overflow"; workspaces.back_and_forth = true; layer_rule = [ { match.namespace = "^noctalia-(bar-[^\"]+|notification|dock|panel|attached-panel|osd|desktop-widget-[^\"]*)$"; blur = true; blur_ignore_alpha = 0.1; blur_popups = true; } { match.namespace = "^noctalia-(notification|dock|panel|attached-panel|osd)$"; blur_optimized = false; } { match.namespace = "^noctalia-window-switcher$"; blur = true; blur_optimized = false; } ]; window_rule = [ { blur = true; blur_optimized = false; blur_ignore_alpha = 0.01; } { match.app_id = "^dev.noctalia.Noctalia$"; default_floating = true; default_floating_size_px = { width = 1020; height = 900; }; default_maximize_to_edges = false; } { match.app_id = "^dev.noctalia.UmbrielSharePicker$"; default_floating = true; default_floating_size_px = { width = 800; height = 600; }; } { match.title = "^(Picture-in-Picture|Picture in picture)$"; default_floating = true; default_maximize = false; default_position = { x = 20; y = 20; anchor = "bottom_right"; }; default_maximize_to_edges = false; } { match.title = "^notificationtoasts_.+_desktop"; default_position = { x = 0; y = 0; anchor = "bottom_right"; }; default_focused = false; default_pinned = true; } { match.app_id = "^steam_app_.*$"; confine_pointer = true; } { match.app_id = "^org.kde.kcalc$"; default_floating = true; default_floating_size = { width = 0.25; height = 0.5; }; default_maximize_to_edges = false; } { match.app_id = "^app.fluxer.FluxerDesktopCanary$"; border_width = 0; shadow = false; blur_ignore_alpha = 0.01; } { match.is_focused = false; opacity = 0.6; blur = true; blur_optimized = false; blur_ignore_alpha = 0.01; } { match.content_type = "game"; tearing = true; default_fullscreen = true; } ]; keybinds = { "Mod+Return" = { action = "spawn kitty"; repeat = false; }; "Mod+Space" = "spawn noctalia msg panel-toggle launcher"; "Mod+Q" = { action = "window-close"; repeat = false; }; "Mod+Escape" = { action = "spawn noctalia msg dpms-off"; repeat = false; }; "Mod+Shift+Escape" = { action = "spawn noctalia msg panel-toggle session"; repeat = false; }; "Mod+Shift+L" = { action = "spawn noctalia msg session lock"; allow_when_inhibited = true; repeat = false; }; "XF86AudioRaiseVolume" = { action = "spawn noctalia msg volume-up"; allow_when_locked = true; }; "XF86AudioLowerVolume" = { action = "spawn noctalia msg volume-down"; allow_when_locked = true; }; "XF86AudioMute" = { action = "spawn noctalia msg volume-mute"; allow_when_locked = true; repeat = false; }; "XF86AudioPlay" = { action = "spawn noctalia msg media toggle"; allow_when_locked = true; repeat = false; }; "XF86AudioNext" = { action = "spawn noctalia msg media next"; allow_when_locked = true; }; "XF86AudioPrev" = { action = "spawn noctalia msg media previous"; allow_when_locked = true; }; "XF86MonBrightnessUp" = { action = "spawn noctalia msg brightness-up"; allow_when_locked = true; }; "XF86MonBrightnessDown" = { action = "spawn noctalia msg brightness-down"; allow_when_locked = true; }; "Mod+H" = "window-focus-left"; "Mod+J" = "window-focus-down"; "Mod+K" = "window-focus-up"; "Mod+L" = "window-focus-right"; "Mod+F" = { action = "window-toggle-maximize"; repeat = false; }; "Mod+Shift+F" = { action = "window-toggle-fullscreen"; repeat = false; }; "Mod+WheelUp" = { action = "window-focus-left"; cooldown_ms = 50; }; "Mod+WheelDown" = { action = "window-focus-right"; cooldown_ms = 50; }; "Mod+G" = { action = "overview-toggle"; repeat = false; }; "Mod+1" = "workspace-switch 1"; "Mod+2" = "workspace-switch 2"; "Mod+3" = "workspace-switch 3"; "Mod+4" = "workspace-switch 4"; "Mod+5" = "workspace-switch 5"; "Mod+6" = "workspace-switch 6"; "Mod+7" = "workspace-switch 7"; "Mod+8" = "workspace-switch 8"; "Mod+9" = "workspace-switch 9"; "Mod+Shift+1" = "window-move-to-workspace 1"; "Mod+Shift+2" = "window-move-to-workspace 2"; "Mod+Shift+3" = "window-move-to-workspace 3"; "Mod+Shift+4" = "window-move-to-workspace 4"; "Mod+Shift+5" = "window-move-to-workspace 5"; "Mod+Shift+6" = "window-move-to-workspace 6"; "Mod+Shift+7" = "window-move-to-workspace 7"; "Mod+Shift+8" = "window-move-to-workspace 8"; "Mod+Shift+9" = "window-move-to-workspace 9"; "Mod+Shift+H" = "window-cycle-primary-extent"; # Screenshot display cursor is on "Print" = { action = "spawn noctalia msg screenshot-fullscreen --format webp --quality 90 pick"; repeat = false; }; # Screenshot region "Mod+Print" = { action = "spawn noctalia msg screenshot-region --format webp --quality 90"; repeat = false; }; # Screenshot active window "Alt+Print" = { action = "spawn noctalia msg screenshot-window --format webp --quality 90"; repeat = false; }; # Binds for laptop built in keyboard (which doesn't have print screen) # Screenshot display cursor is on "Mod+Shift+S" = { action = "spawn noctalia msg screenshot-fullscreen pick --format webp --quality 90"; repeat = false; }; # Screenshot active window "Mod+Alt+Shift+S" = { action = "spawn noctalia msg screenshot-window --format webp --quality 90"; repeat = false; }; # Screenshot region "Ctrl+Mod+Shift+S" = { action = "spawn noctalia msg screenshot-region --format webp --quality 90"; repeat = false; }; "Alt+Tab" = { action = "spawn noctalia msg window-switcher"; repeat = false; }; "Alt+A" = { action = "spawn /home/kasey/.scripts/audioswitch"; repeat = false; }; "Alt+D" = { action = "spawn /home/kasey/.scripts/define"; repeat = false; }; "Alt+M" = { action = "spawn /home/kasey/.scripts/mpdmenu"; repeat = false; }; "Mod+C" = { action = "spawn noctalia msg panel-toggle clipboard"; repeat = false; }; }; }; }; }