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 bluetooth: "kcmshell6 kcm_bluetooth"
|
||||||
property string network: "plasmawindowed org.kde.plasma.networkmanagement"
|
property string network: "plasmawindowed org.kde.plasma.networkmanagement"
|
||||||
property string networkEthernet: "kcmshell6 kcm_networkmanagement"
|
property string networkEthernet: "kcmshell6 kcm_networkmanagement"
|
||||||
property string settings: "systemsettings"
|
|
||||||
property string taskManager: "plasma-systemmonitor --page-name Processes"
|
property string taskManager: "plasma-systemmonitor --page-name Processes"
|
||||||
property string terminal: "kitty -1" // This is only for shell actions
|
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"
|
||||||
import "root:/modules/common/widgets"
|
import "root:/modules/common/widgets"
|
||||||
import "root:/modules/common/functions/string_utils.js" as StringUtils
|
import "root:/modules/common/functions/string_utils.js" as StringUtils
|
||||||
|
import "root:/modules/common/functions/file_utils.js" as FileUtils
|
||||||
import "./quickToggles/"
|
import "./quickToggles/"
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
@@ -16,8 +17,10 @@ import Quickshell.Wayland
|
|||||||
import Quickshell.Hyprland
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
|
id: root
|
||||||
property int sidebarWidth: Appearance.sizes.sidebarWidth
|
property int sidebarWidth: Appearance.sizes.sidebarWidth
|
||||||
property int sidebarPadding: 15
|
property int sidebarPadding: 15
|
||||||
|
property string settingsQmlPath: FileUtils.trimFileProtocol(`${Directories.config}/quickshell/settings.qml`)
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: sidebarRoot
|
id: sidebarRoot
|
||||||
@@ -143,11 +146,11 @@ Scope {
|
|||||||
toggled: false
|
toggled: false
|
||||||
buttonIcon: "settings"
|
buttonIcon: "settings"
|
||||||
onClicked: {
|
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 {
|
StyledToolTip {
|
||||||
content: qsTr("Plasma Settings")
|
content: qsTr("Settings")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QuickToggleButton {
|
QuickToggleButton {
|
||||||
|
|||||||
Reference in New Issue
Block a user