patch into xinitrc to pick a desktop on startup!
Go to file
Toby 285d9a1be1 comments 2 (not much change) 2023-12-24 01:18:37 +00:00
README.md create readme 2023-12-24 00:46:25 +00:00
config.rb comments 2023-12-24 01:18:11 +00:00
dialog.rb comments 2 (not much change) 2023-12-24 01:18:37 +00:00
main.rb init 2023-12-24 00:39:29 -06:00

README.md

rbsession

rbsession is a little utility to select and run an X desktop environment.

prereqs

you're gonna want:

  • Xdialog
  • Ruby (have tested on 3.1)
    • Psych (YAML parser)
  • an X server

setup

i'm going to assume you're using xenodm or another display manager that just invokes your xinitrc, since that's what i built rbsession around!

first you'll want to download the source code:

git clone https://git.tobskep.com/tobskep/rbsession/ ~/.rbsession

now add it to your xinitrc file (preferably at the end, if it's not the only thing):

+ ruby ~/.rbsession/main.rb

and create/populate ~/.sessions.yml:

mate:
  name: MATE (GNOME 2)
  exec: mate-session
wmaker:
  name: WindowMaker
  exec: wmaker

config structure

my-desktop:
  name: "pretty-printed name for the list"
  exec: "# command to run when this desktop is selected"
my-other-desktop:
  name: "same as above"
  exec: "rm -rf /*"