My Nix Infra
nix nixos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

catppuccin-sddm theme & add ez command palette (fix #1)

ydcjeff 4b0255f7 d8b9a7be

+34 -2
+23
bin/ez-cmd-palette
··· 1 + #!/usr/bin/env bash 2 + 3 + menu() { 4 + local _options=("$@") 5 + printf -v options "%s\n" "${_options[@]}" 6 + echo -e "${options%[[:space:]]}" | fuzzel --dmenu 7 + } 8 + 9 + options=( 10 + "Shutdown" 11 + "Reboot" 12 + "Logout" 13 + "Lock" 14 + "Sleep" 15 + ) 16 + 17 + case $(menu "${options[@]}" | tr '[:upper:]' '[:lower:]') in 18 + *shutdown*) poweroff ;; 19 + *reboot*) reboot ;; 20 + *logout*) loginctl terminate-session "$XDG_SESSION_ID" ;; 21 + *lock*) hyprlock ;; 22 + *sleep*) loginctl lock-session ;; 23 + esac
+3 -2
config/niri/config.kdl
··· 149 149 // Mod-Shift-/, which is usually the same as Mod-?, shows a list of important hotkeys. 150 150 Mod+Shift+Slash { show-hotkey-overlay; } 151 151 152 + Ctrl+Alt+L repeat=false hotkey-overlay-title="Lock the Screen" { spawn "hyprlock"; } 152 153 Mod+Return repeat=false hotkey-overlay-title="Open a Terminal" { spawn "ghostty"; } 153 154 Mod+Space repeat=false hotkey-overlay-title="Run an Application Launcher" { spawn "fuzzel"; } 154 - Mod+B repeat=false hotkey-overlay-title="Open Browser" { spawn "firefox"; } 155 - Ctrl+Alt+L repeat=false hotkey-overlay-title="Lock the Screen" { spawn "hyprlock"; } 155 + Mod+B repeat=false hotkey-overlay-title="Open a Browser" { spawn "firefox"; } 156 + Mod+P repeat=false hotkey-overlay-title="Open Command Palette" { spawn "ez-cmd-palette"; } 156 157 157 158 XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+" "-l" "1.0"; } 158 159 XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
+8
modules/desktop.nix
··· 69 69 brightnessctl 70 70 libnotify 71 71 xwayland-satellite 72 + (catppuccin-sddm.override { 73 + flavor = "frappe"; 74 + }) 75 + (pkgs.writeShellApplication { 76 + name = "ez-cmd-palette"; 77 + text = builtins.readFile ../bin/ez-cmd-palette; 78 + }) 72 79 ]; 80 + services.displayManager.sddm.theme = "catppuccin-frappe-mauve"; 73 81 systemd.packages = with pkgs; [ 74 82 mako 75 83 ];