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

fix: add script to remove Plasma keyboard shortcuts #143

Closed
wants to merge 5 commits into from
Closed
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

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