feat(cli): add stackbar-mode command

This commit adds a new komorebic command "stackbar-mode" to allow users
to change stackbar modes programmatically.
This commit is contained in:
LGUG2Z
2025-01-04 10:56:44 -08:00
parent ba52dc3378
commit c063302c91
8 changed files with 51 additions and 4 deletions
+3 -1
View File
@@ -238,7 +238,9 @@ pub struct SubscribeOptions {
pub filter_state_changes: bool,
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Display, Serialize, Deserialize, JsonSchema)]
#[derive(
Debug, Copy, Clone, Eq, PartialEq, Display, Serialize, Deserialize, JsonSchema, ValueEnum,
)]
pub enum StackbarMode {
Always,
Never,
+1
View File
@@ -1662,6 +1662,7 @@ impl WindowManager {
}
SocketMessage::StackbarMode(mode) => {
STACKBAR_MODE.store(mode);
self.retile_all(true)?;
}
SocketMessage::StackbarLabel(label) => {
STACKBAR_LABEL.store(label);