quickshell stuff

This commit is contained in:
vali 2024-08-01 01:18:12 +02:00
commit a6b3e34dcf
6 changed files with 105 additions and 226 deletions

View file

@ -0,0 +1,49 @@
import Quickshell // for ShellRoot and PanelWindow
import Quickshell.Io // For Processes
import QtQuick // For Text
Scope {
property string time;
Variants {
model: Quickshell.screens
PanelWindow {
property var modelData
screen: modelData
anchors {
top: true
left: true
right: true
}
height: 30
Text {
anchors.centerIn: parent
// now just time instead of root.time
text: time
}
}
}
Process {
id: dateProc
command: ["date"]
running: true
stdout: SplitParser {
// now just time instead of root.time
onRead: data => time = data
}
}
Timer {
interval: 1000
running: true
repeat: true
onTriggered: dateProc.running = true
}
}

View file

@ -1,35 +1,6 @@
import Quickshell // for ShellRoot and PanelWindow
import QtQuick // for text
import QtQuick.Layouts
import QtQuick.Controls
import "workspaces" as Workspaces
ShellRoot {
PanelWindow {
anchors {
top: true
left : true
right:true
}
height: 30
ColumnLayout {
Layout.fillWidth: true
spacing: 0
Loader {
active: isSoleBar
Layout.preferredHeight: active ? implicitHeight: 0;
Layout.fillWidth: true
sourceComponent: Workspaces.Widget {
bar: root
wsBaseIndex: 1
}
}
Workspaces.Widget {
bar: root
Layout.fillWidth: true
wsBaseIndex: 1;
hideWhenEmpty: isSoleBar
}
}
}
Bar {}
}

View file

@ -17,7 +17,7 @@ in {
environment.systemPackages = with pkgs; [
qt6.qtimageformats
qt6.qt5compat
#quickshell.packages.${system}.default
quickshell.packages.${system}.default
pamtester
];
home-manager.users.${username}.xdg.configFile."quickshell/manifest.conf".text = toKeyValue {} {