Normalize options naming and add option to customize hyprland apps

This commit is contained in:
Henry Sipp
2025-06-28 18:13:08 -05:00
parent 410a4b8b70
commit 4987add501
3 changed files with 19 additions and 11 deletions
+15 -2
View File
@@ -21,11 +21,24 @@ lib: {
type = lib.types.attrs;
default = {};
};
quickAppBindings = lib.mkOption {
hyprland_assignments = lib.mkOption {
type = lib.types.attrs;
description = "A list of Hyprland assignments to set up window rules.";
default = {
"$terminal" = "alacritty";
"$fileManager" = "nautilus --new-window";
"$browser" = "chromium --new-window --ozone-platform=wayland";
"$music" = "spotify";
"$passwordManager" = "1password";
"$messenger" = "signal-desktop";
"$webapp" = "$browser --app";
};
};
quick_app_bindings = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "A list of single keystroke key bindings to launch common apps.";
default = [
"SUPER, A, exec, $webapp=https://chatgpt.com"
"SUPER SHIFT, A, exec, $webapp=https://grok.com"
"SUPER, C, exec, $webapp=https://app.hey.com/calendar/weeks/"
+1 -1
View File
@@ -7,7 +7,7 @@
in {
wayland.windowManager.hyprland.settings = {
bind =
cfg.quickAppBindings
cfg.quick_app_bindings
++ [
# Start default apps
@@ -2,7 +2,9 @@
config,
pkgs,
...
}: {
}: let
cfg = config.omarchy;
in {
imports = [
./autostart.nix
./bindings.nix
@@ -12,13 +14,6 @@
];
wayland.windowManager.hyprland.settings = {
# Default applications
"$terminal" = "alacritty";
"$fileManager" = "nautilus --new-window";
"$browser" = "chromium --new-window --ozone-platform=wayland";
"$music" = "spotify";
"$passwordManager" = "1password";
"$messenger" = "signal-desktop";
"$webapp" = "$browser --app";
# Environment variables
env = [