WinGrid is awesome but not ideal for me. I’ve wrote WinMess to fulfill

Forum Forums General Software WinGrid is awesome but not ideal for me. I’ve wrote WinMess to fulfill

  • This topic has 15 replies, 5 voices, and was last updated Aug 30-11:13 pm by zblsv.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #65838
    Member
    zblsv

      Excuse my Google English…

      I usually place app windows in the same positions.
      Text editors, terminal emulators, the browser (when is not full screen)—they all take up different but repetitive positions and sizes.
      I use keyboard to launch them from Fluxbox main menu and don’t want touch the mouse.

      WinGrid is a good but not ideal solution for me.
      I want to see Rox icons and Conky on my wide 1920×1080 monitor.
      I want place the browser somewhat centralized and wider than terminal emulator also centralized somehow.

      So I wrote the WinMess that fulfills my needs.
      Here is the repo:
      https://github.com/zblsv/winmess

      Comments are welcome.

      Words are carried away by the wind...

      #65936
      Moderator
      BobC
        Helpful
        Up
        0
        ::

        I see you run Fluxbox. I wrote wingrid-center, wingrid-shrink, and wingrig-grow scripts to go with the others.

        #65941
        Member
        zblsv
          Helpful
          Up
          0
          ::

          Fluxbox is my favorite WM.
          I’m currently using Fluxbox on antiX Linux and Xfce on FreeBSD.
          For some time in the far past, I was on Ratpoison.

          Window placement and size in pixels can be seen by moving or resizing it with the mouse.
          My intention so is to save this values in config file to use later by one keypress.
          But the numbers disappear lighting fast, when the mouse released, and it be nice to save placement and size of active window automatically by keypress, I think…

          Ratpoison allows resizing of windows with keyboard.
          And it has only one entry point for its commands: after you press CTRL-T, you can input an arbitrarily long key sequence.
          I think, it be nice to have such an option for Fluxbox too…

          Words are carried away by the wind...

          #65942
          Moderator
          BobC
            Helpful
            Up
            1
            ::

            Yes, I can understand that. IceWM has it built in and some people use it to automatically set up windows in a predefined manner.

            #65943
            Member
            zblsv
              Helpful
              Up
              0
              ::

              automatically set up windows in a predefined manner

              Can IceWM place Leafpad, Roxterm and Firefox in the same predefined position?
              Or the placement must be defined three times for all three window classes?

              Words are carried away by the wind...

              #65960
              Moderator
              BobC
                Helpful
                Up
                1
                ::

                I know that winoptions settings will work for Firefox. You would need to try it for the others. At some point Xecure, PPC and I helped work on a script called icewm-remember-settings to generate the winoptions entries for a program once you changed the program’s window attributes to be the way you wanted, which I use by setting a Hotkey for it and then just pointing to the window whose settings I want it to remember. Others wanted to use it to select from the list of active windows. Either will be easier than trying to figure out all of the numbers. The people using it were Moddit and his user group.

                I would suggest searching here (pulldown Forum menu, then click search) and on IceWM related sites for winoptions. Or trying those same searches for icewm-remember-settings (the name suggested by anticapitalista), or maybe wmadjust. He was going to add icewm-remember-settings to the antix-goodies package if I recall, but a look at the installed programs list for antiX 21 doesn’t show it.

                As for will it work for the programs you want it to, I’d suggest giving it a try to see if it works for you. Perhaps you can use pieces of those to help with your Fluxbox solution.

                https://www.antixforum.com/forums/topic/working-with-windows-stuck-wide-open/page/2/#post-61359

                • This reply was modified 1 year, 8 months ago by BobC.
                • This reply was modified 1 year, 8 months ago by BobC.
                #65965
                Member
                Xecure
                  Helpful
                  Up
                  0
                  ::

                  On fluxbox is way easier.

                  Place the window where you want (using winmess for example). Right-click the windows’s titlebar, Go to the Remember submenu, and activate “Dimensions” and “Position” (and workspace if you also want it to always load in the same workspace).
                  Close the window and see for yourself if it works next time you open the program.

                  You can do this for every program. Then, if you don’t want this any more, follow the same process but de-activate the options you want it to forget.

                  I usually have toggle commands with specific fluxbox commands to manage position of windows, but it is too fluxbox specific, so it is not as good as what you or BobC have created, which should work on any window manager.

                  antiX Live system enthusiast.
                  General Live Boot Parameters for antiX.

                  #66025
                  Member
                  zblsv
                    Helpful
                    Up
                    0
                    ::

                    Place the window where you want (using winmess for example). Right-click the windows’s titlebar, Go to the Remember submenu

                    Firefox or Leafpad do it on its own.
                    It’s not what I need.

                    This fulfills my needs: place a window in desired position, run xwininfo in terminal, click the window, look for its parameters in xwininfo output, use the values in your scripts and keybindings.
                    But I want some more: press <Mod5-0>, yad dialog will appear in the center of the screen, it will show xwininfo output for active window and asks whether I want to save this position, if I press yes, it will ask a hint name and than write the values to config file.

                    • This reply was modified 1 year, 8 months ago by zblsv.

                    Words are carried away by the wind...

                    #66027
                    Forum Admin
                    anticapitalista
                      Helpful
                      Up
                      0
                      ::

                      So are you asking someone to write that script for you?

                      Philosophers have interpreted the world in many ways; the point is to change it.

                      antiX with runit - leaner and meaner.

                      #66028
                      Member
                      zblsv
                        Helpful
                        Up
                        0
                        ::

                        So are you asking someone to write that script for you?

                        Not at all.
                        Perhaps only, I’m asking if someone needs the same.

                        Words are carried away by the wind...

                        #66029
                        Moderator
                        BobC
                          Helpful
                          Up
                          0
                          ::

                          Did you find the code Xecure posted last October? It is oriented to an IceWM setup, but could be modified to work with Fluxbox and your script, I think.

                          #66030
                          Member
                          zblsv
                            Helpful
                            Up
                            0
                            ::

                            Did you find the code Xecure posted last October?

                            I’ve found it.
                            For now, this is somewhat aside from what occupies my mind.

                            Words are carried away by the wind...

                            #66053
                            Member
                            zblsv
                              Helpful
                              Up
                              0
                              ::

                              0.2.0
                              New hint format and described xwininfo crafted use of winmess-dim

                              Words are carried away by the wind...

                              #66093
                              Anonymous
                                Helpful
                                Up
                                0
                                ::

                                I see you run Fluxbox

                                debian (and antiX?) is still shipping fluxbox v1.3.5 ~~ which was released back in 2013
                                FYI, version 1.3.7 (released 2015) natively provides arrangewindows**** commands to support on-the-fly gridded rearrangement.
                                For the convenience of my local users, I exposed fluxbox menu entries for several of the grid commands.
                                If you’re interested in howto, search within this page for “arrangewindows”: https://github.com/antix-skidoo/fluxbox/blob/master/debian/fluxbox.menu-user

                                #66120
                                Forum Admin
                                anticapitalista
                                  Helpful
                                  Up
                                  0
                                  ::

                                  antiX has had fluxbox 1.3.7 in antiX-19/21 since 2020-01-15

                                  Philosophers have interpreted the world in many ways; the point is to change it.

                                  antiX with runit - leaner and meaner.

                                Viewing 15 posts - 1 through 15 (of 16 total)
                                • You must be logged in to reply to this topic.