humpty > promotes Linux  > Lubuntu Tips

Lubuntu linux Tips
 
Keyboard Shortcuts to Move Windows (LXQt)



Note: Since Lubuntu 20.04, LXQt is the default session manager.

K
eyboard shortcuts are available via Preferences > LXQt Settings > Shortcut Keys.

You can assign a shorcut to call a script.

Below is the script that moves or resizes a window.
It relies on a utitlity called wmctrl,

1.      Install wmctrl
sudo apt install wmctrl

2.      Enter the shortcuts to call wmctrl
Preferences > LXQt Settings > Shortcut Keys.

Shortcut Description Command
(Meta is the windows key)


Control+Meta+Down Win Grow Height
wmove.sh incheight
Control+Meta+Left
Win Shrink Width
wmove.sh decwidth
Control+Meta+Right Win Grow Width
wmove.sh incwidth
Control+Meta+Up 
Win Shrink Height v
wmove.sh decheight
Meta+Down 
Win Bottom Half 
wmove.sh bothalf
Meta+Left    
Win Left Half  
wmove.sh lefthalf
Meta+Right    Win Right Half    wmove.sh righthalf
Meta+Up    
Win Top Half wmove.sh tophalf

3.       Right-click this link to the script wmove.sh to download and save it.
Put this script somewhere where it can be found and executed, e.g /usr/local/bin
and make it executable.

The shortcut keys will move and resize the current window to the sides of the screen.

That's it !

More Lubuntu Tips