Skip to content

Limit Openbox to one desktop - #6

Merged
markcallen merged 1 commit into
mainfrom
reduce-openbox-desktops
Aug 27, 2026
Merged

Limit Openbox to one desktop#6
markcallen merged 1 commit into
mainfrom
reduce-openbox-desktops

Conversation

@markcallen

Copy link
Copy Markdown
Contributor

Summary

  • create an Openbox user rc.xml when missing during desktop startup
  • force the Openbox desktop count to one before launching the session

Testing

  • sh -n config/startwm.sh

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures Openbox sessions always run with a single desktop by creating a per-user rc.xml on startup (when missing) and enforcing <desktops><number>1</number></desktops> before launching openbox-session.

Changes:

  • Create $XDG_CONFIG_HOME/openbox/rc.xml at session start if it doesn’t exist (copying /etc/xdg/openbox/rc.xml when available, otherwise writing a minimal config).
  • Force the Openbox desktop count to 1 by editing the first matching <number>…</number> in rc.xml before starting the session.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@markcallen
markcallen merged commit e9540d6 into main Aug 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants