fix globalshortcut names
This commit is contained in:
@@ -2,11 +2,9 @@ pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
import qs.Components
|
||||
import qs.Modules
|
||||
import qs.Modules.Bar
|
||||
import qs.Config
|
||||
@@ -80,9 +78,8 @@ Variants {
|
||||
}
|
||||
}
|
||||
|
||||
GlobalShortcut {
|
||||
CustomShortcut {
|
||||
name: "toggle-nc"
|
||||
appid: "zshell-nc"
|
||||
|
||||
onPressed: {
|
||||
visibilities.sidebar = !visibilities.sidebar
|
||||
@@ -131,40 +128,6 @@ Variants {
|
||||
bar: barLoader
|
||||
anchors.fill: parent
|
||||
|
||||
// onContainsMouseChanged: {
|
||||
// if ( !containsMouse ) {
|
||||
// panels.popouts.hasCurrent = false;
|
||||
// if ( !visibilities.sidebar && !visibilities.dashboard )
|
||||
// visibilities.bar = Config.autoHide ? false : true;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// onPositionChanged: event => {
|
||||
// if ( Config.autoHide && !visibilities.bar ? mouseY < 4 : mouseY < backgroundRect.implicitHeight ) {
|
||||
// visibilities.bar = true;
|
||||
// barLoader.checkPopout(mouseX);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// onPressed: event => {
|
||||
// var traywithinX = mouseX >= panels.popouts.x + 8 && mouseX < panels.popouts.x + panels.popouts.implicitWidth;
|
||||
// var traywithinY = mouseY >= panels.popouts.y + exclusionZone.implicitHeight && mouseY < panels.popouts.y + exclusionZone.implicitHeight + panels.popouts.implicitHeight;
|
||||
// var sidebarwithinX = mouseX >= bar.width - panels.sidebar.width
|
||||
// var dashboardWithinX = mouseX <= panels.dashboard.width + panels.dashboard.x && mouseX >= panels.dashboard.x
|
||||
// var dashboardWithinY = mouseY <= backgroundRect.implicitHeight + panels.dashboard.implicitHeight
|
||||
//
|
||||
// if ( panels.popouts.hasCurrent ) {
|
||||
// if ( traywithinX && traywithinY ) {
|
||||
// } else {
|
||||
// panels.popouts.hasCurrent = false;
|
||||
// }
|
||||
// } else if ( visibilities.sidebar && !sidebarwithinX ) {
|
||||
// visibilities.sidebar = false;
|
||||
// } else if ( visibilities.dashboard && ( !dashboardWithinX || !dashboardWithinY )) {
|
||||
// visibilities.dashboard = false;
|
||||
// }
|
||||
// }
|
||||
|
||||
Panels {
|
||||
id: panels
|
||||
screen: scope.modelData
|
||||
|
||||
Reference in New Issue
Block a user