Assign Ctrl+Alt+Del to Xfce's Task Manager in Xubuntu

UPDATED: 18/08/12.

By default the Ctrl+Alt+Del run xflock4 which locks the desktop. In this article we'll change this keyboard shortcut so that it'll run Xfce's Task Manager instead. Also the Ctrl+Alt+L shortcut will be assigned for running xflock4.

Xfce's Task Manager
Xfce's Task Manager

Install

Open a terminal window and run these two commands:

# Assign Ctrl+Alt+Del to Task Manager
xfconf-query -c xfce4-keyboard-shortcuts -n -p "/commands/custom/<Primary><Alt>Delete" -t string -s "xfce4-taskmanager"
# Assign Ctrl+Alt+L to xflock4
xfconf-query -c xfce4-keyboard-shortcuts -n -p "/commands/custom/<Primary><Alt>l" -t string -s "xflock4"

Comments

  1. Thanks for this. First command should (I think) be

    xfconf-query -c xfce4-keyboard-shortcuts -n -p "/commands/custom/Delete" -t string -s "xfce4-taskmanager"

    ReplyDelete
    Replies
    1. Thank you very much for your comment. There was indeed a problem with both commands: I forgot to replace < and > with < and >

      It'll work now.

      Delete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. I tried this (like so...)

    xfconf-query -c xfce4-keyboard-shortcuts -n -p "/commands/custom/Delete" -t string -s "xfce4-taskmanager"

    but I get this error:

    ** (process:6409): CRITICAL **: Failed to init libxfconf: Failed to connect to socket /tmp/dbus-ALLW9J6C6a: Connection refused

    Should I try try to run in as 'sudo' ?

    BTW: I am running Xubuntu-Desktop installed over Ubuntu 12.04

    Thanks

    ReplyDelete
  4. Please, try this: sudo apt-get install libxfconf-0-2 -y

    Before executing the xfconf-query commands.

    ReplyDelete
  5. Can this work on Ubuntu

    ReplyDelete
    Replies
    1. No. I believe that it is possible to accomplish the same thing on Ubuntu, but not with these instructions. These are specific to Xubuntu.

      Delete
  6. Just installed xfce on Lubuntu and ran this. Worked like a charm.

    ReplyDelete
  7. This works in Ubuntu Studio. Thanks.

    ReplyDelete

Post a Comment

Popular posts from this blog

[HOW TO] Create QR Codes in Xubuntu 12.04

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu