Expose Hyprland styling directly

Closes #660
Co-authored-by: @med502
This commit is contained in:
David Heinemeier Hansson
2025-09-14 22:14:27 +02:00
parent e4ca98301b
commit 5f56f4ccc7
2 changed files with 12 additions and 1 deletions

View File

@@ -82,10 +82,11 @@ show_learn_menu() {
}
show_style_menu() {
case $(menu "Style" "󰸌 Theme\n Font\n Background\n󱄄 Screensaver\n About") in
case $(menu "Style" "󰸌 Theme\n Font\n Background\n Hyprland\n󱄄 Screensaver\n About") in
*Theme*) show_theme_menu ;;
*Font*) show_font_menu ;;
*Background*) omarchy-theme-bg-next ;;
*Hyprland*) edit_in_nvim ~/.config/hypr/looknfeel.conf ;;
*Screensaver*) edit_in_nvim ~/.config/omarchy/branding/screensaver.txt ;;
*About*) edit_in_nvim ~/.config/omarchy/branding/about.txt ;;
*) show_main_menu ;;

10
migrations/1757879836.sh Normal file
View File

@@ -0,0 +1,10 @@
echo "Ensure .config/hypr/looknfeel.conf is available and included"
if [[ ! -f ~/.config/hypr/looknfeel.conf ]]; then
cp $OMARCHY_PATH/config/hypr/looknfeel.conf ~/.config/hypr/looknfeel.conf
fi
if [[ -f ~/.config/hypr/hyprland.conf ]]; then
grep -qx 'source = ~/.config/hypr/looknfeel.conf' ~/.config/hypr/hyprland.conf ||
sed -i '/^source = ~\/.config\/hypr\/envs\.conf$/a source = ~/.config/hypr/looknfeel.conf' ~/.config/hypr/hyprland.conf
fi