┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2019-03-17 10:05:46 -0600
committerNate Graham <[email protected]>2019-03-17 16:12:18 -0600
commit58084cf7da362d77919483cbb9a7a23333ce86c5 (patch)
tree8971e9030de565fb6bc41835ea6d072e4d5f9357
parentbf314f2dff99ad972a424564499e4d988588a173 (diff)
Create a global launch shortcut (Meta+E)
Summary: This patch adds a global shortcut ({key Meta E}) to launch Dolphin, just like Konsole has. FEATURE: 405302 FIXED-IN: 19.04.0 Test Plan: 1. Apply patch and reboot, or create and log into a new user 2. Hit {key Meta E} 3. Dolphin opens! Reviewers: #dolphin, #vdg, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: hallas, elvisangelaccio, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D19831
-rw-r--r--CMakeLists.txt2
-rw-r--r--dolphin.khotkeys33
2 files changed, 35 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7bd27a7f7..72ab75d36 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -142,5 +142,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.dolphin.FileManager1.service
install( FILES dolphin.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
+install( FILES dolphin.khotkeys DESTINATION ${KDE_INSTALL_DATADIR}/khotkeys )
+
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/dolphin.khotkeys b/dolphin.khotkeys
new file mode 100644
index 000000000..ae6fb02b4
--- /dev/null
+++ b/dolphin.khotkeys
@@ -0,0 +1,33 @@
+[Main]
+ImportId=dolphin
+Version=2
+Autostart=true
+Disabled=false
+
+[Data]
+DataCount=1
+
+[Data_1]
+Comment=Global keyboard shortcut to launch Dolphin
+Enabled=true
+Name=Launch Dolphin
+Type=MENUENTRY_SHORTCUT_ACTION_DATA
+
+[Data_1Actions]
+ActionsCount=1
+
+[Data_1Actions0]
+CommandURL=org.kde.dolphin.desktop
+Type=MENUENTRY
+
+[Data_1Conditions]
+Comment=
+ConditionsCount=0
+
+[Data_1Triggers]
+Comment=Simple_action
+TriggersCount=1
+
+[Data_1Triggers0]
+Key=Meta+E
+Type=SHORTCUT