Replace aether with a homegrown theme system + desktop theme widget
aether (the third-party GUI app) is gone - it didn't work reliably. Replaced with theme/: colors.toml (palette), templates/<app>/ (Hyprland, Kitty, Rofi, mako; unused Waybar template dropped), render.py (renders + reloads apps, supports --set/--get/--dump), and wallpaper.py (archives + swaps the wallpaper, deduped by hash, via a native zenity picker). New ThemeWidget.qml: a small standalone widget pinned to the top-left corner of the main monitor, independent of the bar and sitting on the Bottom wlr layer (so normal windows can cover it). Two buttons - wallpaper gallery/picker, and a color-role picker with a preset palette + hex input - call straight into the scripts above. Also includes an unrelated hyprland.lua fix found while testing the widget: new kitty windows were coming up in genuine Hyprland fullscreen regardless of workspace; a fullscreen_state window rule forces it off (plain 'fullscreen = false' turned out to be a no-op). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/home/nico/.config/aether/theme/hyprland-theme.conf
|
||||
@@ -6,7 +6,7 @@ name to (hotspot in that box, [svg frames]); more than one frame = animated.
|
||||
"""
|
||||
|
||||
OUT = "#0b1a26" # outline
|
||||
BLUE = "#1793d1" # accent (aether color for the rice)
|
||||
BLUE = "#1793d1" # accent color for the rice (theme/colors.toml)
|
||||
LIGHT = "#e6f1f8"
|
||||
TRACK = "#2a4a63"
|
||||
RED = "#e5546b"
|
||||
|
||||
@@ -98,8 +98,8 @@ general {
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# Border-Farben von aether (wird bei jedem Theme-Wechsel neu generiert)
|
||||
source = ~/.config/hypr/aether-theme.conf
|
||||
# Border-Farben aus theme/colors.toml (wird bei jedem Theme-Wechsel neu generiert, siehe theme/render.py)
|
||||
source = ~/.config/hypr/theme.conf
|
||||
|
||||
decoration {
|
||||
rounding = 8
|
||||
|
||||
@@ -133,12 +133,12 @@ hl.config({
|
||||
|
||||
-- ----------------------------------------------------------
|
||||
|
||||
-- Border-Farben von aether (wird bei jedem Theme-Wechsel neu generiert)
|
||||
-- Liest die von aether generierte Datei direkt bei jedem Config-Reload,
|
||||
-- damit ein Theme-Wechsel (der die Datei neu schreibt + reload triggert)
|
||||
-- weiterhin automatisch die Rahmenfarben aktualisiert.
|
||||
local function read_aether_theme()
|
||||
local path = (os.getenv("HOME") or "") .. "/.config/hypr/aether-theme.conf"
|
||||
-- Border-Farben aus theme/colors.toml (wird bei jedem Theme-Wechsel neu generiert, siehe theme/render.py)
|
||||
-- Liest die generierte Datei direkt bei jedem Config-Reload, damit ein
|
||||
-- Theme-Wechsel (der die Datei neu schreibt + reload triggert) weiterhin
|
||||
-- automatisch die Rahmenfarben aktualisiert.
|
||||
local function read_theme_conf()
|
||||
local path = (os.getenv("HOME") or "") .. "/.config/hypr/theme.conf"
|
||||
local f = io.open(path, "r")
|
||||
if not f then return nil end
|
||||
local content = f:read("*a")
|
||||
@@ -152,7 +152,7 @@ local function read_aether_theme()
|
||||
return { active1 = active1, active2 = active2, inactive = inactive }
|
||||
end
|
||||
|
||||
local aether = read_aether_theme()
|
||||
local theme = read_theme_conf()
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
@@ -162,18 +162,18 @@ hl.config({
|
||||
resize_on_border = true,
|
||||
allow_tearing = false,
|
||||
layout = "dwindle",
|
||||
col = aether and {
|
||||
active_border = { colors = { aether.active1, aether.active2 }, angle = 45 },
|
||||
inactive_border = aether.inactive,
|
||||
col = theme and {
|
||||
active_border = { colors = { theme.active1, theme.active2 }, angle = 45 },
|
||||
inactive_border = theme.inactive,
|
||||
} or nil,
|
||||
},
|
||||
})
|
||||
|
||||
if aether then
|
||||
if theme then
|
||||
hl.config({
|
||||
group = {
|
||||
col = {
|
||||
border_active = { colors = { aether.active1, aether.active2 }, angle = 45 },
|
||||
border_active = { colors = { theme.active1, theme.active2 }, angle = 45 },
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -478,6 +478,19 @@ hl.window_rule({
|
||||
scroll_touchpad = 1.5,
|
||||
})
|
||||
|
||||
-- Workaround: every new kitty window has been coming up in real Hyprland
|
||||
-- fullscreen (hasfullscreen=true, needs fullscreen() dispatched twice to
|
||||
-- clear) regardless of workspace - root cause not found. "fullscreen = false"
|
||||
-- is a no-op (that's just the default, it doesn't force anything); this
|
||||
-- overrides both the internal and client-requested fullscreen state instead.
|
||||
hl.window_rule({
|
||||
name = "no_fullscreen_kitty",
|
||||
match = {
|
||||
class = "^(kitty)$",
|
||||
},
|
||||
fullscreen_state = "0 0",
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "scroll_touchpad_0_2_276",
|
||||
match = {
|
||||
|
||||
15
hypr/theme.conf
Normal file
15
hypr/theme.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
# Generated by theme/render.py from the active palette.
|
||||
# Edit the template at ~/.config/theme/templates/hyprland/theme.conf, not the output.
|
||||
|
||||
$activeBorderColor1 = rgba(1793d1ff)
|
||||
$activeBorderColor2 = rgba(7aa2f7ff)
|
||||
$inactiveBorderColor = rgba(565f89cc)
|
||||
|
||||
general {
|
||||
col.active_border = $activeBorderColor1 $activeBorderColor2 45deg
|
||||
col.inactive_border = $inactiveBorderColor
|
||||
}
|
||||
|
||||
group {
|
||||
col.border_active = $activeBorderColor1 $activeBorderColor2 45deg
|
||||
}
|
||||
Reference in New Issue
Block a user