Revert "very broken keybinds lol"

This reverts commit 63e360d427.
This commit is contained in:
2026-07-07 16:04:19 +01:00
parent 63e360d427
commit 68d4240fcb
6 changed files with 2 additions and 142 deletions

View File

@@ -3,7 +3,6 @@ import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Hyprland
import Quickshell.Io
import Quickshell.Services.Mpris
import Quickshell.Services.Notifications
import "../Color.js" as Colors
@@ -120,23 +119,6 @@ Container {
root.previousState = "notified";
}
}
},
State {
name: "logout"
PropertyChanges {
root.boxHeight: 90
root.boxRadius: 30
root.boxWidth: 330
root.visibleTopMargin: 20
}
StateChangeScript {
script: {
root.stack.replace(logout);
root.previousState = "logout";
}
}
}
]
@@ -145,8 +127,6 @@ Container {
if (root.state == "notified") {
root.state = "notified";
notificationViewTimer.stop();
} else if (root.state == "logout") {
root.state = "logout";
} else if (MprisManager.getPlaying() == true) {
root.state = "mprisToast";
} else {
@@ -154,7 +134,6 @@ Container {
}
} else {
root.state = "";
FocusManager.exitRaise();
}
}
onLatestNotificationChanged: {
@@ -169,32 +148,6 @@ Container {
root.state == "hovered" ? root.state = "expanded" : undefined;
}
Connections {
function onactivated() {
console.log("some", root.state);
}
target: root.stack
}
Connections {
function onLogoutTriggered() {
if (Hyprland.focusedMonitor == root.exclusiveMonitor) {
root.state = "logout";
}
}
target: IpcManager
}
Connections {
function onRaiseCancelled() {
root.state = "";
}
target: FocusManager
}
Connections {
function onTrackChanged() {
if (Hyprland.focusedMonitor == root.monitor) {
@@ -307,10 +260,4 @@ Container {
}
}
}
Component {
id: logout
Logout {}
}
}

View File

@@ -1,18 +0,0 @@
import QtQuick
import "../../Components/"
import "../../Services/"
Item {
CenteredText {
text: "some"
}
Shortcut {
sequence: "Escape"
onActivated: {
console.log("shortcut triggered");
FocusManager.exitRaise();
}
}
}