Cycle through available layouts

Issue #32 resolved
Rainer Bode created an issue

Hi, I am on Arch and I use window managers for quite some time now. I came across dkwm though Arcolinux and took an immediate liking.

One thing I liked on other wms - and couldn’t figure out on dk - is the ability to cycle through the available layouts.

Is there a keyboard shortcut?

Many thanks …

Comments (6)

  1. Nate Maia repo owner

    There's nothing built in to do this but it could be scripted fairly easily. I'm at work but I'll post something this evening.

  2. Nate Maia repo owner

    I did write a script but it was easier to just make a new command, this is solved in 358a6af

    You can do the following dkcmd set layout cycle

  3. Rainer Bode reporter

    Cool, working greatly, many thanks … I wonder how one would create a script for dk or any wm? I have no idea where I would start or which language I would use. Any suggestions?

  4. Nate Maia repo owner

    If you use a terminal to run commands you’re basically already doing it. I would suggest learning shell (bash specifically), it’s what I started with years ago and it was great.

    Start small and simple, I did backups, file conversion, package manager commands, video recording commands, etc. I still use some of my very early scripts

    As far as scripting a WM its mostly the same, I can’t speak for others but in dk all the control is done through commands and you can get the current state with dkcmd status type=full num=1

    Depends on what you want to accomplish, there’s some examples for scripting dk in /usr/share/doc/dk/scripts if installed through a package manager, or /usr/local/share/doc/dk/scripts if installed manually.

    If you do have an idea of what you want to do I can help point you in the right direction.

  5. Log in to comment