bismuth icon indicating copy to clipboard operation
bismuth copied to clipboard

[FEATURE]: Programmatically enable/disable Bismuth tiling

Open ginkel opened this issue 3 years ago • 4 comments

Summary

When docking / undocking my laptop I'd like to automatically enable (on dock) or disable (on undock) Bismuth tiling. Is there a already a way to do so?

A clear and concise description of what you want to happen

See above.

A clear and concise description of any alternative solutions or features you've considered.

No response

Additional info

No response

ginkel avatar Jan 05 '22 23:01 ginkel

You could do though by enabling/disabling a hidden KWin Script. That's what KCM does.

This may seem scary, so I can try to simplify the process. However, I've never done such automation, so I don't know how exactly it is done. I assume you can execute the script on docking operation, right? I could add a script, that enables and disable Bismuth, if that's what you want.

gikari avatar Jan 06 '22 09:01 gikari

A script would be perfectly fine, I could invoke that from the udev hook I'm already using.

ginkel avatar Jan 06 '22 12:01 ginkel

I think the DBus implementation for Bismuth might help. Similar to BSPWM's bspc command controlling bspwm and I3wm's equivalent. With that we can interact with Bismuth with commands.

b1scu1t avatar Jan 16 '22 22:01 b1scu1t

I think the DBus implementation for Bismuth might help. Similar to BSPWM's bspc command controlling bspwm and I3wm's equivalent. With that we can interact with Bismuth with commands.

This is close to what I'm currently doing, btw) See #219

gikari avatar Jan 17 '22 12:01 gikari