From e96d604ac8a0ec4e151a82b0a33f63540f3d1d1f Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 14 Oct 2026 17:40:23 +0200 Subject: [PATCH] move to example file for custom config --- .config/hypr/custom/environments.example | 1 - .config/hypr/custom/inputs.example | 4 +--- .config/hypr/custom/keybinds.example | 3 +-- .config/hypr/custom/monitors.example | 4 +--- .config/hypr/custom/windowrules.example | 12 ++---------- .config/hypr/custom/workspacerules.example | 1 - README.md | 18 ------------------ 7 files changed, 5 insertions(+), 38 deletions(-) diff --git a/.config/hypr/custom/environments.example b/.config/hypr/custom/environments.example index 2e1dda3..d0a8a76 100644 --- a/.config/hypr/custom/environments.example +++ b/.config/hypr/custom/environments.example @@ -1,5 +1,4 @@ -- Machine-specific environment variables. Loaded after hyprland/environments.lua. --- Usage: cp environments.example environments.lua (environments.lua is ignored by git) -- https://wiki.hypr.land/Configuring/Environment-variables/ -- hl.env("XCURSOR_SIZE", "24") diff --git a/.config/hypr/custom/inputs.example b/.config/hypr/custom/inputs.example index c86a61b..c9c4480 100644 --- a/.config/hypr/custom/inputs.example +++ b/.config/hypr/custom/inputs.example @@ -1,6 +1,4 @@ --- Machine-specific input config (kb_layout, per-device, gestures). Loaded after hyprland/inputs.lua. --- Usage: cp inputs.example inputs.lua (inputs.lua is ignored by git) --- List your devices with: hyprctl devices +-- Machine-specific input config (kb_layout, per-device, gestures). -- https://wiki.hypr.land/Configuring/Variables/#input -- hl.device({ name = "my-mouse-name", sensitivity = -0.5 }) diff --git a/.config/hypr/custom/keybinds.example b/.config/hypr/custom/keybinds.example index 244b99e..d147e2b 100644 --- a/.config/hypr/custom/keybinds.example +++ b/.config/hypr/custom/keybinds.example @@ -1,5 +1,4 @@ --- Machine-specific keybinds. Loaded after hyprland/keybinds.lua. --- Usage: cp keybinds.example keybinds.lua (keybinds.lua is ignored by git) +-- Machine-specific keybinds. -- https://wiki.hypr.land/Configuring/Binds/ -- hl.bind("SUPER + B", hl.dsp.exec_cmd("firefox")) diff --git a/.config/hypr/custom/monitors.example b/.config/hypr/custom/monitors.example index 150feeb..0e5482f 100644 --- a/.config/hypr/custom/monitors.example +++ b/.config/hypr/custom/monitors.example @@ -1,6 +1,4 @@ --- Machine-specific monitors. Loaded after hyprland/monitors.lua. --- Usage: cp monitors.example monitors.lua (monitors.lua is ignored by git) --- List your outputs with: hyprctl monitors all +-- Machine-specific monitors. -- https://wiki.hypr.land/Configuring/Monitors/ -- hl.monitor({ output = "eDP-1", mode = "1920x1080@60", position = "auto", scale = 1 }) diff --git a/.config/hypr/custom/windowrules.example b/.config/hypr/custom/windowrules.example index 5b7c11d..4f423cb 100644 --- a/.config/hypr/custom/windowrules.example +++ b/.config/hypr/custom/windowrules.example @@ -1,15 +1,7 @@ --- Machine-specific window rules. +-- Machine-specific window rules -- https://wiki.hypr.land/Configuring/Window-Rules/ --- Uncomment these lines to enable window rules for these apps: +-- Uncomment these lines to enable the ones you want on this machine: -- require("custom/windowrules/godot") --- Rules for an app used only on this machine can go directly here: --- hl.window_rule({ --- name = "float-myapp", --- match = { class = "myapp" }, --- float = true, --- center = true, --- }) - -- vim: ft=lua diff --git a/.config/hypr/custom/workspacerules.example b/.config/hypr/custom/workspacerules.example index 77b968e..4dc24d2 100644 --- a/.config/hypr/custom/workspacerules.example +++ b/.config/hypr/custom/workspacerules.example @@ -1,5 +1,4 @@ -- Machine-specific workspace rules. --- Usage: cp workspacerules.example workspacerules.lua (workspacerules.lua is ignored by git) -- https://wiki.hypr.land/Configuring/Workspace-Rules/ -- hl.workspace_rule({ workspace = "1", monitor = "eDP-1", persistent = true, default_name = "web" }) diff --git a/README.md b/README.md index ab1423f..ba78e8a 100644 --- a/README.md +++ b/README.md @@ -48,24 +48,6 @@ stow . all the files should now be simlinked to your $HOME folder -### Machine-specific Hyprland config - -`~/.config/hypr/hyprland/` holds the shared defaults, don't edit them. -To tweak a single machine (monitors, devices, keybinds…), copy the matching template in `~/.config/hypr/custom/`: - -``` -cd ~/.config/hypr/custom -cp monitors.example monitors.lua -``` - -`custom/*.lua` files are ignored by git and loaded after the defaults; missing ones are simply skipped. - -Per-app window rules are shared in `custom/windowrules/.lua`. Enable the ones you want in your `custom/windowrules.lua`: - -```lua -require("custom/windowrules/godot") -``` - ### Theme switcher user the SUPER + T shortcut to switch between light and dark theme