summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/modules/mango/scripts.nix5
-rw-r--r--common/modules/matugen/default.nix7
-rw-r--r--common/modules/matugen/templates/matugen-neovim.nix28
3 files changed, 38 insertions, 2 deletions
diff --git a/common/modules/mango/scripts.nix b/common/modules/mango/scripts.nix
index edc9830..28a388e 100644
--- a/common/modules/mango/scripts.nix
+++ b/common/modules/mango/scripts.nix
@@ -132,7 +132,7 @@ let
local theme=$(get_val "theme")
local nl=$(get_val "nightlight")
- CHOICE=$(echo -e "Mode: $theme\nNight Light: $nl\nLayouts" | rofi -dmenu -p "Settings" -i)
+ CHOICE=$(echo -e "Mode: $theme\nNight Light: $nl\nWallpaper\nLayouts" | rofi -dmenu -p "Settings" -i)
case "$CHOICE" in
"Mode: "*)
@@ -146,6 +146,9 @@ let
set_val "nightlight" "on"; wlsunset -T 4500 &
fi
;;
+ "Wallpaper")
+ cmd_wall
+ ;;
"Layouts")
L=$(echo -e "tile\nmonocle\nscroller\ntgmix\ngrid\ndeck\ncenter tile\nright tile\nvertical scroller\nvertical tile\nvertical grid\nvertical deck" | rofi -dmenu -p "Layout")
case "$L" in
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index 301e9fa..a3af2f6 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -134,7 +134,6 @@ in
output_path = '~/.config/yazi/theme.toml'
''}
-
${lib.optionalString config.beeMods.dwm.enable ''
[templates.Xresources]
input_path = "~/.config/matugen/templates/colors-xresources"
@@ -183,6 +182,12 @@ in
# post_hook = "${update_gtkcolors}"
''}
+ ${lib.optionalString config.beeMods.beeVim.enable ''
+ [templates.neovim]
+ input_path = "~/.config/matugen/templates/neovim.json"
+ output_path = "~/.config/matugen/neovim_matugen.json"
+ ''}
+
[templates.zed]
input_path = '~/.config/matugen/templates/zed.json'
output_path = '~/.config/zed/themes/matugen.json'
diff --git a/common/modules/matugen/templates/matugen-neovim.nix b/common/modules/matugen/templates/matugen-neovim.nix
new file mode 100644
index 0000000..dcb84a2
--- /dev/null
+++ b/common/modules/matugen/templates/matugen-neovim.nix
@@ -0,0 +1,28 @@
+{
+ config,
+ lib,
+ ...
+}:
+{
+ config = lib.mkIf config.beeMods.beeVim.enable {
+ xdg.configFile = {
+ "matugen/templates/neovim.json" = {
+ text =
+ # json
+ ''
+ {
+ "source_color": "{{colors.primary.default.hex}}",
+ <* if {{ is_dark_mode }} *>
+ "background": "{{colors.background.default.hex}}",
+ <* else *>
+ "background": "{{colors.surface_container.default.hex}}",
+ <* endif *>
+ "harmony": 0.5,
+ "mode": "{{mode}}"
+ }
+ '';
+
+ };
+ };
+ };
+}