diff options
Diffstat (limited to 'appearance/Icons.qml')
| -rw-r--r-- | appearance/Icons.qml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/appearance/Icons.qml b/appearance/Icons.qml index 2c4c403..a6eaec5 100644 --- a/appearance/Icons.qml +++ b/appearance/Icons.qml @@ -290,19 +290,16 @@ for name in sys.argv[2:]: } Process { id: gsetProc } - // Two consumers resolve icons by name from gsettings when they are - // generated, not when they run: the SDDM power icons (udt-accent) and - // waybar's taskbar theme and module icons (its install.sh). So they are - // regenerated here, chained after the gsettings write they read. + // The SDDM power icons resolve icon names from gsettings when udt-accent + // generates them, not when they run, so they are regenerated here, + // chained after the gsettings write they read. The island resolves its + // icons live and needs nothing. readonly property string udtRepo: `${root.home}/Programming/GIT/unified-desktop-theme` - readonly property string waybarRepo: `${root.home}/Programming/GIT/waybar-theme-udt` function applyIcon(name) { Quickshell.execDetached(["sh", "-c", `gsettings set org.gnome.desktop.interface icon-theme "$1" || exit; ` + - `[ -e ~/.cache/udt/wpaper ] && ${JSON.stringify(root.udtRepo)}/bin/udt-accent ~/.cache/udt/wpaper; ` + - `[ -x ${JSON.stringify(root.waybarRepo)}/install.sh ] && ${JSON.stringify(root.waybarRepo)}/install.sh && ` + - `killall -SIGUSR2 waybar`, + `[ -e ~/.cache/udt/wpaper ] && ${JSON.stringify(root.udtRepo)}/bin/udt-accent ~/.cache/udt/wpaper`, "sh", name]); const files = [qt6File, qt5File]; for (let i = 0; i < files.length; i++) { |
