diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e20e14..ce22903 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,13 @@ if("shell" IN_LIST ENABLE_MODULES) foreach(dir assets scripts Components Config Modules Daemons Drawers Effects Helpers Paths) install(DIRECTORY ${dir} DESTINATION "${INSTALL_QSCONFDIR}") endforeach() - install(FILES shell.qml DESTINATION "${INSTALL_QSCONFDIR}") + + # Disable watching for changes + file(READ shell.qml SHELL_QML) + string(REPLACE "settings.watchFiles: true" "settings.watchFiles: false" SHELL_QML "${SHELL_QML}") + file(WRITE "${CMAKE_BINARY_DIR}/qml/shell.qml" "${SHELL_QML}") + install(FILES "${CMAKE_BINARY_DIR}/qml/shell.qml" DESTINATION "${INSTALL_QSCONFDIR}") + + # Greeter install(DIRECTORY Greeter/ DESTINATION "${INSTALL_GREETERCONFDIR}") endif() diff --git a/Components/CustomText.qml b/Components/CustomText.qml index cff8b2d..f4c1600 100644 --- a/Components/CustomText.qml +++ b/Components/CustomText.qml @@ -15,6 +15,7 @@ Text { color: DynamicColors.palette.m3onSurface font.family: Appearance.font.family.sans font.pointSize: Appearance.font.size.normal + linkColor: DynamicColors.palette.m3onPrimaryFixedVariant renderType: Text.NativeRendering textFormat: Text.PlainText diff --git a/Modules/Notifications/Sidebar/Notif.qml b/Modules/Notifications/Sidebar/Notif.qml index 1d99414..53445e9 100644 --- a/Modules/Notifications/Sidebar/Notif.qml +++ b/Modules/Notifications/Sidebar/Notif.qml @@ -136,7 +136,10 @@ CustomRect { wrapMode: Text.WordWrap onLinkActivated: link => { - Quickshell.execDetached(["app2unit", "-O", "--", link]); + if (Config.launcher.uwsm) + Quickshell.execDetached(["app2unit", "-O", "--", link]); + else + Quickshell.execDetached(["xdg-open", link]); root.visibilities.sidebar = false; } } diff --git a/shell.qml b/shell.qml index 892321c..bc06a34 100644 --- a/shell.qml +++ b/shell.qml @@ -14,6 +14,8 @@ import qs.Helpers import qs.Modules.Polkit ShellRoot { + settings.watchFiles: true + Windows { }