[SOLVED] xfce4-appfinder on a hotkey in IceWM doesn't get focus on open

Forum Forums New users New Users and General Questions [SOLVED] xfce4-appfinder on a hotkey in IceWM doesn't get focus on open

  • This topic has 6 replies, 3 voices, and was last updated Mar 1-5:33 am by BobC.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18955
    Moderator
    BobC

      I installed xfce4-appfinder on Ctrl+Space and dmenu on Ctrl+Alt+Space and it is a great combo.

      But I have a problem. When I press Ctrl+Space, the appfinder window pops up, but if I just type, as I would naturally do, the text gets typed into the windo I was in before, not the appfinder search value field. I think the appfinder window isn’t getting focus (if I’m saying that right) and I was trying to put something into the ~/.icewm/winoptions file to make it get focus and allow search string input when it pops up.

      Anyone know how?

      • This topic was modified 4 years, 2 months ago by BobC.
      Attachments:
      #18957
      Anonymous
        Helpful
        Up
        0
        ::

        installed + tested, I didn’t have the same result.
        Yes, as soon as the xfce4-appfinder launches, it receives focus and a blinking text cursor is evident in its entrybox.
        Have you modded any of your iceWM preferences, stuff like “sloppy mouse focus”?

        The problem I immediately observed (tested iceWM and fluxbox):
        “keep a running instance” is set, by default, in xfce4-appfinder… but after using it once (launched from commandline), I can’t regain its window. No taskbar icon for it, alt+tab window tabbing doesn’t raise its window. So, aside from all else, I suggest you check “htop”. Just a hunch, but I’m guessing you’re launching a fresh instance every time you activate the keybind (and multiple “previously launched, and lost” instances have accumulated).

        kupfer (python + gtk)
        ^———– FWIW, that’s the “runner” utility I would choose instead of xfce4-appfinder

        #18958
        Anonymous
          Helpful
          Up
          0
          ::

          Since I‘m almost never using any shortcuts, I‘m not 100% sure, but wasn‘t there a function in IceWM that would get activated on pressing Ctrl+Space or Ctrl+Alt+Space and then one can type the application name, which shows on the taskbar (some sort of „Run“)?

          Please try some other combination like Win+D (for Dmenu) and Win+SomethingUnused for XFCE Appfinder.

          Just to see if that works.

          #18959
          Anonymous
            Helpful
            Up
            0
            ::

            „Run“

            antiX Full has at least 3 pre-installed

            fbrun (provided by fluxbox),
            gExec (bound to Alt+F2 in default antiX settings), and
            gksu

            Yah. At a command prompt, type gksu + press Enter
            When no arguments are passed, gksu displays a “Run program” window.
            Many people probably overlook its availability as an application runner ~~ its package installs a .desktop file which has an Exec= line specifying x-terminal-emulator (and a description “Root Terminal”)

            #18960
            Moderator
            BobC
              Helpful
              Up
              0
              ::

              noClue, it does by default have a little command line that pops up with Ctrl+Alt+Space, but that’s not good enough. That is setup in ~/.icewm/preferences.

              It also can be configured to use dmenu on that key by adding this line to ~/.icewm/keys

              key “Ctrl+Alt+Space” dmenu_run -i -b -fn 10×20 -nb black -nf white -sb grey -sf black

              Xfce4’s App Finder can bet installed with synaptic or apt-get with “sudo apt-get update && sudo apt-get install xfce4-appfinder” and I like to make it work off Ctrl+Space and leave dmenu on Ctrl+Alt+Space

              key “Ctrl+Space” xfce4-appfinder

              But to make it work nicely I needed to have the mouse focus set for sloppy focus and add this line in ~/.icewm/winoptions to create the window in a nice position with ps -ef xfce45a nice size. I used xprop to find the window name.

              xfce4-appfinder.Xfce4-appfinder.geometry: 700×500+100+200

              Skidoo, you were right, Focus on the menu was set to “Click to Focus”. I changed it to sloppy mouse focus and just need to move the mouse to the window and the cursor goes there.
              Thanks much

              I did try installing kupfer but I like how xfce’s appfinder puts the close guesses on the screen and looks nice. I checked and its not putting 10 of them in memory. Maybe I missed doing some configuration for kupfer?

              PS: skidoo, thanks for the other suggestions. I’ll give them a try tomorrow. My desktop is getting very comfy 🙂

              • This reply was modified 4 years, 2 months ago by BobC.
              #18962
              Anonymous
                Helpful
                Up
                0
                ::

                I changed it to sloppy mouse focus and just need to move the mouse to the window and the cursor goes there.

                okay, but I haven’t chosen sloppy mouse focus & can’t recall changing any of the default iceWM prefs, and… as soon as xfce4-appfinder launches, its entrybox grabs focus and I just start typing (don’t need to touch the mouse). In my post above, I was wondering whether you had, maybe, enabled sloppymousefocus and that was causing the behavior described in the OP.

                iceWM :: Ctrl+Alt+Space (found it on this system bound to Ctrl+Space)
                aha! I had forgotten about that iceWM feature.

                kupfer does provide fuzzy search as you type, but (I reinstalled a stock v2.0.8 and tested) it doesn’t display the currentlist unless I press the down arrow key. Launched it from commandline and I’m seeing a lot of python exception lines. Also, its “Preferences” menu item is unresponsive. Checking my archive, I see that “kupfer-209” is what I had used previously (that may be a newer version, or a custom version I had been hacking on, back in ’18).

                #18971
                Moderator
                BobC
                  Helpful
                  Up
                  0
                  ::

                  I did try the fbrun, gexec and gksu and they don’t quickly pop up a nice easy to spot the app list (from its icon and name) that I was looking for. Sometimes navigating the menu trees is a pain and I have trouble remembering where a particular program is to get to it.

                  I have the dmenu when I want lower level, command line launch ability running off Ctrl+Alt+Space, and gexec is both on the start menu and mapped to Alt+F2.

                  Your kupfer is close, like Launchy, but I like the xfce4-appfinder, and since MX is xfce based, I can count on a non-systemd version being available from the Dev’s here, I would think. It’s only a couple mb, so not too bad footprint wise when I added it.

                  Thanks for the wealth of ideas and suggestions. And no, I don’t understand why it didn’t come up right in the fist place, either 🙂

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