apps.nix (3082B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | _: { config, pkgs, lib, ... }: { programs.niri.settings = { ## Autostart spawn-at-startup = let exec = app: args: [app] ++ args; in [ {command = exec "pcmanfm-qt" ["--desktop"];} {command = [(lib.getExe pkgs.xwayland-satellite) ":0"];} ]; ## Keybindings binds = with config.lib.niri.actions; let sh = spawn "sh" "-c"; runOnce = app: args: sh "pgrep ${app} || ${app} ${args}"; in { # Applications "Super+F" = { action = spawn "nemo"; hotkey-overlay.title = "Files"; }; "Super+T" = { action = spawn "kitty"; hotkey-overlay.title = "Terminal"; }; "Super+W" = { action = spawn "firefox"; hotkey-overlay.title = "Browser"; }; "Super+Return" = { action = runOnce "resources" ""; hotkey-overlay.title = "Task Manager"; }; "XF86Calculator" = { action = spawn "qalculate-gtk"; hotkey-overlay.title = "Calculator"; }; # Shell "Super+A" = { action = sh "noctalia msg panel-toggle launcher"; hotkey-overlay.title = "Launcher"; }; "Super+Shift+A" = { action = sh "noctalia msg settings-toggle"; hotkey-overlay.title = "Settings"; }; "Super+N" = { action = sh "noctalia msg panel-toggle notifications"; hotkey-overlay.title = "Notifications"; }; "Super+V" = { action = sh "noctalia msg panel-toggle clipboard"; hotkey-overlay.title = "Clipboard"; }; "Super+Escape" = { action = sh "noctalia msg panel-toggle session"; hotkey-overlay.title = "Power Menu"; }; # Utilities "Super+Shift+C" = { action = runOnce "hyprpicker" "-arf hex"; hotkey-overlay.title = "Color Picker"; }; "Super+Shift+B" = { action = runOnce "overskride" ""; hotkey-overlay.title = "Bluetooth Settings"; }; "Super+Shift+N" = { action = sh "env XDG_CURRENT_DESKTOP=GNOME gnome-control-center wifi"; hotkey-overlay.title = "Network Settings"; }; "Super+Shift+P" = { action = spawn "pwvucontrol"; hotkey-overlay.title = "Audio Settings"; }; "Super+D" = { action = runOnce "nwg-displays" ""; hotkey-overlay.title = "Display Settings"; }; }; ## Window Rules window-rules = [ { matches = [{app-id = "qalculate-gtk";}]; open-floating = true; default-column-width.proportion = 0.5; default-window-height.proportion = 0.9; default-floating-position = { relative-to = "right"; x = 5; y = 0; }; } { matches = [ {app-id = "com.saivert.pwvucontrol";} {app-id = "io.github.kaii_lb.Overskride";} {app-id = "nwg-displays";} {app-id = "org.gnome.Settings";} {app-id = "gnome-control-center";} ]; open-floating = true; } ]; }; } |