moverest / wl-kbptr

Control the mouse pointer with the keyboard on Wayland.
GNU General Public License v3.0
56 stars 7 forks source link

Add support for user configuration #2

Closed moverest closed 1 year ago

moverest commented 1 year ago

The aim of this MR is for the user to be able to set their configuration through the a configuration file and CLI parameters.

For example, the file would look like this:

[mode_tile]
label_color=#fffd
label_select_color=#fd0d
selectable_bg_color=#0304
selectable_border_color=#040c

The program would look for the configuration file in these places:

The same configuration could be passed (or overridden) by passing options to the CLI like so:

wl-kbptr \
  -o mode_tile.label_color=fffd \
  -o mode_tile.label_select_color=fd0d \
  -o mode_tile.selectable_bg_color=0304 \
  -o mode_tile.selectable_border_color=040c

TODO

This MR

Subsequent MRs