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
This commit is contained in:
Mehrad Mahmoudian
2021-10-08 17:26:35 +03:00
committed by GitHub
parent 7e1d596e46
commit 9cdb8f9fb1
2 changed files with 43 additions and 30 deletions

View File

@@ -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 #### 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 | | Keys | Description |
|--- |--- | |--- |--- |
@@ -242,10 +242,10 @@ Steps for using the configuration:
```shell ```shell
cd ~/Desktop 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_. 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. 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. 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. 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.

View File

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