1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

unified SessionService to support elogind equivalents of systemd

commands
This commit is contained in:
bbedward
2025-08-22 11:40:20 -04:00
parent de17d53f1e
commit dd99cb7ef8
38 changed files with 84 additions and 91 deletions

View File

@@ -1,10 +1,10 @@
pragma Singleton
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Io
import qs.Common
pragma Singleton
pragma ComponentBehavior
Singleton {
id: root
@@ -501,8 +501,8 @@ Singleton {
function getProcessIcon(command) {
const cmd = command.toLowerCase()
if (cmd.includes("firefox") || cmd.includes("chrome") || cmd.includes(
"browser"))
if (cmd.includes("firefox") || cmd.includes("chrome") ||
cmd.includes("browser") || cmd.includes("chromium"))
return "web"
if (cmd.includes("code") || cmd.includes("editor")
|| cmd.includes("vim"))
@@ -515,8 +515,9 @@ Singleton {
return "music_note"
if (cmd.includes("video") || cmd.includes("vlc") || cmd.includes("mpv"))
return "play_circle"
if (cmd.includes("systemd") || cmd.includes("kernel") || cmd.includes(
"kthread"))
if (cmd.includes("systemd") || cmd.includes("elogind") ||
cmd.includes("kernel") || cmd.includes("kthread") ||
cmd.includes("kworker"))
return "settings"
return "memory"
}