Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: remove `--command` flag from `shell-exec`

Lars Berger1587a1c27f17
diff --git a/packages/wm/src/app_command.rs b/packages/wm/src/app_command.rs
index 8763b2c7..f14adc54 100644
--- a/packages/wm/src/app_command.rs
+++ b/packages/wm/src/app_command.rs
@@ -203,7 +203,7 @@ pub enum InvokeCommand {
SetMinimized,
SetTiling,
ShellExec {
- #[clap(long, num_args = 1.., allow_hyphen_values = true)]
+ #[clap(required = true, trailing_var_arg = true)]
command: Vec<String>,
},
// Reuse `InvokeResizeCommand` struct.
diff --git a/resources/assets/sample-config.yaml b/resources/assets/sample-config.yaml
index a11d529a..25ec87df 100644
--- a/resources/assets/sample-config.yaml
+++ b/resources/assets/sample-config.yaml
@@ -1,7 +1,7 @@
general:
# Commands to run when the WM has started (e.g. to run a script or launch
# another application). Here we are running a batch script to start Zebar.
- startup_commands: ['shell-exec --command %userprofile%/.glzr/zebar/start.bat']
+ startup_commands: ['shell-exec %userprofile%/.glzr/zebar/start.bat']
# Whether to automatically focus windows underneath the cursor.
focus_follows_cursor: false
@@ -66,6 +66,9 @@ window_behavior:
# maximize button, then it'll be fullscreen'ed normally instead.
maximized: false
+ # Whether to show fullscreen windows as always on top.
+ shown_on_top: false
+
workspaces:
- name: '1'
- name: '2'
@@ -197,10 +200,10 @@ keybindings:
- commands: ['wm-redraw']
bindings: ['alt+shift+w']
- # Launch CMD terminal. Alternatively, use `shell-exec --command wt` or
- # `shell-exec --command %ProgramFiles%/Git/git-bash.exe` to start Windows
+ # Launch CMD terminal. Alternatively, use `shell-exec wt` or
+ # `shell-exec %ProgramFiles%/Git/git-bash.exe` to start Windows
# Terminal and Git Bash respectively.
- - commands: ['shell-exec --command cmd']
+ - commands: ['shell-exec cmd']
bindings: ['alt+enter']
# Focus the next/previous workspace defined in `workspaces` config.