Custom keyboard shortcuts for tiling ignored after (re)boot

Bug #1942256 reported by KojiroAK
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xfwm4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

version 4.16.1 (revision 5f61a84ad) (Xubuntu 21.10)

Steps to reproduce:

Open Window Manager settings in settings "app"
Go to keyboard
Change shortcut for "tile window to the right" to super+d / "to the left" super+a / "to the bottom" super+x
Check if it accepted it (should work)
reboot
Try again

In my case the shortcut stops working but it still is shown in the settings "app".
The actual shortcut is reverted to super+right / super+left / super+down.

Also when pressing super+$key it treats it like just the $key being pressed (e.g. in a terminal it inserts an a on super+a)

Some shortcuts stick like super+s for "Maximize window" or super+w for "Tile Window to the top".

After setting the shortcuts anew they work until the next (re)boot. I haven't tried how it is with just logout login.

Tags: impish
Norbert (nrbrtx)
tags: added: impish
Revision history for this message
Alojzij Blatnik (predkambrij) wrote :

That issue is still present. I installed xubuntu 21.10 and the issue is consistent across multiple machines. Please fix this, I use those shortcuts million times a day :)

Revision history for this message
Alojzij Blatnik (predkambrij) wrote :

This is a workaround that works for me:

function my_fixStartup() {
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Up' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Down' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Left' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Right' -r

    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Shift><Super>Left' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Shift><Super>Right' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Primary><Super>Left' -r
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Primary><Super>Right' -r

    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Up' -n -t string -s 'tile_up_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Down' -n -t string -s 'tile_down_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Left' -n -t string -s 'tile_left_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Super>Right' -n -t string -s 'tile_right_key'

    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Shift><Super>Left' -n -t string -s 'tile_up_left_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Shift><Super>Right' -n -t string -s 'tile_up_right_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Primary><Super>Left' -n -t string -s 'tile_down_left_key'
    xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/<Primary><Super>Right' -n -t string -s 'tile_down_right_key'
}

I was checking for differences from this (when setting through GUI):
xfconf-query -v -l -c xfce4-keyboard-shortcuts

Br

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.