miscellanious stuff

This commit is contained in:
Tomas Rivera
2026-03-21 18:55:12 +01:00
parent b39e429d3f
commit a2cc796e1c
2 changed files with 64 additions and 63 deletions
+54 -54
View File
@@ -64,14 +64,14 @@ PanelWindow {
anchors.margins: -4 anchors.margins: -4
} }
Image { /*Image {
width: 16 * 6 width: 16 * 6
height: 4 * 6 height: 4 * 6
anchors.top: parent.bottom anchors.top: parent.bottom
anchors.left: parent.left anchors.left: parent.left
source: "../assets/bar-decor.png" source: "../assets/bar-decor.png"
smooth: false smooth: false
} }*/
RowLayout { RowLayout {
id: left id: left
@@ -98,73 +98,73 @@ PanelWindow {
anchors.margins: -4 anchors.margins: -4
} }
Image { /*Image {
width: 16 * 6 width: 16 * 6
height: 4 * 6 height: 4 * 6
anchors.top: parent.bottom anchors.top: parent.bottom
anchors.left: parent.left anchors.left: parent.left
source: "../assets/bar-decor.png" source: "../assets/bar-decor.png"
smooth: false smooth: false
} }*/
RowLayout { RowLayout {
id: sysinfo id: sysinfo
spacing: 10 spacing: 10
property int cpu: 0 property int cpu: 0
property int mem: 0 property int mem: 0
property int disk: 0 property int disk: 0
property real power: 0 property real power: 0
property int temp: 0 property int temp: 0
property int fan: 0 property int fan: 0
property int down: 0 property int down: 0
property int up: 0 property int up: 0
Timer { Timer {
interval: 2000 interval: 2000
running: true running: true
repeat: true repeat: true
onTriggered: sysProcess.running = true onTriggered: sysProcess.running = true
} }
Process { Process {
id: sysProcess id: sysProcess
command: ["QS-sysinfo"] command: ["QS-sysinfo"]
stdout: SplitParser { stdout: SplitParser {
onRead: function(line) { onRead: function(line) {
try { try {
var data = JSON.parse(line) var data = JSON.parse(line)
sysinfo.cpu = parseInt(data.cpu) sysinfo.cpu = parseInt(data.cpu)
sysinfo.mem = parseInt(data.mem) sysinfo.mem = parseInt(data.mem)
sysinfo.disk = parseInt(data.disk) sysinfo.disk = parseInt(data.disk)
sysinfo.power = parseFloat(data.power) sysinfo.power = parseFloat(data.power)
sysinfo.temp = parseInt(data.temp) sysinfo.temp = parseInt(data.temp)
sysinfo.fan = parseInt(data.fan) sysinfo.fan = parseInt(data.fan)
sysinfo.down = parseInt(data.down) sysinfo.down = parseInt(data.down)
sysinfo.up = parseInt(data.up) sysinfo.up = parseInt(data.up)
} catch(e) {} } catch(e) {}
} }
} }
} }
Column { Column {
spacing: 2 spacing: 2
Text { Text {
text: "CPU " + sysinfo.cpu + "% | MEM " + sysinfo.mem + "% | PWR " + sysinfo.power.toFixed(1) + "W | UP " + sysinfo.up text: "CPU " + sysinfo.cpu + "% | MEM " + sysinfo.mem + "% | PWR " + sysinfo.power.toFixed(1) + "W | UP " + sysinfo.up
font.pixelSize: 18 font.pixelSize: 18
color: Theme.Colors.barColor8 color: Theme.Colors.barColor8
} }
Text { Text {
text: "TMP " + sysinfo.temp + "°C | DSK " + sysinfo.disk + "% | FAN " + sysinfo.fan + " | DOWN " + sysinfo.down text: "TMP " + sysinfo.temp + "°C | DSK " + sysinfo.disk + "% | FAN " + sysinfo.fan + " | DOWN " + sysinfo.down
font.pixelSize: 18 font.pixelSize: 18
color: Theme.Colors.barColor8 color: Theme.Colors.barColor8
} }
} }
} }
} }
@@ -183,7 +183,7 @@ PanelWindow {
anchors.margins: -4 anchors.margins: -4
} }
Image { /*Image {
width: 16 * 6 width: 16 * 6
height: 4 * 6 height: 4 * 6
anchors.top: parent.bottom anchors.top: parent.bottom
@@ -191,7 +191,7 @@ PanelWindow {
source: "../assets/bar-decor.png" source: "../assets/bar-decor.png"
smooth: false smooth: false
mirror: true mirror: true
} }*/
RowLayout { RowLayout {
id: right id: right
+1
View File
@@ -29,6 +29,7 @@ Setup obsidian (plugsins, etc.)
setup kdrive as a git remote setup kdrive as a git remote
setup tampermonkey
with quickshell: with quickshell: