init: working version
This commit is contained in:
commit
7d8d7dacae
109 changed files with 15066 additions and 0 deletions
48
modules/bar/popouts/IdleInhibit.qml
Normal file
48
modules/bar/popouts/IdleInhibit.qml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.config
|
||||
import qs.custom
|
||||
import qs.services
|
||||
import qs.util
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
|
||||
spacing: 15
|
||||
|
||||
Toggle {
|
||||
label.text: qsTr("Idle Inhibitor")
|
||||
label.font.weight: 500
|
||||
checked: Idle.inhibit
|
||||
toggle.onToggled: Idle.inhibit = !Idle.inhibit
|
||||
}
|
||||
|
||||
Toggle {
|
||||
label.text: qsTr("Inhibit While Playing Audio")
|
||||
checked: Idle.inhibitPipewire
|
||||
toggle.onToggled: Idle.toggleInhibitPipewire()
|
||||
}
|
||||
|
||||
component Toggle: RowLayout {
|
||||
property alias checked: toggle.checked
|
||||
property alias label: label
|
||||
property alias toggle: toggle
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.rightMargin: 5
|
||||
spacing: 15
|
||||
|
||||
CustomText {
|
||||
id: label
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
CustomSwitch {
|
||||
id: toggle
|
||||
accent: Color.mute(Config.colors.idle, 1.1)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue