Inspiriert vom heutigen Beitrag Zeige mir meine Aliase und Tastenkürzel von Ralf Hersel kommt hier das von mir für die MATE-Desktopumgebung angepasste Shell-Skript.
#!/usr/bin/env bash
rootdir="/org/mate/desktop/keybindings/"
customdirs=$(dconf list "$rootdir")
for dir in $customdirs; do
fullpath="${rootdir}${dir}"
action=$(dconf read "$fullpath"action)
binding=$(dconf read "$fullpath"binding)
name=$(dconf read "$fullpath"name)
echo "Name=$name, Binding=$binding"
done
Beispielausgabe:
Name='Dateiverwaltung', Binding='<Mod4>e'
Name='Aktives Fenster zentrieren und Größe festlegen', Binding='<Alt>F12'
Name='CopyQ anzeigen', Binding='<Mod4>v'
Name='Bildschirmfoto aufnehmen', Binding='<Primary>Print'
Name='Bildschirmfoto eines Fensters aufnehmen', Binding='<Shift>Print'
Name='Bildschirmfoto eines Bereichs aufnehmen', Binding='Print'
Wer sich auch für den jeweiligen Befehl interessiert, nimmt vielleicht besser gleich:
dconf dump /org/mate/desktop/keybindings/
Beispielausgabe:
[custom0]
action='/usr/bin/caja --no-desktop --browser .'
binding='<Mod4>e'
name='Dateiverwaltung'
[custom1]
action='/usr/bin/xdotool getactivewindow windowmove 16% 16% windowsize 68% 68%'
binding='<Alt>F12'
name='Aktives Fenster zentrieren und Größe festlegen'
[custom2]
action='copyq -e "showAt()"'
binding='<Mod4>v'
name='CopyQ anzeigen'
[custom3]
action='shutter -f'
binding='<Primary>Print'
name='Bildschirmfoto aufnehmen'
[custom4]
action='shutter -w'
binding='<Shift>Print'
name='Bildschirmfoto eines Fensters aufnehmen'
[custom5]
action='shutter -s'
binding='Print'
name='Bildschirmfoto eines Bereichs aufnehmen'
Update 19.12.2025: Benennung der Kürzel angepasst
Kommentare: 0