Compare commits

...

5 Commits

Author SHA1 Message Date
d5f8e91d91 added powermenu commands 2025-11-28 18:48:58 +01:00
2b0a2f58bd moved volume and audo pill 2025-11-28 16:54:38 +01:00
2621f4a30a disabled activate linux 2025-11-28 16:53:30 +01:00
44756cbead clear text on search finish 2025-11-28 16:47:25 +01:00
846b558686 fixed music anchor 2025-11-28 16:10:54 +01:00
4 changed files with 16 additions and 31 deletions

View File

@@ -36,8 +36,10 @@ PanelWindow {
}
Pill {
id: volume
anchors.verticalCenter: parent.verticalCenter
anchors.right: music.left
anchors.right: parent.right
anchors.rightMargin: 10
Volume {}
}
@@ -45,21 +47,10 @@ PanelWindow {
Pill {
id: music
anchors.right: tray.left
anchors.right: volume.left
anchors.rightMargin: 10
Music {
player: Mpris.players.values.find(e => e.identity == "Spotify")
}
}
// Pill {
// id: tray
//
// anchors.right: parent.right
// anchors.rightMargin: 10
//
// SystemTray {
//
// }
// }
}

View File

@@ -65,6 +65,7 @@ PanelWindow {
case (Qt.Key_Escape):
root.show = false
event.accepted = true
searchInput.clear()
break
case (Qt.Key_Return):
case (Qt.Key_Enter):
@@ -74,6 +75,7 @@ PanelWindow {
}
root.show = false
event.accepted = true
searchInput.clear()
break
case (Qt.Key_Down):
case (Qt.Key_Tab):

View File

@@ -33,27 +33,19 @@ PanelWindow {
function executeButton(index){
switch (index){
case 0:
console.log("0")
// systemctl poweroff
Quickshell.execDetached(["systemctl", "poweroff"])
break
case 1:
console.log("1")
// systemctl reboot
Quickshell.execDetached(["systemctl", "reboot"])
break
case 2:
console.log("2")
// loginctl lock-session
Quickshell.execDetached(["loginctl", "lock-session"])
break
case 3:
console.log("3")
// if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then
// ${pkgs.hyprland}/bin/hyprctl dispatch exit
// fi
Quickshell.execDetached(["hyprctl", "dispatch", "exit"])
break
case 4:
console.log("4")
// boot-windows
// systemctl reboot
Quickshell.execDetached(["sh", "-c", "boot-windows && systemctl reboot"])
break
}
}

View File

@@ -5,11 +5,11 @@ import "./bar"
import "./launcher/"
ShellRoot{
Variants{
model: Quickshell.screens
ActivateLinux {}
}
// Variants{
// model: Quickshell.screens
//
// ActivateLinux {}
// }
Variants {
model: Quickshell.screens