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 utility called wmctrl,
1.     
Install wmctrl
sudo apt install wmctrl
2.      
Download this script  wmove.sh (right-click and save-link-as, to somewhere.
Alternatively, you can view, copy and paste the script here. Be sure to rename your file as wmove.sh.

Put this script somewhere where it can be found and executed, e.g /usr/local/bin/wmove.sh
and make it executable.
3.
Enter these shortcuts to call the script wmove.sh
Preferences > LXQt Settings > Shortcut Keys.

Shortcut Description Command



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

(Meta is the special key on the keyboard with the 'windows' symbol)
The shortcut keys will move and resize the current window to the sides of the screen.

That's it !

More Lubuntu Tips