0
trickyni trickyniv56@gmail.com
Thu, 25 Sep 2025 23:47:42 +0300
3 files changed,
49 insertions(+),
17 deletions(-)
M
Icons.qml
→
Icons.qml
@@ -1,4 +1,3 @@
-//Icons.qml pragma Singleton import QtQuick import Quickshell@@ -24,11 +23,11 @@ "low": "",
"high": "", } property var network: { - "no_bar": "", - "one_bar": "", - "two_bar": "", - "three_bar": "", - "full_bar": "", + "bar0": "", + "bar1": "", + "bar2": "", + "bar3": "", + "bar4": "", "crossed_full": "", "crossed_empty": "", "one_bar_alert": "",
M
bar/modules/Network.qml
→
bar/modules/Network.qml
@@ -1,17 +1,50 @@
-//Network.qml +// Sunset.qml import QtQuick import Quickshell +import Quickshell.Io import QtQuick.Layouts -import Quickshell.Services.UPower -import "../.." +import "../../" import "../classes" as Class -RowLayout { - spacing: 2 - Class.BottombarIcon { - text: Icons.network.crossed_empty + " MI_10023" - color: Resources.palette.grey - font.family: font_jetbrains.name - anchors.centerIn: parent +Class.RightRowLayout { + Class.TopbarText { + id: network_name + Process { + id: network_name_script + command: ["iwgetid","-r"] + workingDirectory: Quickshell.shellDir + running: true + stdout: StdioCollector { + onStreamFinished: network_name.text = this.text.trim() + } + } + + Timer { + interval: 1000 + running: true + repeat: true + onTriggered: network_name_script.running = true + } + } + Class.TopbarIcon { + id: wifi_strength + font.pixelSize: 9 + Process { + id: wifi_strength_script + command: ["bar/scripts/wifi_strength.sh"] + workingDirectory: Quickshell.shellDir + running: true + stdout: StdioCollector { + onStreamFinished: wifi_strength.text = Icons.network.bar0 + // onStreamFinished: wifi_strength.text = Icons.network.bar[this.text] + } + } + + Timer { + interval: 1000 + running: true + repeat: true + onTriggered: wifi_strength_script.running = true + } } }