Forum › Forums › General › Software › App Select feature proposal: custom action launchers › Reply To: App Select feature proposal: custom action launchers
I can attach what I have, but it’s not much more than the screenshot showed. For now what these buttons launch is hard coded, but I think ultimately you would have options in the App Select menu itself to add and remove buttons from there, just like there is now for the toolbar, etc. For the time being, look at lines 718-722 in the script if you want to modify the buttons.
This should only look different if you start it in desktop mode
./app-select --desktop
App Select is one of the apps that doesn’t have an icon yet on antix-26 and that makes the desktop mode a problem especially. There’s an icon that can be used, though, so on antix-26, you can give App Select on icon by link to it:
sudo ln -s /usr/share/icons/Qogir/scalable/apps/pop-cosmic-applications.png /usr/share/icons/Qogir/scalable/apps/app-launcher.png
@Dave, you’ll recognize that all I’ve done is add code from desktop-session-exit to create these buttons. I don’t really know PyGTK, so I just cobble things together to get what I want.
I’ve made some other changes, such as using 24×24 icons and making the window appear near the mouse instead of maximized. Really, maybe it should be implemented as a new mode like ‘app-select –menu’ or something instead of taking over the desktop mode. I also tried making the window close automatically when it loses focus, but then it closes even if you open its own submenu. I figure there would be some kind of solution to that, but I haven’t really looked into it (for now I just commented out line 892 to disable that). I also think it would be better to keep the window borders instead of making it totally undecorated, but I couldn’t find a way to do that in PyGTK either, so I’m just doing it in IceWM’s winoptions.
app-select.App-select.dBorder: 1
Also to note. Newer versions of gtk will not have a system tray option. So desktop mode will be daemon mode. There is already setup a single instance only option where any attempt to launch app-select again just toggles the window visibility of the first. This should easily allow a daemon mode without the system tray and instead have a launcher.
I also discovered your trick
echo toggle > $XDG_RUNTIME_DIR/app-select.pipe
That’s what I’m using currently to toggle since I use my own launcher instead of a systray icon. Writing to the pipe is noticeably faster for me than calling app-select and letting that do the toggle. Not a huge difference, but noticeable.
If there’s no tray-icon for desktop mode some other way would need to be added to quit app-select completely instead of just hiding it. ESC used to do that, but I made that just hide, too.
Attachments:
"--"