mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Added hyprland color support
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1167,6 +1167,9 @@
|
||||
},
|
||||
"niri": {
|
||||
"description": "Write {filepath}. Requires niri v25.11+"
|
||||
},
|
||||
"hyprland": {
|
||||
"description": "Write {filepath} and apply"
|
||||
}
|
||||
},
|
||||
"misc": {
|
||||
|
||||
@@ -1167,6 +1167,9 @@
|
||||
},
|
||||
"niri": {
|
||||
"description": "{filepath} dosyasına yaz. niri v25.11+ gerektirir"
|
||||
},
|
||||
"hyprland": {
|
||||
"description": "{filepath} dosyasına yaz ve uygula"
|
||||
}
|
||||
},
|
||||
"misc": {
|
||||
|
||||
@@ -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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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", {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user