[mini.misc] org.freedesktop.appearance #1204
Closed
wroyca
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Nice! I'd probably refactor the local function parse_color_scheme(line)
local v = line:match("uint32 (%d+)")
if v == nil then return end
vim.o.background = (v == '1' or v == '0') and 'light' or 'dark'
end |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello o/
This is my take on implementing org.freedesktop.appearance.color-scheme with interrupts, as discussed in this GitHub issue. I figured this might be useful to others.
One interesting aspect of the XDG Desktop Portal is the color accent and contrast keys, which would integrate nicely with mini.hues. I intend to update this once they are integrated into my desktop, potentially in Fedora 41.
In any case:
Beta Was this translation helpful? Give feedback.
All reactions