Added hyprland color support

This commit is contained in:
elrondforwin
2025-12-22 20:25:08 +03:00
parent de00039a29
commit 3ea322be9e
8 changed files with 81 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
$primary = rgb({{colors.primary.default.hex_stripped}})
$surface = rgb({{colors.surface.default.hex_stripped}})
$secondary = rgb({{colors.secondary.default.hex_stripped}})
$error = rgb({{colors.error.default.hex_stripped}})
$tertiary = rgb({{colors.tertiary.default.hex_stripped}})
$surface_lowest = rgb({{colors.surface_container_lowest.default.hex_stripped}})
general {
col.active_border = $primary
col.inactive_border = $surface
}
group {
col.border_active = $secondary
col.border_inactive = $surface
col.border_locked_active = $error
col.border_locked_inactive = $surface
groupbar {
col.active = $secondary
col.inactive = $surface
col.locked_active = $error
col.locked_inactive = $surface
}
}
+3
View File
@@ -1167,6 +1167,9 @@
},
"niri": {
"description": "Write {filepath}. Requires niri v25.11+"
},
"hyprland": {
"description": "Write {filepath} and apply"
}
},
"misc": {
+3
View File
@@ -1167,6 +1167,9 @@
},
"niri": {
"description": "{filepath} dosyasına yaz. niri v25.11+ gerektirir"
},
"hyprland": {
"description": "{filepath} dosyasına yaz ve uygula"
}
},
"misc": {
+2 -1
View File
@@ -394,6 +394,7 @@
"yazi": false,
"emacs": false,
"niri": false,
"hyprland": false,
"mango": false,
"zed": false,
"enableUserTemplates": false
@@ -421,4 +422,4 @@
"gridSnap": false,
"monitorWidgets": []
}
}
}
+23
View File
@@ -286,6 +286,29 @@ niri)
fi
;;
hyprland)
echo "🎨 Applying 'noctalia' theme to Hyprland..."
CONFIG_FILE="$HOME/.config/hypr/hyprland.conf"
INCLUDE_LINE="source = ~/.config/hypr/noctalia/noctalia-colors.conf"
# Check if the config file exists.
if [ ! -f "$CONFIG_FILE" ]; then
echo "Config file not found, creating $CONFIG_FILE..."
mkdir -p "$(dirname "$CONFIG_FILE")"
echo "$INCLUDE_LINE" >"$CONFIG_FILE"
echo "Created new config file with noctalia theme."
else
# Check if include line already exists
if grep -qF "$INCLUDE_LINE" "$CONFIG_FILE"; then
echo "Theme already included, skipping modification."
else
# Add the include line to the end of the file
echo "$INCLUDE_LINE" >>"$CONFIG_FILE"
echo "✅ Added noctalia theme include to config."
fi
fi
;;
mango)
echo "🎨 Applying 'noctalia' theme to mango..."
CONFIG_DIR="$HOME/.config/mango"
+1
View File
@@ -627,6 +627,7 @@ Singleton {
property bool yazi: false
property bool emacs: false
property bool niri: false
property bool hyprland: false
property bool mango: false
property bool zed: false
property bool enableUserTemplates: false
@@ -594,6 +594,18 @@ ColumnLayout {
}
}
NCheckbox {
label: "Hyprland"
description: I18n.tr("settings.color-scheme.templates.compositors.hyprland.description", {
"filepath": "~/.config/hypr/noctalia/noctalia-colors.conf"
})
checked: Settings.data.templates.hyprland
onToggled: checked => {
Settings.data.templates.hyprland = checked;
AppThemeService.generate();
}
}
NCheckbox {
label: "Mango"
description: I18n.tr("settings.color-scheme.templates.compositors.mango.description", {
+12
View File
@@ -287,6 +287,18 @@ Singleton {
],
"postProcess": () => `${colorsApplyScript} niri`
},
{
"id": "hyprland",
"name": "Hyprland",
"category": "compositors",
"input": "hyprland.conf",
"outputs": [
{
"path": "~/.config/hypr/noctalia/noctalia-colors.conf"
}
],
"postProcess": () => `${colorsApplyScript} hyprland`
},
{
"id": "mango",
"name": "Mango",