mirror of
https://github.com/danbulant/dotfiles
synced 2026-06-06 16:20:48 +00:00
46 lines
No EOL
1.2 KiB
QML
46 lines
No EOL
1.2 KiB
QML
import "root:/modules/common/"
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Hyprland
|
|
import Quickshell.Io
|
|
pragma Singleton
|
|
pragma ComponentBehavior: Bound
|
|
|
|
Singleton {
|
|
id: root
|
|
property bool sidebarLeftOpen: false
|
|
property bool sidebarRightOpen: false
|
|
property bool overviewWindowsOpen: false
|
|
property bool overviewSearchOpen: false
|
|
property bool workspaceShowNumbers: false
|
|
property bool superReleaseMightTrigger: true
|
|
property bool dontAutoCancelSearch: false
|
|
|
|
// When user is not reluctant while pressing super, they probably don't need to see workspace numbers
|
|
onSuperReleaseMightTriggerChanged: {
|
|
workspaceShowNumbersTimer.stop()
|
|
}
|
|
|
|
Timer {
|
|
id: workspaceShowNumbersTimer
|
|
interval: ConfigOptions.bar.workspaces.showNumberDelay
|
|
// interval: 0
|
|
repeat: false
|
|
onTriggered: {
|
|
workspaceShowNumbers = true
|
|
}
|
|
}
|
|
|
|
GlobalShortcut {
|
|
name: "workspaceNumber"
|
|
description: qsTr("Hold to show workspace numbers, release to show icons")
|
|
|
|
onPressed: {
|
|
workspaceShowNumbersTimer.start()
|
|
}
|
|
onReleased: {
|
|
workspaceShowNumbersTimer.stop()
|
|
workspaceShowNumbers = false
|
|
}
|
|
}
|
|
} |