palordrolap,

The gsettings command can change things on the fly in the dconf, assuming that's where the setting actually resides. It's a pain to do, but that means it's possible to write a script that makes the necessary change(s) and that can then be assigned to a keyboard combo.

For example, I have one that toggles a Cinnamon panel between the top and the bottom of its screen (I won't get into why) and currently have it bound to Ctrl-Alt-Space.

It's currently a hack that uses a couple of hardcoded values that I pulled from the dconf by observing what it was set to with the panel in each location. If it finds the first value it changes it to the second, and vice versa.

(In the unlikely event I come to change the layout to something it doesn't recognise, it bails out, doing nothing.)

Anyway, you could probably do something similar to toggle the dark/light mode.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • DreamBathrooms
  • magazineikmin
  • cubers
  • InstantRegret
  • cisconetworking
  • Youngstown
  • vwfavf
  • slotface
  • Durango
  • rosin
  • everett
  • kavyap
  • thenastyranch
  • mdbf
  • megavids
  • khanakhh
  • modclub
  • tester
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • ngwrru68w68
  • Leos
  • anitta
  • tacticalgear
  • normalnudes
  • provamag3
  • JUstTest
  • All magazines