quicktile icon indicating copy to clipboard operation
quicktile copied to clipboard

cycle_dimensions sequences shouldn't be hard-coded

Open ssokolow opened this issue 12 years ago • 1 comments

Currently, all aspects of mapping between key combinations and commands with --daemonize are configurable, but the definition of what those commands do is still hard-coded.

Given that most commands are essentially macros, cycling windows through sequences of position-dimension presets and that I've seen real-world examples of people editing quicktile.py simply to alter the POSITIONS map, this needs to change.

However, it won't be as simple as the existing config keys for the following reasons:

  • ConfigParser doesn't natively support lists of lists
  • SimpleJSON wasn't added to stdlib as the json module until Python 2.6
  • Mechanisms like pickle don't produce config files that are easy to read and edit by hand
  • I have no idea when I'll be ready to produce the GTK+ GUI for customizing configurations.
  • I don't want to add to QuickTile's list of dependencies for continued support of older Python versions just yet.

My current avenue of interest is exploring how much I'd have to compromise the expressiveness of the current system and what syntax I could easily parse to comfortably store a sequence of positions in a reasonably intuitive, human-editable string that will still be easy to both parse and generate when it comes time to create a configuration GUI.

ssokolow avatar Sep 14 '11 06:09 ssokolow

Now that all my target platforms have at least Python 2.6, this will probably be the next thing I work on since it would remove the need for the vast majority of the forks up on GitHub.

ssokolow avatar Oct 01 '13 09:10 ssokolow