improved, use os-release
This commit is contained in:
parent
5bd9b538b6
commit
c9d925c3b8
1 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,17 @@
|
|||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Widgets
|
||||
|
||||
IconImage {
|
||||
source: Quickshell.iconPath("archlinux-logo")
|
||||
id: root
|
||||
|
||||
Process {
|
||||
running: true
|
||||
command: ["sh", "-c", ". /etc/os-release && echo $LOGO"]
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: () => {
|
||||
root.source = Quickshell.iconPath(this.text.trim());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue