summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author八奈見 レイ <rei.tteiimasu@gmail.com>2026-02-19 17:30:02 +0530
committerGitHub <noreply@github.com>2026-02-19 23:00:02 +1100
commit1313b899ad9e0aba73aadedb249da1e5dfbf1486 (patch)
treeba5c6e021ca5425d48b728405c5dee60c26fb26d
parentdashboard/performance: new design, configurable, controlcenter support (#975) (diff)
downloadcaelestia-shell-1313b899ad9e0aba73aadedb249da1e5dfbf1486.tar.gz
caelestia-shell-1313b899ad9e0aba73aadedb249da1e5dfbf1486.tar.bz2
caelestia-shell-1313b899ad9e0aba73aadedb249da1e5dfbf1486.zip
config: added option to set session icons (#1189)
-rw-r--r--README.md6
-rw-r--r--config/Config.qml6
-rw-r--r--config/SessionConfig.qml8
-rw-r--r--modules/session/Content.qml8
4 files changed, 24 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0c3ca82..c46f423 100644
--- a/README.md
+++ b/README.md
@@ -604,6 +604,12 @@ default, you must create it manually.
"dragThreshold": 30,
"enabled": true,
"vimKeybinds": false,
+ "icons": {
+ "logout": "logout",
+ "shutdown": "power_settings_new",
+ "hibernate": "downloading",
+ "reboot": "cached"
+ },
"commands": {
"logout": ["loginctl", "terminate-user", ""],
"shutdown": ["systemctl", "poweroff"],
diff --git a/config/Config.qml b/config/Config.qml
index 1c01719..a70da54 100644
--- a/config/Config.qml
+++ b/config/Config.qml
@@ -359,6 +359,12 @@ Singleton {
enabled: session.enabled,
dragThreshold: session.dragThreshold,
vimKeybinds: session.vimKeybinds,
+ icons: {
+ logout: session.icons.logout,
+ shutdown: session.icons.shutdown,
+ hibernate: session.icons.hibernate,
+ reboot: session.icons.reboot
+ },
commands: {
logout: session.commands.logout,
shutdown: session.commands.shutdown,
diff --git a/config/SessionConfig.qml b/config/SessionConfig.qml
index f65ec6d..414f821 100644
--- a/config/SessionConfig.qml
+++ b/config/SessionConfig.qml
@@ -4,10 +4,18 @@ JsonObject {
property bool enabled: true
property int dragThreshold: 30
property bool vimKeybinds: false
+ property Icons icons: Icons {}
property Commands commands: Commands {}
property Sizes sizes: Sizes {}
+ component Icons: JsonObject {
+ property string logout: "logout"
+ property string shutdown: "power_settings_new"
+ property string hibernate: "downloading"
+ property string reboot: "cached"
+ }
+
component Commands: JsonObject {
property list<string> logout: ["loginctl", "terminate-user", ""]
property list<string> shutdown: ["systemctl", "poweroff"]
diff --git a/modules/session/Content.qml b/modules/session/Content.qml
index 900683f..45152e2 100644
--- a/modules/session/Content.qml
+++ b/modules/session/Content.qml
@@ -18,7 +18,7 @@ Column {
SessionButton {
id: logout
- icon: "logout"
+ icon: Config.session.icons.logout
command: Config.session.commands.logout
KeyNavigation.down: shutdown
@@ -38,7 +38,7 @@ Column {
SessionButton {
id: shutdown
- icon: "power_settings_new"
+ icon: Config.session.icons.shutdown
command: Config.session.commands.shutdown
KeyNavigation.up: logout
@@ -60,7 +60,7 @@ Column {
SessionButton {
id: hibernate
- icon: "downloading"
+ icon: Config.session.icons.hibernate
command: Config.session.commands.hibernate
KeyNavigation.up: shutdown
@@ -70,7 +70,7 @@ Column {
SessionButton {
id: reboot
- icon: "cached"
+ icon: Config.session.icons.reboot
command: Config.session.commands.reboot
KeyNavigation.up: hibernate