Registered Member
|
I have a bunch of Bash scripts that I have set up in .bash_aliases. I normally open Dolphin and toggle the Terminal to run them, but I'm wondering if there's a way to have a shortcut to some of the scripts pinned to the toolbar so that I simply press a button and it invokes the scripts?
Thanks. Operating System: KDE neon 5.24 KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.13.0-39-generic (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz Memory: 7.7 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 520
KDE neon 5.24
KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.13.0-39-generic (64-bit) X11 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz 7.7 GiB of RAM Graphics: Mesa Intel® HD Graphics 520 |
Registered Member
|
I've searched a long time for this, to no avail. Whereas it's easy to create custom servicemenus and if needed to make desktop files for those ( to place on a panel or whatever and toggle them from there) I haven't found a way to add custom entries to Dolphin's toolbar. This feature is perfectly possible in fm's like spacefm, pcmanfm-qt, caja... I'd like to know where these toolbar "contextmenus" are stored on the system. If they are really because there a certain things like the "copy/move to" service menu are dynamically generated. But that's beyond my payroll. In either case, if those commands are stored somewhere it would be cool if you could add some customs ( like bash or python scripts). In your case I guess a submenu in the servicemenus would be easier than having to toggle a terminal each time though. You could make some servicemenu in ~/.local/share/kservices5/ServiceMenus/.
Like this example for audio/video convert https://imgur.com/a/WbxgjVI. It ain't the toolbar, but it's a lot easier than having to launch a terminal each time you want to launch a script. All you need to do is set the commands in the servicemenus ( whether by terminal -e, xdotool, exec path to...etc whatever) and adjust the mimetypes as to which script will show on what type of file. Something like this: https://imgur.com/a/LSEDggv Ps: They don't have to be dolphin specific btw. You can make any type of command in your context menu. For example, I sometimes need to switch to a tile layout. So I made a quick switch to krohnkite layout servicemenu (for which I also made a desktop entry. I can launch that from dolphin, menu, desktop right click or panel, in a single click that way) https://imgur.com/a/hEQFx3j. So, there are options. But so far, haven't found a toolbar one.
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
Registered Member
|
Thanks for this response.
KDE neon 5.24
KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.13.0-39-generic (64-bit) X11 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz 7.7 GiB of RAM Graphics: Mesa Intel® HD Graphics 520 |
Registered Member
|
It should be possible using a git version. I personally gave up on that since i kept running into errors. There was a discussion here last week about someone trying to add a media button. I think that for the biggest part of people who want a generic/customizable toolbar button, it should be implemented by the devs itself. And um... this option/function is being discussed/demanded well over 5 years now, so...
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]