Browse Source

Kde shortcuts dbus2cmd (#1953)

* changes the KDE shortcuts from dbus to commands

* fixes the file name to have the updated file name for KDE shortcuts

* fixes a grammatical mistake in README
Mehrad Mahmoudian 3 years ago
parent
commit
9cdb8f9fb1
2 changed files with 43 additions and 30 deletions
  1. 3 3
      README.md
  2. 40 27
      docs/shortcuts-config/flameshot-shortcuts-kde.khotkeys

+ 3 - 3
README.md

@@ -218,7 +218,7 @@ On Linux, Flameshot doesn't yet support <kbd>Pr Scr</kbd> out of the box, but wi
 
 #### On KDE Plasma desktop
 
-To make configuration easier, there's a [file](docs/shortcuts-config/flameshot-shortcuts-kde) in the repository that more or less automates this process. This file will assign the following keys to the following actions by default:
+To make configuration easier, there's a [file](docs/shortcuts-config/flameshot-shortcuts-kde.khotkeys) in the repository that more or less automates this process. This file will assign the following keys to the following actions by default:
 
 |  Keys                                                  |  Description                                                                       |
 |---                                                     |---                                                                                 |
@@ -242,10 +242,10 @@ Steps for using the configuration:
 
     ```shell
     cd ~/Desktop
-    wget https://raw.githubusercontent.com/flameshot-org/flameshot/master/docs/shortcuts-config/flameshot-shortcuts-kde
+    wget https://raw.githubusercontent.com/flameshot-org/flameshot/master/docs/shortcuts-config/flameshot-shortcuts-kde.khotkeys
     ```
 3. Go to _System Settings_ → _Shortcuts_ → _Custom Shortcuts_.
-4. If there's one, you'll need to disable an entry for Spectacle, the default KDE screenshot utility first because its shortcuts might collide with Flameshot's ones; so, just uncheck the _Spectacle_ entry.
+4. If there's one, you'll need to disable an entry for Spectacle, the default KDE screenshot utility, first because its shortcuts might collide with Flameshot's ones; so, just uncheck the _Spectacle_ entry.
 5. Click _Edit_ → _Import..._, navigate to the Desktop folder (or wherever you saved the configuration file) and open the configuration file.
 6. Now the Flameshot entry should appear in the list. Click _Apply_ to apply the changes.
 7. If you want to change the defaults, you can expand the entry, select the appropriate action and modify it as you wish; the process is pretty self-explanatory.

+ 40 - 27
docs/shortcuts-config/flameshot-shortcuts-kde → docs/shortcuts-config/flameshot-shortcuts-kde.khotkeys

@@ -1,10 +1,9 @@
-# Import it via: System Settings/Shortcuts/Custom Shortcuts/Edit/Import
 [Data]
 DataCount=1
 
 [Data_1]
 Comment=Shortcuts for taking screenshots with Flameshot
-DataCount=4
+DataCount=5
 Enabled=true
 Name=Flameshot
 SystemGroup=0
@@ -24,11 +23,8 @@ Type=SIMPLE_ACTION_DATA
 ActionsCount=1
 
 [Data_1_1Actions0]
-Arguments='Pictures/Screenshots' false 0 0
-Call=graphicCapture
-RemoteApp=org.flameshot.Flameshot
-RemoteObj=/
-Type=DBUS
+CommandURL=flameshot gui
+Type=COMMAND_URL
 
 [Data_1_1Conditions]
 Comment=
@@ -41,7 +37,7 @@ TriggersCount=1
 [Data_1_1Triggers0]
 Key=Print
 Type=SHORTCUT
-Uuid={65ecb470-7d89-497a-9f9d-406b068f7207}
+Uuid={550679a7-6038-4d71-9d70-045dee9e7ad0}
 
 [Data_1_2]
 Comment=Wait for 3 seconds, then start the Flameshot screenshot tool and take a screenshot
@@ -53,11 +49,8 @@ Type=SIMPLE_ACTION_DATA
 ActionsCount=1
 
 [Data_1_2Actions0]
-Arguments='Pictures/Screenshots' false 3000 0
-Call=graphicCapture
-RemoteApp=org.flameshot.Flameshot
-RemoteObj=/
-Type=DBUS
+CommandURL=flameshot gui --delay 3000
+Type=COMMAND_URL
 
 [Data_1_2Conditions]
 Comment=
@@ -70,7 +63,7 @@ TriggersCount=1
 [Data_1_2Triggers0]
 Key=Ctrl+Print
 Type=SHORTCUT
-Uuid={cea82966-75d5-437d-afaf-aeba83a4abfd}
+Uuid={13cf7a93-9bae-4864-b6f6-dbe09e1b548a}
 
 [Data_1_3]
 Comment=Take a full-screen (all monitors) screenshot and save it
@@ -82,11 +75,8 @@ Type=SIMPLE_ACTION_DATA
 ActionsCount=1
 
 [Data_1_3Actions0]
-Arguments='Pictures/Screenshots' false 0 0
-Call=fullScreen
-RemoteApp=org.flameshot.Flameshot
-RemoteObj=/
-Type=DBUS
+CommandURL=flameshot full
+Type=COMMAND_URL
 
 [Data_1_3Conditions]
 Comment=
@@ -99,7 +89,7 @@ TriggersCount=1
 [Data_1_3Triggers0]
 Key=Shift+Print
 Type=SHORTCUT
-Uuid={3c7ead73-00ad-4f90-bdba-5d15a70b8b43}
+Uuid={32eeef66-9df9-4ff0-8bca-9c80941d74b2}
 
 [Data_1_4]
 Comment=Take a full-screen (all monitors) screenshot and copy it to the clipboard and ask where to save
@@ -111,11 +101,8 @@ Type=SIMPLE_ACTION_DATA
 ActionsCount=1
 
 [Data_1_4Actions0]
-Arguments='' true 0 0
-Call=fullScreen
-RemoteApp=org.flameshot.Flameshot
-RemoteObj=/
-Type=DBUS
+CommandURL=flameshot full --clipboard --path ''
+Type=COMMAND_URL
 
 [Data_1_4Conditions]
 Comment=
@@ -128,9 +115,35 @@ TriggersCount=1
 [Data_1_4Triggers0]
 Key=Ctrl+Shift+Print
 Type=SHORTCUT
-Uuid={a724b514-0cb6-40f0-bf14-c08db726b320}
+Uuid={7a4033b1-f641-4dab-9c4e-78bf3fa0ea8c}
+
+[Data_1_5]
+Comment=Open the Flameshot Launcher
+Enabled=false
+Name=Open Flameshot Launcher
+Type=SIMPLE_ACTION_DATA
+
+[Data_1_5Actions]
+ActionsCount=1
+
+[Data_1_5Actions0]
+CommandURL=flameshot launcher
+Type=COMMAND_URL
+
+[Data_1_5Conditions]
+Comment=
+ConditionsCount=0
+
+[Data_1_5Triggers]
+Comment=Simple_action
+TriggersCount=1
+
+[Data_1_5Triggers0]
+Key=
+Type=SHORTCUT
+Uuid={b0f9c859-bf84-42c6-8ae0-94da1a616cf1}
 
 [Main]
 AllowMerge=false
-ImportId=flameshot
+ImportId=Flameshot
 Version=2