Skip to content

Feature Request: Provide CLI flags like -q (quit) and -r (reload) for control operations #86

Description

@ffs-akl

Currently, shojiwm uses keybindings to reload configuration and quit:

Win+Shift+Q -> Quit WM
Win+Shift+R -> Reload configuration

It would be great to provide command-line options (such as shojiwm -q and shojiwm -r) to perform these operations from the terminal, and allow users to customize their own keybindings for these actions.

Why this is useful (Use cases)
Status Bar Integration: Allows status bars (like Waybar or Polybar) to call shojiwm -r or shojiwm -q directly via click events (e.g., custom power menus or reload icons).
Custom Keybindings: Gives users the flexibility to map reload and exit actions to any hotkey combination they prefer.
Scripting & Automation: Makes it straightforward to automatically reload configuration in user scripts or dotfile deployment tools.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions