Commit 78497b17 authored by Martin's avatar Martin

write a better hack for shortcuts

parent eb73fd81
......@@ -3,7 +3,7 @@ DataCount=1
[Data_1]
Comment=Comment
DataCount=5
DataCount=6
Enabled=true
Name=C0rn3j
SystemGroup=0
......@@ -143,6 +143,32 @@ Key=Shift+Print
Type=SHORTCUT
Uuid={d7e5c0d7-3f81-47b8-987a-4a947cc02dc2}
[Data_1_6]
Comment=Launch Konsole and limit it to only one instance
Enabled=true
Name=Launch Konsole
Type=SIMPLE_ACTION_DATA
[Data_1_6Actions]
ActionsCount=1
[Data_1_6Actions0]
CommandURL=/usr/bin/konsole --new-tab
Type=COMMAND_URL
[Data_1_6Conditions]
Comment=
ConditionsCount=0
[Data_1_6Triggers]
Comment=Simple_action
TriggersCount=1
[Data_1_6Triggers0]
Key=Ctrl+Alt+T
Type=SHORTCUT
Uuid={33a888fa-e99f-4f08-893f-bd0cd8776206}
[Main]
AllowMerge=true
ImportId=c0rn3j
......
---
- name: Force reapplying of my hotkeys on reboot
#- name: Force reapplying of my hotkeys on reboot
# listen: "regenerate global hotkeys"
# ignore_errors: yes # File may not exist yet, in which case we don't care
# replace:
# path: '/home/{{ username }}/.config/khotkeysrc'
# regexp: ',c0rn3j' # Name of the hotkeys file
# replace: ''
- name: Remove khotkeysrc to regenerate all hotkeys
listen: "regenerate global hotkeys"
ignore_errors: yes # File may not exist yet, in which case we don't care
replace:
file:
path: '/home/{{ username }}/.config/khotkeysrc'
regexp: ',c0rn3j' # Name of the hotkeys file
replace: ''
state: absent
- name: Throw away default hotkeys except example ones
listen: "regenerate global hotkeys"
ini_file:
path: '/home/{{ username }}/.config/khotkeysrc'
owner: "{{ username }}"
group: "{{ username }}"
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
loop:
- { section: Main, option: AlreadyImported, value: "defaults,konqueror_gestures_kde321,konsole" }
- { section: Main, option: Disabled, value: "false" }
- { section: Main, option: Version, value: "2" }
---
- name: "Set some KDE config options for {{ username }}"
when: user_accts.stdout.find('answerDE="yes"') != -1
changed_when: False
command: "{{ item }}"
loop:
# Show Alt+Tab popup as fast as possible - Normally it will wait 90 milliseconds before trying to show the popup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment