Author Topic: Interactive bspwm configuration tool?  (Read 3145 times)

0 Members and 1 Guest are viewing this topic.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Interactive bspwm configuration tool?
« on: 10. February 2016, 07:44:26 »
Is anybody interested in interactive configuration tool similar to bmenu?

It would feature:
1) Rule adding utility. Choose window class from open windows with fzf (or choose with mouse?), then choose window state (tiled, floating etc) and window properties (sticky, private etc). Command is run and you are asked if wish to make it permanent.
- this probably the most difficult one to implement
2) rule remover. Choose with fzf from all active rules as many as you like. Rules are disabled and you can choose if you wish to remove them permanently.
- easy to implement
3) config tool. List all bspwm configurations (focus follows mouse, borderless monocle and so on) with their states (true or false). Choose as many as you like, chosen items get toggled. You can choose to make the settings permanent.
- also easy
4) items to edit bspwmrc, shkdrc and .profile with nano

Would this be useful to someone?


Offline withjaro

  • Held Mitglied
  • *****
  • Posts: 772
  • 360
  • Branch: unstable
  • Desktop: openrc
  • GPU Card: geforce7150/ATIx2300
  • GPU driver: free
  • Kernel: linux4xxx-x64
  • Skill: Novice
Re: Interactive bspwm configuration tool?
« Reply #1 on: 10. February 2016, 13:32:44 »
I think with previously mentioned initiatives,a configuration tool would be very much appreciated Chrysostomus :)
I will have holistic meditation on matters and see if i can make additional suggestions.
< insert your own inspiring quotation - and smile :) >

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #2 on: 11. February 2016, 23:31:24 »
I was talking about how nice it would be to have something like that in another linux community just recently.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #3 on: 12. February 2016, 03:00:45 »
Okay, I'll probably start working on it then when time becomes available. Post any ideas and wanted features here.

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #4 on: 12. February 2016, 08:58:28 »
feature to apply config without restarting bspwm and with restarting would be nice, also to turn on and off negative padding that is by default in your edition. and pretty obvious things, like turn on and off rules just with regular checkboxes, list where you can add apps and set rules for them with checkboxes too and ability to set hotkeys too.
don't think this tool will let you not to edit config yourself at all, but at least will ease the task and save time.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #5 on: 12. February 2016, 09:53:49 »
Applying without restarting would be the default.

Checkboxes.... hmmm...that would mean gui instead of just plain cli as I planned. Probably using zenity...

Offline TenShiN

  • Jr. Mitglied
  • **
  • Posts: 66
  • I like potatoes.
  • Branch: stable
  • Desktop: bspwm+xfce4-panel
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #6 on: 12. February 2016, 11:59:39 »
well, any tool would be great, maybe cli even better dunno. we don't have any yet, and actually I don't know any tiling wm with such a tool, so it will be nice to have one in any form.

Offline simgin

  • Held Mitglied
  • *****
  • Posts: 774
  • Branch: All.
  • Desktop: XFCE+Alpine Linux, Mate+Fedora, Ubuntu Server + Mate and NoX+LinuxBBQ
  • GPU Card: GeForce 8600M & GT 555M 2GB
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #7 on: 14. February 2016, 12:42:12 »
@ Chrys, no gui. Ncurses +1
My 5 pence.

Cheerio

Simgin

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #8 on: 15. February 2016, 02:18:39 »
Ncurses? Haven't done those before, could be interesting.

Offline withjaro

  • Held Mitglied
  • *****
  • Posts: 772
  • 360
  • Branch: unstable
  • Desktop: openrc
  • GPU Card: geforce7150/ATIx2300
  • GPU driver: free
  • Kernel: linux4xxx-x64
  • Skill: Novice
Re: Interactive bspwm configuration tool?
« Reply #9 on: 15. February 2016, 02:56:15 »
http://invisible-island.net/ncurses/

nice selection of base applications and bindings
just curious how they are going to progress from SysV

The answers will come from study (i poke myself) ;)
Looking forward to your prospective creations,Chrysostomus :)

< insert your own inspiring quotation - and smile :) >

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #10 on: 17. February 2016, 05:36:09 »
Okay, I have now pretty clear plans how to do this. Ncurses is a good choice, because checkboxes are suited for this task.

I will probably leave it out from next release though. Most everything else is already ready for building the iso, and though I mostly know how to do this, it is going to take much time and work. Everything else would be relatively easy and fast to code, except for the rule creation part.

Offline rhg135

  • Neuling
  • *
  • Posts: 7
  • computers are supposed to make life easier...
    • tehblog
  • Branch: stable
  • Desktop: i3
  • GPU Card: A10-4600M APU
  • GPU driver: free
  • Kernel: linux314-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #11 on: 20. February 2016, 22:38:38 »
With ncurses you'd also be able to provide point&click and keyboard bindings in one tool. And such a tool would be nice because at least I cannot remember all the bspwm options, so it'd be useful to be able to work at a higher level instead of trying to remember what combination will achieve the desired end.
I cannot always be at a computer, thus replies may be delayed if they require being at one.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #12 on: 24. February 2016, 02:37:06 »
From usability perspective ncurses seems to be the way to go. However, I'm having great difficulties how to make dynamic menus with dialog. This is my first time using it, and I'm currently having quite little time (moving to a new continent in a month).

If somebody can post an example checkbox menu from output of
Code: [Select]
bspc rule -l it will speed up developement greatly.

Offline tanaymkis

  • Jr. Mitglied
  • **
  • Posts: 72
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: i3
  • Kernel: 3.18.22-1-MANJARO i686
  • Skill: Novice
Re: Interactive bspwm configuration tool?
« Reply #13 on: 26. February 2016, 14:23:29 »
I am fairly sure that you have thought of this, but why not just make something in bash ? Something like pacli.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Interactive bspwm configuration tool?
« Reply #14 on: 26. February 2016, 14:32:37 »
Yeah, that was my original idea. Curses interface was suggested in this thread. Advantages it offers are:
- looks more professional
- more tolerant to wrong sized terminal
- usable with mouse

But yeah, just bash + fzf is easier to do.