From 3f208d34011c63b78e7f54df768fc486395a26d8 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 6 Sep 2021 13:53:40 +0200 Subject: [PATCH] xfce4: add more custom shortcuts --- pkg/de-p1st-xfce4/PKGBUILD | 8 +- pkg/de-p1st-xfce4/TESTED | 2 +- .../xfce4-keyboard-shortcuts.xml | 191 ++++++++++++++++++ .../skel_nautilus/.config/dconf/user | Bin 0 -> 1964 bytes .../xfce4-keyboard-shortcuts.xml.holoscript | 13 -- 5 files changed, 197 insertions(+), 17 deletions(-) create mode 100644 pkg/de-p1st-xfce4/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml create mode 100644 pkg/de-p1st-xfce4/skel_nautilus/.config/dconf/user delete mode 100644 pkg/de-p1st-xfce4/xfce4-keyboard-shortcuts.xml.holoscript diff --git a/pkg/de-p1st-xfce4/PKGBUILD b/pkg/de-p1st-xfce4/PKGBUILD index ad47613..ca79b78 100644 --- a/pkg/de-p1st-xfce4/PKGBUILD +++ b/pkg/de-p1st-xfce4/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=xfce4 _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.1.1 +pkgver=0.1.2 pkgrel=1 pkgdesc="XFCE4 with configuration" arch=('any') @@ -141,14 +141,16 @@ package() { rsync -av skel/ "$pkgdir"/etc/skel/ # === shortcuts === - install -Dm0544 xfce4-keyboard-shortcuts.xml.holoscript "$pkgdir"/usr/share/holo/files/20-"$pkgname"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml.holoscript + # Did not work with "$pkgdir"/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml # === display manager === install -Dm0644 systemd.preset "$pkgdir"/usr/lib/systemd/system-preset/20-"$pkgname".preset install -Dm0644 p1st-settings.conf "$pkgdir"/etc/sddm.conf.d/p1st-settings.conf # === nautilus === - # -> default file manager and nautilus scripts + # -> default file manager + # -> nautilus scripts + # -> .config/dconf/user -> nautilus preferences (show hidden files, list view, show create symlink) mkdir -p "$pkgdir"/etc/ rsync -av skel_nautilus/ "$pkgdir"/etc/skel/ } diff --git a/pkg/de-p1st-xfce4/TESTED b/pkg/de-p1st-xfce4/TESTED index 214c52d..44976f1 100644 --- a/pkg/de-p1st-xfce4/TESTED +++ b/pkg/de-p1st-xfce4/TESTED @@ -20,4 +20,4 @@ Nautilus: -> default file manager -> `open terminal` and `md-to-pdf` scripts -TODO: keyboard shortcut "Print" -> save .png in Pictures folder +TODO: are the custom keyboard shortcuts available? diff --git a/pkg/de-p1st-xfce4/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml b/pkg/de-p1st-xfce4/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml new file mode 100644 index 0000000..6a3f400 --- /dev/null +++ b/pkg/de-p1st-xfce4/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pkg/de-p1st-xfce4/skel_nautilus/.config/dconf/user b/pkg/de-p1st-xfce4/skel_nautilus/.config/dconf/user new file mode 100644 index 0000000000000000000000000000000000000000..05ac51d110216dfad4689b6f46a72cb6c87bbb74 GIT binary patch literal 1964 zcmZ8iTWB0r7(PjJX}TNRXw!RR)fi&qbXqJD8WF)jQ&LchmtavlJ9BpTklC4K&Y9-Y z3K7K$_91Ew75fnAg{ZZz4>f{9Bl_S&AL8Xf5KFBuRs=2WgNPWv@9eg$4t)8(^UcYB z{_~%I&hCE7OOzKGQG3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..0000000 --- a/pkg/de-p1st-xfce4/xfce4-keyboard-shortcuts.xml.holoscript +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# stdin: default config -# stdout: modified config -set -e - -# save stdin (content of /etc/mkinitcpio.conf) in variable -stdin="$(cat)" - -# assert a screenshot for key-combination "Print" exists -echo "$stdin" | grep --quiet '^\s*\s*$' - -# replace action key-combination "Print" -echo "$stdin" | sed 's|||'