You are not logged in.
Pages: 1
Hello guys,
Thanks for the work on that desktop environment.
I wish to make a script that adds my xfce4 shortcuts when running it. I tried make it edit the shortcut file located in ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml then log out and log in but without success.
After doing that and trying to edit the shortcut manually I am prompted that it would replace a shortcut allocated to "(null)", which let me think that my changes are partially taken into account.
Can someone indicate me what I should consider changing beside the aforementioned file or point me to a relevant documentation.
Thank you,
Last edited by ours_code (2020-02-20 11:09:03)
Offline
From a recent thread: Reloading keyboard shortcuts.
You shouldn't update these files when Xfce is running. Xfconfd regularly writes these settings from memory to those files - especially when logging out. To edit these contents, use the tools provided or xfconf-query. If you want to edit the xml files directly, make sure you are logged out and that xfsettingsd and xfconf are not running.
In Script to change keyboard shortcuts, again ToZ demonstrates how to use xfconf-query to programatically change shortcuts for a particular situation, but I think the commands used will give you enough info to achieve your goal.
Good luck, and welcome to the forum!
Last edited by alcornoqui (2020-02-10 14:51:44)
Offline
Big thanks for the quick response.
Offline
So you got it working, great!
You can edit the title to add [SOLVED], it helps when searching.
Offline
adding an example:
xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>x' --create -v -t string -s resize_window_key
Offline
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 528.73 KiB (Peak: 530.89 KiB) ]