I am using Xubuntu desktop, I want to use a keybind (application shortcuts in settings) to activate a command to resize the current window to a predetermined size.
For example: wmctrl -r Firefox -e 1,-1,-1,1000,600
resizes any an active firefox window to 1000x600.
The problem is it only works for Firefox, I want to do it to the currently active window (by which I mean the window that has focus).
I know xdotool getwindowfocus getwindowname
gives me the current window
but wmctrl -r xdotool getwindowfocus getwindowname -e 1,-1,-1,1000,600
does nothing.
Is there anyway to do this? My guess is maybe I have to use a pipe but I'm not sure.
etc/environment starts with: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/us...
where do I add /home/my_login_name/bin?
– Hitomi86 Apr 13 '18 at 09:39bin
folder in your /home directory (that's what~/bin
means), not in the system itself! It's usually not advisable to add stuff to/bin
which is very different than~/bin
. Please see the edited answer for thePATH
stuff. All the best. – DK Bose Apr 13 '18 at 09:56