From a5eca98543beb5352511f499e4a7d40fb302c481 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:12:20 +0200 Subject: [PATCH] hyprland: prevent error from loading nonexistent user config files --- dots/.config/hypr/custom/env.conf | 1 + dots/.config/hypr/custom/execs.conf | 1 + dots/.config/hypr/custom/general.conf | 1 + dots/.config/hypr/custom/keybinds.conf | 1 + dots/.config/hypr/custom/rules.conf | 1 + dots/.config/hypr/custom/variables.conf | 1 + dots/.config/hypr/hyprland.conf | 9 +++++++++ 7 files changed, 15 insertions(+) diff --git a/dots/.config/hypr/custom/env.conf b/dots/.config/hypr/custom/env.conf index 4e59a32c2..31a62fe97 100644 --- a/dots/.config/hypr/custom/env.conf +++ b/dots/.config/hypr/custom/env.conf @@ -1,3 +1,4 @@ +# hyprlang noerror false # You can put extra environment variables here # https://wiki.hyprland.org/Configuring/Environment-variables/ diff --git a/dots/.config/hypr/custom/execs.conf b/dots/.config/hypr/custom/execs.conf index 66bb2b8b5..fbabcc7b7 100644 --- a/dots/.config/hypr/custom/execs.conf +++ b/dots/.config/hypr/custom/execs.conf @@ -1,3 +1,4 @@ +# hyprlang noerror false # You can make apps auto-start here # Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing diff --git a/dots/.config/hypr/custom/general.conf b/dots/.config/hypr/custom/general.conf index aa3fd4f83..f5b34b5a9 100644 --- a/dots/.config/hypr/custom/general.conf +++ b/dots/.config/hypr/custom/general.conf @@ -1,3 +1,4 @@ +# hyprlang noerror false # Put general config stuff here # Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/ diff --git a/dots/.config/hypr/custom/keybinds.conf b/dots/.config/hypr/custom/keybinds.conf index 8885a2175..bc6fc209c 100644 --- a/dots/.config/hypr/custom/keybinds.conf +++ b/dots/.config/hypr/custom/keybinds.conf @@ -1,3 +1,4 @@ +# hyprlang noerror false # See https://wiki.hyprland.org/Configuring/Binds/ #! ##! User diff --git a/dots/.config/hypr/custom/rules.conf b/dots/.config/hypr/custom/rules.conf index 9b48404e6..59772d611 100644 --- a/dots/.config/hypr/custom/rules.conf +++ b/dots/.config/hypr/custom/rules.conf @@ -1,3 +1,4 @@ +# hyprlang noerror false # You can put custom rules here # Window/layer rules: https://wiki.hyprland.org/Configuring/Window-Rules/ # Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/ diff --git a/dots/.config/hypr/custom/variables.conf b/dots/.config/hypr/custom/variables.conf index 6df5899cb..b692ce113 100644 --- a/dots/.config/hypr/custom/variables.conf +++ b/dots/.config/hypr/custom/variables.conf @@ -1 +1,2 @@ +# hyprlang noerror false # For all available variables, see ~/.config/hypr/hyprland/variables.conf diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index b59a6d525..819c6cf26 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -3,11 +3,15 @@ # --- Environment variables --- source=hyprland/env.conf +# hyprlang noerror true source=custom/env.conf +# hyprlang noerror false # --- Other vars --- source=hyprland/variables.conf +# hyprlang noerror true source=custom/variables.conf +# hyprlang noerror false # --- Defaults --- # hyprlang if !dontLoadDefaultExecs @@ -27,10 +31,15 @@ source=hyprland/keybinds.conf # hyprlang endif # --- Custom --- +# hyprlang noerror true source=custom/execs.conf +# hyprlang noerror true source=custom/general.conf +# hyprlang noerror true source=custom/rules.conf +# hyprlang noerror true source=custom/keybinds.conf +# hyprlang noerror false # --- nwg-displays support --- source=workspaces.conf