Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

fix: add script to remove Plasma keyboard shortcuts #144

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions contrib/remove_keyboard_shortcuts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2021 Nicolas Vaughan <[email protected]>
#
# SPDX-License-Identifier: CC-BY-NC-4.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are introducing a new license to the project, so you need to download and place it into the LICENSES folder. Reuse tool can be used for that.


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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I make sure, that the shortcuts are no longer working after an edit of the config file? You need to reload shortcuts daemon.