forked from Shinonome/dots-hyprland
make right sidebar open qs settings app
This commit is contained in:
@@ -33,7 +33,6 @@ Singleton {
|
||||
property string bluetooth: "kcmshell6 kcm_bluetooth"
|
||||
property string network: "plasmawindowed org.kde.plasma.networkmanagement"
|
||||
property string networkEthernet: "kcmshell6 kcm_networkmanagement"
|
||||
property string settings: "systemsettings"
|
||||
property string taskManager: "plasma-systemmonitor --page-name Processes"
|
||||
property string terminal: "kitty -1" // This is only for shell actions
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import "root:/services"
|
||||
import "root:/modules/common"
|
||||
import "root:/modules/common/widgets"
|
||||
import "root:/modules/common/functions/string_utils.js" as StringUtils
|
||||
import "root:/modules/common/functions/file_utils.js" as FileUtils
|
||||
import "./quickToggles/"
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
@@ -16,8 +17,10 @@ import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
property int sidebarWidth: Appearance.sizes.sidebarWidth
|
||||
property int sidebarPadding: 15
|
||||
property string settingsQmlPath: FileUtils.trimFileProtocol(`${Directories.config}/quickshell/settings.qml`)
|
||||
|
||||
PanelWindow {
|
||||
id: sidebarRoot
|
||||
@@ -143,11 +146,11 @@ Scope {
|
||||
toggled: false
|
||||
buttonIcon: "settings"
|
||||
onClicked: {
|
||||
Hyprland.dispatch(`exec ${ConfigOptions.apps.settings}`)
|
||||
Hyprland.dispatch(`global quickshell:sidebarRightClose`)
|
||||
Hyprland.dispatch("global quickshell:sidebarRightClose")
|
||||
Hyprland.dispatch(`exec qs -p '${root.settingsQmlPath}'`)
|
||||
}
|
||||
StyledToolTip {
|
||||
content: qsTr("Plasma Settings")
|
||||
content: qsTr("Settings")
|
||||
}
|
||||
}
|
||||
QuickToggleButton {
|
||||
|
||||
Reference in New Issue
Block a user