From 66c5bad209b25d8e6750b871d77c66a94a1a7804 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Mon, 24 Mar 2025 22:26:49 -0400 Subject: [PATCH] Use Tera syntax to simplify Hyprland startup --- bombadil.toml | 6 ++++++ chonk.toml | 2 ++ hpomen.toml | 2 ++ hypr/chonk.conf | 3 --- hypr/hpomen.conf | 3 --- hypr/{common.conf => hyprland.conf} | 6 ++++++ 6 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 chonk.toml create mode 100644 hpomen.toml rename hypr/{common.conf => hyprland.conf} (97%) diff --git a/bombadil.toml b/bombadil.toml index a87a197..4834417 100644 --- a/bombadil.toml +++ b/bombadil.toml @@ -42,3 +42,9 @@ swaylock = { source = "swaylock", target = ".config/swaylock" } vim = { source = "vim/vimrc", target = ".config/vim/vimrc" } yazi = { source = "yazi", target = ".config/yazi" } zsh = { source = "zsh", target = ".config/zsh" } + +[profiles.chonk] +vars = [ "chonk.toml" ] + +[profiles.hpomen] +vars = [ "hpomen.toml" ] diff --git a/chonk.toml b/chonk.toml new file mode 100644 index 0000000..016b94b --- /dev/null +++ b/chonk.toml @@ -0,0 +1,2 @@ +[host] +name = "chonk" diff --git a/hpomen.toml b/hpomen.toml new file mode 100644 index 0000000..3a35553 --- /dev/null +++ b/hpomen.toml @@ -0,0 +1,2 @@ +[host] +name = "hpomen" diff --git a/hypr/chonk.conf b/hypr/chonk.conf index 69f254d..97942d5 100644 --- a/hypr/chonk.conf +++ b/hypr/chonk.conf @@ -36,6 +36,3 @@ workspace = 7, monitor:DP-2 workspace = 8, monitor:DP-1 workspace = 9, monitor:DP-2 workspace = 10, monitor:DP-1 - -source = ~/.config/hypr/common.conf - diff --git a/hypr/hpomen.conf b/hypr/hpomen.conf index 0509d6e..56a1894 100644 --- a/hypr/hpomen.conf +++ b/hypr/hpomen.conf @@ -40,6 +40,3 @@ gestures { workspace = 1, monitor:eDP-1, default:true workspace = 2, monitor:eDP-1, workspace = 3, monitor:eDP-1, - -source = ~/.config/hypr/common.conf - diff --git a/hypr/common.conf b/hypr/hyprland.conf similarity index 97% rename from hypr/common.conf rename to hypr/hyprland.conf index 6729fd4..b24a0af 100644 --- a/hypr/common.conf +++ b/hypr/hyprland.conf @@ -1,3 +1,9 @@ +{% if host.name == "chonk" %} +source = ~/.config/hypr/chonk.conf +{% else %} +source = ~/.config/hypr/hpomen.conf +{% endif %} + monitor=,preferred,auto,1 # Set programs that you use