Skip to content

Sommerwiesel/kde-servicemenus

 
 

Repository files navigation

KDE Service Menus

My personal KDE service menus collection, it includes the following scripts:

  • Copy Filelist to Klipper: copy the result of a several types of finding, accomplished through the find command, in the clipboard area using the Klipper D-Bus service;
  • Copy to Klipper: copy the selected filename name, or parts of it, in the clipboard area using the Klipper D-Bus service;
  • Download with youtube-dl here: Download a file in the current folder making use of the youtube-dl command line tool;
  • Open Konsole Here: Open the selected path in the first or last Konsole window, current or new session;
  • Open with gVIM: displays all the selected files in different gVIM tabs instead of opening them in hidden buffers;
  • Open Yakuake Here: open the selected path in the current or new Yakuake session, within the current terminal with or without splitting it horizontally or vertically.
  • Scan with ClamAV: scan the current directory or selected folder/file with ClamAV using either Yakuake or Konsole

Installation

There are several options to install the service menus listed in this repository.

From Dolphin

All of them are available at the KDE store and in the connected sites (Opendesktop, Pling), that way the installation can be easily performed using the proper Dolphin interface available among the settings:

Settings > Services > Download new Services

Just fill up the text box with the service name and, once found, install it from that interface.

Downloading the archive from Pling

The compressed archive can be downloaded from Pling or the other twin websites, and can be used in two ways:

  • extracting it and running the Makefile included;
  • using the servicemenuinstaller command;
  • extracting it and manually copy the files.

Let see them in details.

Makefile

So after extracting the archive:

$ tar -xvf <archive-name.tgz>

And entered the folder:

$ cd <project_folder>

The following command can be launch to install the service menu:

$ make install

To remove the service, from within the same folder:

$ make uninstall

Servicemenuinstaller

This is a Dolphin utility which automatically install the archives downloaded by Pling.

$ servicemenuinstaller install <archive-name.tgz>

To uninstall it must use the same archive and run the command:

$ servicemenuinstaller uninstall <archive-name.tgz>

Manual install

To install a service manually, if not otherwise advised, it's just easy as copying the .desktop file under the local folder:

  • KDE 4: ~/.kde4/share/kde4/services/ServiceMenus/
  • KDE 5: ~/.local/share/kservices5/ServiceMenus/

From the GitHub repository

Once cloned the repository locally:

$ git clone https://github.com/fabiomux/kde-servicemenus.git

Enter the project folder:

$ cd kde-servicemenus

Build the archive for the wanted project using as name the related folder:

$ make <project_name>

Install it using the Dolphin utility:

$ servicemenuinstaller install <archive-name.tgz>

You can use the same archive to uninstall the service if not needed:

$ servicemenuinstaller uninstall <archive-name.tgz>

Get Help

More info is available at:

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 69.0%
  • Shell 31.0%