Compare commits
3 Commits
5eaf088e6d
...
4fc7f85983
| Author | SHA1 | Date | |
|---|---|---|---|
|
4fc7f85983
|
|||
|
eed62014cc
|
|||
|
35f5e9d9fb
|
@@ -32,14 +32,8 @@ PanelWindow {
|
|||||||
// Use the wlroots specific layer property to ensure it displays over
|
// Use the wlroots specific layer property to ensure it displays over
|
||||||
// fullscreen windows.
|
// fullscreen windows.
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
|
|
||||||
Pill {
|
ColumnLayout {
|
||||||
Text {
|
|
||||||
text: "Ahhh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: content
|
id: content
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|||||||
@@ -45,10 +45,21 @@ PanelWindow {
|
|||||||
Pill {
|
Pill {
|
||||||
id: music
|
id: music
|
||||||
|
|
||||||
anchors.right: parent.right
|
anchors.right: tray.left
|
||||||
anchors.rightMargin: 10
|
anchors.rightMargin: 10
|
||||||
Music {
|
Music {
|
||||||
player: Mpris.players.values.find(e => e.identity == "Spotify")
|
player: Mpris.players.values.find(e => e.identity == "Spotify")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pill {
|
||||||
|
// id: tray
|
||||||
|
//
|
||||||
|
// anchors.right: parent.right
|
||||||
|
// anchors.rightMargin: 10
|
||||||
|
//
|
||||||
|
// SystemTray {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
31
bar/SystemTray.qml
Normal file
31
bar/SystemTray.qml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Services.SystemTray
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Repeater {
|
||||||
|
model: ScriptModel {
|
||||||
|
values: SystemTray.items.values.filter(e => e.status != Status.Passive)
|
||||||
|
}
|
||||||
|
|
||||||
|
IconImage {
|
||||||
|
required property SystemTrayItem modelData
|
||||||
|
|
||||||
|
width: 25
|
||||||
|
height: 15
|
||||||
|
|
||||||
|
source: modelData.icon
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: (event) => {
|
||||||
|
console.log( JSON.stringify(parent.modelData))
|
||||||
|
// parent.modelData.display(parent,0,0)
|
||||||
|
// menu.open()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,11 +11,11 @@ PanelWindow {
|
|||||||
|
|
||||||
property bool show: false
|
property bool show: false
|
||||||
property int selectedIndex: 0
|
property int selectedIndex: 0
|
||||||
property int buttonCount: 4
|
property int buttonCount: 5
|
||||||
|
|
||||||
|
|
||||||
implicitWidth: 600
|
implicitWidth: 600
|
||||||
implicitHeight: 400
|
implicitHeight: 150
|
||||||
visible: show
|
visible: show
|
||||||
focusable: true
|
focusable: true
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
@@ -40,15 +40,26 @@ PanelWindow {
|
|||||||
switch (index){
|
switch (index){
|
||||||
case 0:
|
case 0:
|
||||||
console.log("0")
|
console.log("0")
|
||||||
|
// systemctl poweroff
|
||||||
break
|
break
|
||||||
case 1:
|
case 1:
|
||||||
console.log("1")
|
console.log("1")
|
||||||
|
// systemctl reboot
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
console.log("2")
|
console.log("2")
|
||||||
|
// loginctl lock-session
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
console.log("3")
|
console.log("3")
|
||||||
|
// if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then
|
||||||
|
// ${pkgs.hyprland}/bin/hyprctl dispatch exit
|
||||||
|
// fi
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
console.log("4")
|
||||||
|
// boot-windows
|
||||||
|
// systemctl reboot
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -114,11 +125,18 @@ PanelWindow {
|
|||||||
active: root.selectedIndex == 2
|
active: root.selectedIndex == 2
|
||||||
icon: ""
|
icon: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { Layout.fillWidth: true } // spacer
|
Item { Layout.fillWidth: true } // spacer
|
||||||
|
|
||||||
PowermenuButton {
|
PowermenuButton {
|
||||||
active: root.selectedIndex == 3
|
active: root.selectedIndex == 3
|
||||||
|
icon: ""
|
||||||
|
}
|
||||||
|
|
||||||
|
Item { Layout.fillWidth: true } // spacer
|
||||||
|
|
||||||
|
PowermenuButton {
|
||||||
|
active: root.selectedIndex == 4
|
||||||
icon: ""
|
icon: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ Rectangle {
|
|||||||
property string icon: "?"
|
property string icon: "?"
|
||||||
|
|
||||||
color: active
|
color: active
|
||||||
? "#5b6078" // Hover/focus color
|
? "#5b6078"
|
||||||
: "#494d64" // Normal color
|
: "#494d64"
|
||||||
radius: 12
|
radius: 12
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|||||||
15
shell.qml
15
shell.qml
@@ -5,17 +5,18 @@ import "./bar"
|
|||||||
import "./launcher/"
|
import "./launcher/"
|
||||||
|
|
||||||
ShellRoot{
|
ShellRoot{
|
||||||
// Variants{
|
Variants{
|
||||||
// model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
//
|
|
||||||
// ActivateLinux {}
|
ActivateLinux {}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
Variants {
|
Variants {
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
StatusBar {}
|
StatusBar {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Launcher {}
|
Launcher {}
|
||||||
|
Powermenu {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user