diff --git a/iso.nix b/iso.nix index 3ad7cd3..86bc7ab 100644 --- a/iso.nix +++ b/iso.nix @@ -570,6 +570,22 @@ HISTEOF $XQ -c xfwm4 -p /general/wrap_workspaces -n -t bool -s false 2>>$MYLOG \ && echo "xfwm4 wrap_workspaces=false" >> $MYLOG + # Super+Arrow tile shortcuts: xfwm4's defaults only bind the + # numeric-keypad variants (KP_Left etc.), so on keyboards + # without a numpad Super+Arrow does nothing. Add the regular-arrow + # bindings via the xfce4-keyboard-shortcuts channel so kids get + # the Windows-style tiling shortcuts they expect. + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Left' -n -t string -s 'tile_left_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Right' -n -t string -s 'tile_right_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Up' -n -t string -s 'tile_up_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Down' -n -t string -s 'tile_down_key' 2>>$MYLOG + # Corner tiles via Alt/Ctrl modifiers (mirrors the keypad defaults). + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Left' -n -t string -s 'tile_up_left_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Right' -n -t string -s 'tile_up_right_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Left' -n -t string -s 'tile_down_left_key' 2>>$MYLOG + $XQ -c xfce4-keyboard-shortcuts -p '/xfwm4/custom/Right' -n -t string -s 'tile_down_right_key' 2>>$MYLOG + echo "xfwm4 Super+Arrow tile keys bound" >> $MYLOG + # Fetch Bing's daily wallpaper and set it as the desktop background. # Bing rotates the image at 00:00 UTC so every CodeClub machine booted # on the same day ends up with the same picture. Runs in a background