From 2d2d93d5d83eaed8b99d967988b5c4ce56a643f4 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 22 Aug 2025 18:34:21 +0700 Subject: [PATCH] hyprland: add nwg-displays support, make config portable --- .config/hypr/hyprland.conf | 26 +++++++++++++++----------- .config/hypr/monitors.conf | 4 ++++ .config/hypr/workspaces.conf | 4 ++++ 3 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .config/hypr/monitors.conf create mode 100644 .config/hypr/workspaces.conf diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 5698f594..e40c6c14 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -6,16 +6,20 @@ exec = hyprctl dispatch submap global # DO NOT REMOVE THIS OR YOU WON'T BE ABLE submap = global # This is required for catchall to work # Defaults -source=~/.config/hypr/hyprland/env.conf -source=~/.config/hypr/hyprland/execs.conf -source=~/.config/hypr/hyprland/general.conf -source=~/.config/hypr/hyprland/rules.conf -source=~/.config/hypr/hyprland/colors.conf -source=~/.config/hypr/hyprland/keybinds.conf +source=hyprland/env.conf +source=hyprland/execs.conf +source=hyprland/general.conf +source=hyprland/rules.conf +source=hyprland/colors.conf +source=hyprland/keybinds.conf # Custom -source=~/.config/hypr/custom/env.conf -source=~/.config/hypr/custom/execs.conf -source=~/.config/hypr/custom/general.conf -source=~/.config/hypr/custom/rules.conf -source=~/.config/hypr/custom/keybinds.conf +source=custom/env.conf +source=custom/execs.conf +source=custom/general.conf +source=custom/rules.conf +source=custom/keybinds.conf + +# nwg-displays support +source=workspaces.conf +source=monitors.conf diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf new file mode 100644 index 00000000..67c6e199 --- /dev/null +++ b/.config/hypr/monitors.conf @@ -0,0 +1,4 @@ +# This file is to be overwritten by nwg-displays if you choose to use it. +# nwg-displays is a graphical tool for managing monitors. +# - Installation for Arch Linux: sudo pacman -S nwg-displays +# - Repo: https://github.com/nwg-piotr/nwg-displays diff --git a/.config/hypr/workspaces.conf b/.config/hypr/workspaces.conf new file mode 100644 index 00000000..67c6e199 --- /dev/null +++ b/.config/hypr/workspaces.conf @@ -0,0 +1,4 @@ +# This file is to be overwritten by nwg-displays if you choose to use it. +# nwg-displays is a graphical tool for managing monitors. +# - Installation for Arch Linux: sudo pacman -S nwg-displays +# - Repo: https://github.com/nwg-piotr/nwg-displays