From 8e5ae7f18557fca578fe09f5388a825db722d562 Mon Sep 17 00:00:00 2001 From: Nicolas Vaughan Date: Fri, 29 Oct 2021 11:38:17 -0500 Subject: [PATCH 1/2] add script to remove Plasma keyboard shortcuts --- contrib/remove_keyboard_shortcuts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 contrib/remove_keyboard_shortcuts.sh diff --git a/contrib/remove_keyboard_shortcuts.sh b/contrib/remove_keyboard_shortcuts.sh new file mode 100644 index 00000000..059e4b89 --- /dev/null +++ b/contrib/remove_keyboard_shortcuts.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +read -r -p "Do you want to remove Bitmuth's keyboard shortcuts? [Y/n] " response +response=${response,,} # tolower +if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then + sed -i -r 's/^bismuth.+//g' ~/.config/kglobalshortcutsrc + # remove the multiple newlines left by sed + sed -i -r ':a;N;$!ba;s/\n{3,}/\n\n/g' ~/.config/kglobalshortcutsrc +fi \ No newline at end of file From 413f2a38fd1a23109375e1228a86b88a219f5fcd Mon Sep 17 00:00:00 2001 From: Nicolas Vaughan Date: Fri, 29 Oct 2021 11:38:17 -0500 Subject: [PATCH 2/2] fix: add script to remove Plasma keyboard shortcuts --- contrib/remove_keyboard_shortcuts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 contrib/remove_keyboard_shortcuts.sh diff --git a/contrib/remove_keyboard_shortcuts.sh b/contrib/remove_keyboard_shortcuts.sh new file mode 100644 index 00000000..059e4b89 --- /dev/null +++ b/contrib/remove_keyboard_shortcuts.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +read -r -p "Do you want to remove Bitmuth's keyboard shortcuts? [Y/n] " response +response=${response,,} # tolower +if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then + sed -i -r 's/^bismuth.+//g' ~/.config/kglobalshortcutsrc + # remove the multiple newlines left by sed + sed -i -r ':a;N;$!ba;s/\n{3,}/\n\n/g' ~/.config/kglobalshortcutsrc +fi \ No newline at end of file