xfce disable keyboard shortcut (solved)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
JayMoseleyTX
Level 1
Level 1
Posts: 35
Joined: Sat Mar 12, 2016 12:27 pm

xfce disable keyboard shortcut (solved)

Post by JayMoseleyTX »

I recently upgraded to 20.3 una, but this has been bugging me for years. I prefer to work using 2 workspaces. One of the applications I use constantly uses Alt+end and Ctrl+end key combinations. Frequently I accidentally hit Alt+Delete, which is a shortcut to delete the workspace, and all of my applications 'crash' onto a single workspace, which forces me to stop everything and spend 5-10 minutes getting everything back where it belongs. I have tried to edit keyboard shortcuts for xfce to delete the alt+end, in fact tried to just assign it to something random since I couldn't see a way to just delete the (alt)delete setting. But the alt+delete still kills the workspace and crashes all my applications into a single workspace. I am spending way too much time because of an inconvenience caused by a setting that should be removable. Are there any suggestions for solutions?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
secureIT
Level 4
Level 4
Posts: 471
Joined: Wed Dec 05, 2018 1:26 pm

Re: xfce disable keyboard shortcut

Post by secureIT »

Hi JayMoseleyTX,

First thing i noticed are the entries in xfconf :

Using the following terminal command :

Code: Select all

xfconf-query -c xfce4-keyboard-shortcuts -lv | grep -i del
for me it looks like this :

Code: Select all

xfconf-query -c xfce4-keyboard-shortcuts -lv | grep -i del
/commands/custom/<Primary><Alt>Delete      xflock4
/commands/default/<Primary><Alt>Delete     xflock4
/xfwm4/custom/<Alt>Delete                  del_workspace_key
/xfwm4/default/<Alt>Delete                 del_workspace_key
so to get rid of the "del_workspace_key" entries:

Open up the xfce4-settings-editor
there you will find the xfce4-keyboard-shortcuts
open them
and you will see:

1. in the section "xfwm4"
subsection :
custom
<Alt>Delete
edit the entry and delete the string (del_workspace_key)
then save the entry.

2. in the section "xfwm4"
subsection :
default
<Alt>Delete
edit the entry and delete the string (del_workspace_key)
then save the entry.

After doing that restart your xfce-session.

After that, no command will be executed when the key combination <Alt>Delete is pressed.

By the way (for your interest) : the keyboard-shortcuts are stored in :

Code: Select all

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
.
JayMoseleyTX
Level 1
Level 1
Posts: 35
Joined: Sat Mar 12, 2016 12:27 pm

Re: xfce disable keyboard shortcut

Post by JayMoseleyTX »

secureIT,

Thank you. That was what I needed. It did not occur to me that there would be two sets of definitions for Alt+Delete. I had killed the first, but left the second intact. After I went back and set both of them to blanks, and logged of and back on, everything is working the way I expected it to. Frankly I can see no reason that anyone would ever want to 'delete' a workspace in this manner.

Thank you again. I will mark my original post solved.
Locked

Return to “Xfce”