r/QuickShell • • 18h ago

Manage shell Settings

Hi , I'm buiding my first shell , I want to ask you guys how do you manage the shell settings , where I should store them also I want them to be centralized in one window

1 Upvotes

2 comments sorted by

View all comments

2

u/chikamakaleyley 11h ago

if the eventual goal is to manage through a GUI, then one suggestion would be to "tokenize" every dynamic value up into a config file

Ultimately, your 'one window' is just a widget like any other that you build in QS - you make a change to a checkbox, slider, value, etc whatever - that change just modifies the value in the conf.

Until you build that Settings widget, you can just change the conf file directly:

my-shell-project
  -> /components
     -> SettingsWidget.qml.   // only modifies values in .conf 
     -> BluetoothWidget.qml.  // receives value from shell.qml
  -> shell.qml                // reads from source of truth
  -> my-shell.conf            // source-of-truth

and so in my-shell.conf you'd set something like

bar.widget.borderWidth=2
bar.widget.borderColor="red"
bar.widget.bgColor="#000000"

at least, that's sorta how i've set mine up. my-shell.conf would be set up now, you can do the GUI SettingsWidget.qml later

1

u/dev-ayoub 9h ago

Thank you