feat: KDE config (dolphin, okular)

This commit is contained in:
Michel 2023-03-24 21:34:01 +01:00
parent 93fd73fc16
commit ced2772e73
9 changed files with 955 additions and 0 deletions

View File

@ -0,0 +1,264 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel>
<xbel xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info" xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks" dbusName="dolphin" folded="no" xmlns:kdepriv="http://www.kde.org/kdepriv">
<bookmark href="file:///home/michel/bin">
<title>bin</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/T%C3%A9l%C3%A9chargements">
<title>Téléchargements</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="folder-download"/>
</metadata>
</info>
</bookmark>
<separator/>
<folder folded="no">
<title>dev</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="bookmark_folder"/>
</metadata>
</info>
<bookmark href="file:///home/michel/dev">
<title>.</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev/15118">
<title>15118</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="/home/michel/dev/15118/.dir.webp"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev/ACE-EV">
<title>ACE-EV</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev/dotfiles">
<title>dotfiles</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev/15118/reqz-v2g-20">
<title>reqz-v2g-20</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev/15118/wb_poc">
<title>wb_poc</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
</folder>
<folder folded="no">
<title>dev_3rd</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="bookmark_folder"/>
</metadata>
</info>
<bookmark href="file:///home/michel/dev_3rd">
<title>.</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/dev_3rd/C++/">
<title>C++</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="folder-development"/>
</metadata>
</info>
</bookmark>
</folder>
<bookmark href="file:///home/michel/dev_local">
<title>dev_local</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<separator/>
<folder folded="no">
<title>NC</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="bookmark_folder"/>
</metadata>
</info>
<bookmark href="file:///home/michel/NC-Famille">
<title>Famille</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/NC-Michel/Linux">
<title>Linux</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/NC-Michel/">
<title>Michel</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/NC-Michel/VEDECOM">
<title>VEDECOM</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
</folder>
<bookmark href="file:///home/michel/OneDrive/Michel">
<title>onedriver</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<folder folded="no">
<title>D1-OS4</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="bookmark_folder"/>
</metadata>
</info>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General">
<title>.</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/ACE-EV">
<title>ACE-EV</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<folder folded="no">
<title>WPx Documents utiles</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="bookmark_folder"/>
</metadata>
</info>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles">
<title>.</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<separator/>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Datasheets">
<title>Datasheets</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Datasheets/Arduino">
<title>Arduino</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Datasheets/Codico">
<title>Codico</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Datasheets/Raspberry">
<title>Raspberry</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<separator/>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Documents%20normes,%20CCS,%20OCPP">
<title>Normes</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Documents%20normes,%20CCS,%20OCPP/BNA_CN-31">
<title>BNA_CN-31</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Documents%20normes,%20CCS,%20OCPP/IEC%2061851">
<title>IEC 61851</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
<bookmark href="file:///home/michel/OneDrive/D1-OS4/General/WPx%20Documents%20utiles/Documents%20normes,%20CCS,%20OCPP/ISO%2015118%20et%20DIN%20SPEC%2070121">
<title>ISO 15118 et DIN SPEC 70121</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:icon name="inode-directory"/>
</metadata>
</info>
</bookmark>
</folder>
</folder>
</xbel>

View File

@ -0,0 +1,10 @@
[Dolphin]
GroupedSorting=true
PreviewsShown=false
SortFoldersFirst=false
Timestamp=2022,3,29,11,43,47.203
Version=4
ViewMode=1
[Settings]
HiddenFilesShown=true

View File

@ -0,0 +1,38 @@
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=as_zstd;as_7z;as_bz2;as_gz;as_zip;00_dialog;
X-KDE-Submenu=Compress
X-KDE-StartupNotify=false
X-KDE-Priority=TopLevel
[Desktop Action as_7z]
Name=as 7zip archive
Icon=ark
Exec=ark --changetofirstpath --add --autofilename 7z %F
[Desktop Action as_bz2]
Name=as bz2 archive
Icon=ark
Exec=ark --changetofirstpath --add --autofilename tar.bz2 %F
[Desktop Action as_gz]
Name=as gz archive
Icon=ark
Exec=ark --changetofirstpath --add --autofilename tar.gz %F
[Desktop Action as_zip]
Name=as zip archive
Icon=ark
Exec=ark --changetofirstpath --add --autofilename zip %F
[Desktop Action as_zstd]
Name=as Zstandard archive
Icon=ark
Exec=ark --changetofirstpath --add --autofilename tar.zst %F
[Desktop Action 00_dialog]
Name=Choose...
Icon=ark
Exec=ark --add --changetofirstpath --dialog %F

View File

@ -0,0 +1,38 @@
# Version 1.0
# https://www.opencode.net/ashark/compare-using-meld_dolphin-service-menu
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;application/octet-stream;
Icon=org.gnome.meld
Actions=setArg1;diff;diffsudo;_SEPARATOR_;selected;selectedsudo;
X-KDE-StartupNotify=false
X-KDE-Submenu=Compare using meld
X-KDE-Priority=TopLevel
[Desktop Action setArg1]
Icon=document-compareleft
Exec=echo "%U" > /tmp/meld-menu-arg1
Name=Mark for use in left column
[Desktop Action diff]
Icon=document-compareright
Exec=ARG1=$(cat /tmp/meld-menu-arg1);meld "$ARG1" %U; rm /tmp/meld-menu-arg1;
Name=Use in right column and compare
[Desktop Action diffsudo]
Icon=document-compareright
Exec=ARG1=$(cat /tmp/meld-menu-arg1); rm /tmp/meld-menu-arg1; if [ "$XDG_SESSION_TYPE" = "wayland" ]; then xhost +si:localuser:root && pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch meld "$ARG1" %U && xhost -si:localuser:root ; else pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true meld "$ARG1" %U; fi;
Name=Use in right column and compare as root
[Desktop Action selected]
Icon=kr_comparedirs
Exec=meld %U; rm /tmp/meld-menu-arg1;
Name=Compare selected (highlighted) files/folders
[Desktop Action selectedsudo]
Icon=kr_comparedirs
# Exec=sudo meld %U; rm /tmp/meld-menu-arg1;
Exec=if [ "$XDG_SESSION_TYPE" = "wayland" ]; then xhost +si:localuser:root && pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch meld %U && xhost -si:localuser:root ; else pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true meld %U; fi;
Name=Compare selected (highlighted) files/folders as root

View File

@ -0,0 +1,225 @@
# Author: Fabio Mucciante
# Last Update: 2021/10/29
# Version: 1.2.3
#
# Manual Install:
# - KDE 4: Copy this file under: ~/.kde4/share/kde4/services/ServiceMenus/
# - KDE 5: Copy this file under: ~/.local/share/kservices5/ServiceMenus/
#
# References:
# - https://freeaptitude.altervista.org/downloads/copy-to-klipper.html
# - https://github.com/fabiomux/kde-servicemenus
[Desktop Entry]
Type=Service
MimeType=all/all
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
Icon=klipper
Actions=copy_filename_full;copy_filename_name;copy_filename_path;copy_filename_name_noext;copy_hash_md5;copy_hash_sha256;copy_hash_sha512;copy_type_mime;copy_type_filetype;copy_size_bytes;copy_size_hr;copy_perm_oct;copy_perm_hr;copy_owner_groupid;copy_owner_groupname;copy_owner_userid;copy_owner_username;copy_mount_point;copy_last_access;copy_last_modification
X-KDE-Submenu=Copy to the clipboard
X-KDE-Submenu[it]=Copia nella clipboard
X-KDE-Submenu[es]=Copiar en el portapapeles
X-KDE-Submenu[fr]=Copier dans la presse-papier
X-KDE-Submenu[nl]=Kopiëren naar klembord
X-KDE-Submenu[de]=In die Zwischenablage kopieren
X-KDE-Priority=TopLevel
[Desktop Action copy_filename_full]
Name=Copy the full filename
Name[it]=Copia il nome del file completo
Name[es]=Copiar el nombre de fichero completo
Name[fr]=Copier le nom de fichier complet
Name[nl]=Volledige bestandsnaam kopiëren
Name[de]=Vollen Dateinamen kopieren
Icon=klipper
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents '%f'
[Desktop Action copy_filename_name]
Name=Copy the filename
Name[it]=Copia il nome del file
Name[es]=Copiar el nombre de fichero
Name[fr]=Copier le nom de fichier
Name[nl]=Bestandsnaam kopiëren
Name[de]=Dateinamen kopieren
Icon=klipper
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents '%n'
[Desktop Action copy_filename_path]
Name=Copy only the path
Name[it]=Copia solo il percorso del file
Name[es]=Copiar solo la ruta de acceso
Name[fr]=Copier le chemin d'accès
Name[nl]=Alleen bestandslocatie kopiëren
Name[de]=Nur den Pfad kopieren
Icon=klipper
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents '%d'
[Desktop Action copy_filename_name_noext]
Name=Copy the filename without extension
Name[it]=Copia il nome del file senza estensione
Name[es]=Copiar el nombre del fichero sin extension
Name[fr]=Copier le nom de fichier sans extension
Name[nl]=Bestandsnaam zonder extensie kopiëren
Name[de]=Dateiname ohne Datienendung kopieren
Icon=klipper
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;x=%n;$exe org.kde.klipper /klipper setClipboardContents "${x%.*}"
[Desktop Action copy_hash_md5]
Name=Copy the md5 checksum
Name[it]=Copia l'hash md5
Name[es]=Copiar el hash md5
Name[fr]=Copier l'hachage md5
Name[nl]=MD5-controlesom kopiëren
Name[de]=MD5-Checksumme kopieren
Icon=checkmark
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;if [ -d '%f' ]; then kdialog --error 'The hash cannot be calculated for a directory' --title 'Directory'; exit; fi;$exe org.kde.klipper /klipper setClipboardContents "`md5sum '%f'|cut -f 1 -d ' '`"
[Desktop Action copy_hash_sha256]
Name=Copy the sha256 checksum
Name[it]=Copia l'hash sha256
Name[es]=Copiar el hash sha256
Name[fr]=Copier l'hachage sha256
Name[nl]=SHA256-controlesom kopiëren
Name[de]=SHA256-Checksumme kopieren
Icon=checkmark
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;if [ -d '%f' ]; then kdialog --error 'The hash cannot be calculated for a directory' --title 'Directory'; exit; fi;$exe org.kde.klipper /klipper setClipboardContents "`sha256sum '%f'|cut -f 1 -d ' '`"
[Desktop Action copy_hash_sha512]
Name=Copy the sha512 checksum
Name[it]=Copia l'hash sha512
Name[es]=Copiar el hash sha512
Name[fr]=Copier l'hachage sha512
Name[nl]=SHA512-controlesom kopiëren
Name[de]=SHA512-Checksumme kopieren
Icon=checkmark
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;if [ -d '%f' ]; then kdialog --error 'The hash cannot be calculated for a directory' --title 'Directory'; exit; fi;$exe org.kde.klipper /klipper setClipboardContents "`sha256sum '%f'|cut -f 1 -d ' '`"
[Desktop Action copy_type_mime]
Name=Copy the mime type
Name[it]=Copia il mime type
Name[es]=Copiar el mime type
Name[fr]=Copier le type mime
Name[nl]=Mimetype kopiëren
Name[de]=MIME-Typ kopieren
Icon=application-x-mimearchive
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;x=`file --mime-type '%f'`;$exe org.kde.klipper /klipper setClipboardContents "${x#*:}"
[Desktop Action copy_type_filetype]
Name=Copy the file type
Name[it]=Copia il tipo di file
Name[es]=Copiar el tipo de fichero
Name[fr]=Copier le type de fichier
Name[nl]=Bestandstype kopiëren
Name[de]=Dateityp kopieren
Icon=application-x-mimearchive
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;x=`file '%f'`;$exe org.kde.klipper /klipper setClipboardContents "${x#*:}"
[Desktop Action copy_size_bytes]
Name=Copy the file size (in bytes)
Name[it]=Copia la dimensione del file (in bytes)
Name[es]=Copiar el tamaño del archivo (en bytes)
Name[fr]=Copier la taille du fichier (en octets)
Name[nl]=Bestandsgrootte (in bytes) kopiëren
Name[de]=Größe in Byte kopieren
Icon=format-number-percent
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;if [ -d '%f' ]; then $exe org.kde.klipper /klipper setClipboardContents "`stat -c %s '%f'/*|awk '{c+=$1} END {printf "%s",c}'`"; else $exe org.kde.klipper /klipper setClipboardContents "`stat -c %s '%f'`"; fi
[Desktop Action copy_size_hr]
Name=Copy the file size (human-readable)
Name[it]=Copia la dimensione del file (human-readable)
Name[es]=Copiar el tamaño del archivo (legible)
Name[fr]=Copier la taille du fichier (lisible)
Name[nl]=Bestandsgrootte (leesbaar) kopiëren
Name[de]=Größe (lesbar) kopieren
Icon=format-number-percent
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;if [ -d '%f' ]; then $exe org.kde.klipper /klipper setClipboardContents "`ls -hs '%f'|head -n 1|cut -f 2 -d ' '`"; else $exe org.kde.klipper /klipper setClipboardContents "`ls -hs '%f'|cut -f 1 -d ' '`"; fi
[Desktop Action copy_perm_oct]
Name=Copy the file access rights (octal)
Name[it]=Copia i diritti di accesso (ottale)
Name[es]=Copie los derechos de acceso al archivo (octal)
Name[fr]=Copiez les droits d'accès au fichier (octal)
Name[nl]=Toegangsrechten kopiëren (octaal)
Name[de]=Zugriffsrechte (octal) kopieren
Icon=key-single
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %a '%f'`"
[Desktop Action copy_perm_hr]
Name=Copy the file access rights (human-readable)
Name[it]=Copia i diritti di accesso (human-readable)
Name[es]=Copie los derechos de acceso al archivo (legible)
Name[fr]=Copiez les droits d'accès au fichier (lisible)
Name[nl]=Toegangsrechten kopiëren (leesbaar)
Name[de]=Zugriffsrechte (lesbar) kopieren
Icon=key-single
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %A '%f'`"
[Desktop Action copy_owner_groupid]
Name=Copy the group id
Name[it]=Copia l'id del gruppo
Name[es]=Copiar la identificación del grupo
Name[fr]=Copiez l'identifiant du groupe
Name[nl]=Groepsid kopiëren
Name[de]=Gruppen-ID kopieren
Icon=group
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %g '%f'`"
[Desktop Action copy_owner_groupname]
Name=Copy the group name
Name[it]=Copia il nome del gruppo
Name[es]=Copiar el nombre del grupo
Name[fr]=Copiez le nom du groupe
Name[nl]=Groepsnaam kopiëren
Name[de]=Gruppen-Name kopieren
Icon=group
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %G '%f'`"
[Desktop Action copy_owner_userid]
Name=Copy the user id
Name[it]=Copia l'id utente
Name[es]=Copiar la identificación de usuario
Name[fr]=Copiez l'identifiant de l'utilisateur
Name[nl]=Gebruikersid kopiëren
Name[de]=Benutzer-ID kopieren
Icon=user
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %\\u '%f'`"
[Desktop Action copy_owner_username]
Name=Copy the user name
Name[it]=Copia il nome utente
Name[es]=Copiar el nombre de usuario
Name[fr]=Copiez le nom d'utilisateur
Name[nl]=Gebruikersnaam kopiëren
Name[de]=Benutzernamen kopieren
Icon=user
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %\\U '%f'`"
[Desktop Action copy_last_access]
Name=Copy the time of last access
Name[it]=Copia l'ultimo accesso
Name[es]=Copiar la hora del último acceso
Name[fr]=Copier l'heure du dernier accès
Name[nl]=Bezoekdatum kopiëren
Name[de]=Letzte Zugriffszeit kopieren
Icon=change-date-symbolic
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %x '%f'`"
[Desktop Action copy_last_modification]
Name=Copy the time of last modification
Name[it]=Copia l'ora dell'ultima modifica
Name[es]=Copiar la hora de la última modificación
Name[fr]=Copier l'heure de la dernière modification
Name[nl]=Wijzigingsdatum kopiëren
Name[de]=Letzte Änderungszeit kopieren
Icon=change-date-symbolic
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %y '%f'`"
[Desktop Action copy_mount_point]
Name=Copy the mount point
Name[it]=Copia il punto di mount
Name[es]=Copiar el punto de montaje
Name[fr]=Copier le point de montage
Name[nl]=Aankoppelpunt kopiëren
Name[de]=Einhängepunkt kopieren
Icon=folder-root-symbolic
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;$exe org.kde.klipper /klipper setClipboardContents "`stat -c %m '%f'`"

View File

@ -0,0 +1,60 @@
# Author: Fabio Mucciante
# Last Update: 2022/05/01
# Version: 1.3.0
#
# Manual Install:
# - KDE 4: Copy this file under: ~/.kde4/share/kde4/services/ServiceMenus/
# - KDE 5: Copy this file under: ~/.local/share/kservices5/ServiceMenus/
#
# References:
# - https://freeaptitude.altervista.org/downloads/open-konsole-here.html
# - https://github.com/fabiomux/kde-servicemenus
[Desktop Entry]
Type=Service
MimeType=inode/directory;
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
Icon=utilities-terminal
Actions=konsole_first_instance_current_session;konsole_first_instance_new_session;_SEPARATOR_;konsole_last_instance_current_session;konsole_last_instance_new_session;_SEPARATOR_;konsole_select_instance_current_session;konsole_select_instance_new_session;
X-KDE-Submenu=Open Konsole here
X-KDE-Submenu[fr]=Ouvrir dans Konsole
X-KDE-Priority=TopLevel
[Desktop Action konsole_last_instance_current_session]
Name=Current session (last instance)
Name[fr]=Onglet actuel (dernière instance)
Icon=utilities-terminal
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then pid=`pgrep konsole|sort -rn|head -n 1` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 currentSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname | grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`;do r="$r\\n`$exe $sname /konsole/MainWindow_$i winId`.$i";done && wid=`echo -e $r|sort -rn|head -n 1|cut -f 2 -d '.'` && sid=`$exe $sname "/Windows/$wid" currentSession`;fi;$exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show
[Desktop Action konsole_last_instance_new_session]
Name=New session (last instance)
Name[fr]=Nouvel onglet (dernière instance)
Icon=window-new
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then pid=`pgrep konsole|sort -rn|head -n 1` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 newSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname|grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`; do r="$r\\n`$exe $sname /konsole/MainWindow_$i winId`.$i";done && wid=`echo -e $r|sort -rn|head -n 1|cut -f 2 -d '.'` && sid=`$exe $sname "/Windows/$wid" newSession`;fi; sleep 1 && $exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show
[Desktop Action konsole_first_instance_current_session]
Name=Current session (first instance)
Name[fr]=Onglet actuel (première instance)
Icon=utilities-terminal
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then pid=`pgrep konsole|sort -n|grep "^[0-9]"|head -n 1` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 currentSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname | grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`;do r="$r\\n`$exe $sname /konsole/MainWindow_$i winId`.$i";done && wid=`echo -e $r|sort -n|grep "^[0-9]"|head -n 1|cut -f 2 -d '.'` && sid=`$exe $sname "/Windows/$wid" currentSession`;fi;$exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show
[Desktop Action konsole_first_instance_new_session]
Name=New session (first instance)
Name[fr]=Nouvel onglet (première instance)
Icon=window-new
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then pid=`pgrep konsole|sort -n|grep "^[0-9]"|head -n 1` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 newSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname|grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`; do r="$r\\n`$exe $sname /konsole/MainWindow_$i winId`.$i";done && wid=`echo -e $r|sort -n|grep "^[0-9]"|head -n 1|cut -f 2 -d '.'` && sid=`$exe $sname "/Windows/$wid" newSession`;fi; sleep 1 && $exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show
[Desktop Action konsole_select_instance_current_session]
Name=Current session (select the instance)
Name[fr]=Onglet actuel (choisir l'instance)
Icon=utilities-terminal
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then declare -a a;for i in `pgrep konsole`;do a[$i]="$i \\"`$exe org.kde.konsole-$i /konsole/MainWindow_1 org.qtproject.Qt.QWidget.windowTitle`\\" off"; done; eval set -- "${a[@]}";pid=`kdialog --radiolist 'Select the Konsole window' "$@"` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 currentSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname | grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`;do a["$i"]="$i \\"`$exe $sname /konsole/MainWindow_$i org.qtproject.Qt.QWidget.windowTitle`\\" off"; done; eval set -- "${a[@]}"; wid=`kdialog --radiolist 'Select the Konsole window' "$@"` && sid=`$exe $sname "/Windows/$wid" currentSession`;fi;$exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show
[Desktop Action konsole_select_instance_new_session]
Name=New session (select the instance)
Name[fr]=Nouvel onglet (choisir l'instance)
Icon=window-new
Exec=exe=`command -v qdbus-qt5 || command -v qdbus`;(pgrep konsole || konsole &);while ! pgrep konsole;do sleep 1; done;if expr "`$exe org.kde.konsol*`" : '.*-.*'; then declare -a a;for i in `pgrep konsole`;do a[$i]="$i \\"`$exe org.kde.konsole-$i /konsole/MainWindow_1 org.qtproject.Qt.QWidget.windowTitle`\\" off"; done; eval set -- "${a[@]}";pid=`kdialog --radiolist 'Select the Konsole window' "$@"` && sname="org.kde.konsole-$pid" && sid=`$exe $sname /Windows/1 currentSession` && wid=1; else sname='org.kde.konsole' && for i in `$exe $sname | grep "/konsole/MainWindow_[0-9]\\+\\\\$"|cut -f 2 -d '_'`;do a["$i"]="$i \\"`$exe $sname /konsole/MainWindow_$i org.qtproject.Qt.QWidget.windowTitle`\\" off"; done; eval set -- "${a[@]}"; wid=`kdialog --radiolist 'Select the Konsole window' "$@"` && sid=`$exe $sname "/Windows/$wid" newSession`;fi;$exe $sname /Sessions/$sid runCommand " cd '%f'" && $exe $sname /konsole/MainWindow_$wid hide && $exe $sname /konsole/MainWindow_$wid show

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=touch;
Encoding=UTF-8
Icon=application-x-cd-image
[Desktop Action touch]
Name=Touch
Icon=edit-redo
Exec=touch %f

View File

@ -0,0 +1,138 @@
<?xml version='1.0'?>
<!DOCTYPE gui SYSTEM 'kpartgui.dtd'>
<gui version="38" name="dolphin">
<MenuBar>
<Menu name="file">
<Action name="new_menu"/>
<Action name="file_new"/>
<Action name="new_tab"/>
<Action name="file_close"/>
<Action name="undo_close_tab"/>
<Separator/>
<Action name="add_to_places"/>
<Separator/>
<Action name="renamefile"/>
<Action name="duplicate"/>
<Action name="movetotrash"/>
<Action name="deletefile"/>
<Separator/>
<Action name="show_target"/>
<Separator/>
<Action name="properties"/>
</Menu>
<Menu name="edit">
<Action name="edit_undo"/>
<Separator/>
<Action name="edit_cut"/>
<Action name="edit_copy"/>
<Action name="copy_location"/>
<Action name="edit_paste"/>
<Separator/>
<Action name="show_filter_bar"/>
<Action name="edit_find"/>
<Separator/>
<Action name="toggle_selection_mode"/>
<Action name="copy_to_inactive_split_view"/>
<Action name="move_to_inactive_split_view"/>
<Action name="edit_select_all"/>
<Action name="invert_selection"/>
</Menu>
<Menu name="view">
<Action name="view_zoom_in"/>
<Action name="view_zoom_reset"/>
<Action name="view_zoom_out"/>
<Separator/>
<Action name="sort"/>
<Action name="view_mode"/>
<Action name="additional_info"/>
<Action name="show_preview"/>
<Action name="show_in_groups"/>
<Action name="show_hidden_files"/>
<Separator/>
<Action name="split_view"/>
<Action name="split_stash"/>
<Action name="redisplay"/>
<Action name="stop"/>
<Separator/>
<Action name="panels"/>
<Menu name="location_bar" icon="edit-select-text">
<text context="@title:menu">Location Bar</text>
<Action name="editable_location"/>
<Action name="replace_location"/>
</Menu>
<Separator/>
<Action name="view_properties"/>
</Menu>
<Menu name="go">
<Action name="bookmarks"/>
<Action name="closed_tabs"/>
</Menu>
<Menu name="tools">
<Action name="open_preferred_search_tool"/>
<Action name="open_terminal"/>
<Action name="open_terminal_here"/>
<Action name="focus_terminal_panel"/>
<Action name="compare_files"/>
<Action name="change_remote_encoding"/>
</Menu>
</MenuBar>
<ToolBar noMerge="1" name="mainToolBar" alreadyVisited="1">
<text translationDomain="dolphin" context="@title:menu">Main Toolbar</text>
<Action name="go_back"/>
<Action name="go_forward"/>
<Action name="show_in_groups"/>
<Action name="show_preview"/>
<Action name="url_navigators"/>
<Action name="icons"/>
<Action name="details"/>
<Action name="sort"/>
<Action name="additional_info"/>
<Action name="bookmarks"/>
<Action name="split_stash"/>
<Action name="hamburger_menu"/>
</ToolBar>
<State name="new_file">
<disable>
<Action name="edit_undo"/>
<Action name="edit_redo"/>
<Action name="edit_cut"/>
<Action name="renamefile"/>
<Action name="movetotrash"/>
<Action name="deletefile"/>
<Action name="invert_selection"/>
<Separator/>
<Action name="go_back"/>
<Action name="go_forward"/>
</disable>
</State>
<State name="has_selection">
<enable>
<Action name="invert_selection"/>
</enable>
</State>
<State name="has_no_selection">
<disable>
<Action name="delete_shortcut"/>
<Action name="invert_selection"/>
</disable>
</State>
<ActionProperties scheme="Default">
<Action name="compact" priority="0"/>
<Action name="details" priority="0"/>
<Action name="duplicate" shortcut=""/>
<Action name="edit_copy" priority="0"/>
<Action name="edit_cut" shortcut="Ctrl+X; " priority="0"/>
<Action name="edit_paste" priority="0"/>
<Action name="go_back" priority="0"/>
<Action name="go_forward" priority="0"/>
<Action name="go_home" priority="0"/>
<Action name="go_up" priority="0"/>
<Action name="icons" priority="0"/>
<Action name="stop" priority="0"/>
<Action name="toggle_filter" priority="0"/>
<Action name="toggle_search" priority="0"/>
<Action name="view_zoom_in" priority="0"/>
<Action name="view_zoom_out" priority="0"/>
<Action name="view_zoom_reset" priority="0"/>
</ActionProperties>
</gui>

View File

@ -0,0 +1,169 @@
<?xml version='1.0'?>
<!DOCTYPE gui>
<gui version="52" name="okular_part">
<MenuBar>
<Menu name="file" noMerge="1">
<text translationDomain="okular">&amp;File</text>
<Action name="get_new_stuff" group="file_open"/>
<Action name="import_ps" group="file_open"/>
<Action name="file_save" group="file_save"/>
<Action name="file_save_as" group="file_save"/>
<Action name="file_reload" group="file_save"/>
<Action name="file_print" group="file_print"/>
<Action name="file_print_preview" group="file_print"/>
<Action name="open_containing_folder" group="file_print"/>
<Action name="properties" group="file_print"/>
<Action name="embedded_files" group="file_print"/>
<Action name="file_export_as" group="file_print"/>
<Action name="file_share" group="file_print"/>
</Menu>
<Menu name="edit" noMerge="1">
<text translationDomain="okular">&amp;Edit</text>
<Action name="edit_undo"/>
<Action name="edit_redo"/>
<Separator/>
<Action name="edit_copy"/>
<Separator/>
<Action name="edit_select_all"/>
<Action name="edit_select_all_current_page"/>
<Separator/>
<Action name="edit_find"/>
<Action name="edit_find_next"/>
<Action name="edit_find_prev"/>
</Menu>
<Menu name="view" noMerge="1">
<text translationDomain="okular">&amp;View</text>
<Action name="presentation"/>
<Separator/>
<Action name="view_zoom_in"/>
<Action name="view_zoom_out"/>
<Action name="view_actual_size"/>
<Action name="view_fit_to_width"/>
<Action name="view_fit_to_page"/>
<Action name="view_auto_fit"/>
<Separator/>
<Action name="view_render_mode"/>
<Separator/>
<Menu name="view_orientation" noMerge="1">
<text translationDomain="okular">&amp;Orientation</text>
<Action name="view_orientation_rotate_ccw"/>
<Action name="view_orientation_rotate_cw"/>
<Action name="view_orientation_original"/>
</Menu>
<Action name="view_trim_mode"/>
<Separator/>
<Action name="view_toggle_forms"/>
</Menu>
<Menu name="go" noMerge="1">
<text translationDomain="okular">&amp;Go</text>
<Action name="go_previous"/>
<Action name="go_next"/>
<Separator/>
<Action name="first_page"/>
<Action name="last_page"/>
<Separator/>
<Action name="go_document_back"/>
<Action name="go_document_forward"/>
<Separator/>
<Action name="go_goto_page"/>
</Menu>
<Menu name="bookmarks" noMerge="1">
<text translationDomain="okular">&amp;Bookmarks</text>
<Action name="bookmark_add"/>
<Action name="rename_bookmark"/>
<Action name="previous_bookmark"/>
<Action name="next_bookmark"/>
<Separator/>
<ActionList name="bookmarks_currentdocument"/>
</Menu>
<Menu name="tools" noMerge="1">
<text translationDomain="okular">&amp;Tools</text>
<Action name="mouse_drag"/>
<Action name="mouse_zoom"/>
<Action name="mouse_select"/>
<Action name="mouse_textselect"/>
<Action name="mouse_tableselect"/>
<Action name="mouse_magnifier"/>
<Separator/>
<Action name="mouse_toggle_annotate"/>
<Separator/>
<Action name="add_digital_signature"/>
<Separator/>
<Action name="speak_document"/>
<Action name="speak_current_page"/>
<Action name="speak_stop_all"/>
<Action name="speak_pause_resume"/>
</Menu>
<Menu name="settings" noMerge="1">
<text translationDomain="okular">&amp;Settings</text>
<Action name="colorscheme_menu" group="show_merge"/>
<Action name="show_leftpanel" group="show_merge"/>
<Action name="show_bottombar" group="show_merge"/>
<Action name="options_configure_generators" group="configure_merge"/>
<Action name="options_configure" group="configure_merge"/>
</Menu>
<Menu name="help" noMerge="1">
<text translationDomain="okular">&amp;Help</text>
<Action name="help_about_backend" group="about_merge"/>
</Menu>
</MenuBar>
<ToolBar name="quickAnnotationToolBar" newline="true" iconSize="32" position="right" hidden="true" iconText="icononly">
<text translationDomain="okular">Quick Annotation Toolbar</text>
<Action name="quick_annotation_action_bar"/>
</ToolBar>
<ToolBar name="annotationToolBar" newline="true" hidden="true" iconText="icononly">
<text translationDomain="okular">Annotation Toolbar</text>
<Action name="annotation_highlighter"/>
<Action name="annotation_underline"/>
<Action name="annotation_squiggle"/>
<Action name="annotation_strike_out"/>
<Action name="annotation_typewriter"/>
<Action name="annotation_inline_note"/>
<Action name="annotation_popup_note"/>
<Action name="annotation_freehand_line"/>
<Action name="annotation_geometrical_shape"/>
<Action name="annotation_stamp"/>
<Separator name="separator_0"/>
<Action name="annotation_settings_width"/>
<Action name="annotation_settings_color"/>
<Action name="annotation_settings_inner_color"/>
<Action name="annotation_settings_opacity"/>
<Action name="annotation_settings_font"/>
<Action name="annotation_settings_advanced"/>
<Separator name="separator_1"/>
<Action name="annotation_bookmark"/>
<Action name="annotation_settings_pin"/>
<Spacer name="spacer_0"/>
<Action name="hide_annotation_toolbar"/>
</ToolBar>
<ToolBar name="mainToolBar" noMerge="1">
<Action name="show_leftpanel"/>
<Separator name="separator_0"/>
<Action name="go_document_back"/>
<Action name="page_number"/>
<Action name="go_document_forward"/>
<Separator name="separator_1"/>
<Action name="mouse_drag"/>
<Action name="mouse_selecttools"/>
<Action name="mouse_toggle_annotate"/>
<Action name="annotation_favorites"/>
<Action name="annotation_bookmark"/>
<Separator name="separator_2"/>
<Action name="view_trim_margins"/>
<Action name="view_trim_selection"/>
<Separator name="separator_3"/>
<text translationDomain="okular">Main Toolbar</text>
<Action name="view_fit_to_page"/>
<Action name="view_fit_to_width"/>
<Action name="view_render_mode_facing"/>
<Action name="view_continuous"/>
<Separator name="separator_4"/>
<Action name="view_orientation_rotate_ccw"/>
<Action name="view_orientation_rotate_cw"/>
<Spacer name="spacer_0"/>
<Action name="hamburger_menu"/>
</ToolBar>
<ActionProperties scheme="Default">
<Action priority="0" name="show_leftpanel"/>
</ActionProperties>
</gui>