Resizing windows to a particular width and height instantly
For some reason, I wish to resize a window to a very large size, 4-5 times larger than my screen size. For now, I am doing it manually by moving the entire window but one corner out of the screen and then pulling the corner to expand the window. However, this is very time taking. Is there some way to resize the window to a particular height and width instantly ? (perhaps from commandline or with the help of some small app or something else)
window-manager
add a comment |
For some reason, I wish to resize a window to a very large size, 4-5 times larger than my screen size. For now, I am doing it manually by moving the entire window but one corner out of the screen and then pulling the corner to expand the window. However, this is very time taking. Is there some way to resize the window to a particular height and width instantly ? (perhaps from commandline or with the help of some small app or something else)
window-manager
add a comment |
For some reason, I wish to resize a window to a very large size, 4-5 times larger than my screen size. For now, I am doing it manually by moving the entire window but one corner out of the screen and then pulling the corner to expand the window. However, this is very time taking. Is there some way to resize the window to a particular height and width instantly ? (perhaps from commandline or with the help of some small app or something else)
window-manager
For some reason, I wish to resize a window to a very large size, 4-5 times larger than my screen size. For now, I am doing it manually by moving the entire window but one corner out of the screen and then pulling the corner to expand the window. However, this is very time taking. Is there some way to resize the window to a particular height and width instantly ? (perhaps from commandline or with the help of some small app or something else)
window-manager
window-manager
asked Jan 12 '12 at 12:23
Pushpak DagadePushpak Dagade
4943719
4943719
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I propose two solutions
wmctrl
Install the wmctrl
package, then you can resize your window with
wmctrl -r string -e 0,left,up,width,height
where string
is a substring of the window's title, (left,up)
are the desired screen coordinates of the upper left window's corner, and (width,height)
are the desired window's dimensions.
For a more precise window's choice, run wmctrl -l
, which will give you a list of records containing window's ID, screen's number and window's title. Then you can resize a particular window by ID with
wmctrl -i -r ID -e 0,left,up,width,hight
More information in wmctrl
man page.
devilspie
Install the package devilspie
, then create the folder ~/.devilspie
and a file my-name.ds
in this folder, with content:
(if (is (window_name) "My Window") (geometry "widthxheight+left+up"))
then execute devilspie
to resize your window.
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Fromwmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probablycompiz
is not fully compatible or has some bugs, and I cannot help with that.
– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.
– Zzzach...
Jun 29 '16 at 2:26
1
A minor correction to the previous comment: it is-r :ACTIVE:
(an additional colon is needed at the end).
– Zoltan
Apr 8 '17 at 21:24
|
show 1 more comment
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f94859%2fresizing-windows-to-a-particular-width-and-height-instantly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I propose two solutions
wmctrl
Install the wmctrl
package, then you can resize your window with
wmctrl -r string -e 0,left,up,width,height
where string
is a substring of the window's title, (left,up)
are the desired screen coordinates of the upper left window's corner, and (width,height)
are the desired window's dimensions.
For a more precise window's choice, run wmctrl -l
, which will give you a list of records containing window's ID, screen's number and window's title. Then you can resize a particular window by ID with
wmctrl -i -r ID -e 0,left,up,width,hight
More information in wmctrl
man page.
devilspie
Install the package devilspie
, then create the folder ~/.devilspie
and a file my-name.ds
in this folder, with content:
(if (is (window_name) "My Window") (geometry "widthxheight+left+up"))
then execute devilspie
to resize your window.
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Fromwmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probablycompiz
is not fully compatible or has some bugs, and I cannot help with that.
– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.
– Zzzach...
Jun 29 '16 at 2:26
1
A minor correction to the previous comment: it is-r :ACTIVE:
(an additional colon is needed at the end).
– Zoltan
Apr 8 '17 at 21:24
|
show 1 more comment
I propose two solutions
wmctrl
Install the wmctrl
package, then you can resize your window with
wmctrl -r string -e 0,left,up,width,height
where string
is a substring of the window's title, (left,up)
are the desired screen coordinates of the upper left window's corner, and (width,height)
are the desired window's dimensions.
For a more precise window's choice, run wmctrl -l
, which will give you a list of records containing window's ID, screen's number and window's title. Then you can resize a particular window by ID with
wmctrl -i -r ID -e 0,left,up,width,hight
More information in wmctrl
man page.
devilspie
Install the package devilspie
, then create the folder ~/.devilspie
and a file my-name.ds
in this folder, with content:
(if (is (window_name) "My Window") (geometry "widthxheight+left+up"))
then execute devilspie
to resize your window.
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Fromwmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probablycompiz
is not fully compatible or has some bugs, and I cannot help with that.
– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.
– Zzzach...
Jun 29 '16 at 2:26
1
A minor correction to the previous comment: it is-r :ACTIVE:
(an additional colon is needed at the end).
– Zoltan
Apr 8 '17 at 21:24
|
show 1 more comment
I propose two solutions
wmctrl
Install the wmctrl
package, then you can resize your window with
wmctrl -r string -e 0,left,up,width,height
where string
is a substring of the window's title, (left,up)
are the desired screen coordinates of the upper left window's corner, and (width,height)
are the desired window's dimensions.
For a more precise window's choice, run wmctrl -l
, which will give you a list of records containing window's ID, screen's number and window's title. Then you can resize a particular window by ID with
wmctrl -i -r ID -e 0,left,up,width,hight
More information in wmctrl
man page.
devilspie
Install the package devilspie
, then create the folder ~/.devilspie
and a file my-name.ds
in this folder, with content:
(if (is (window_name) "My Window") (geometry "widthxheight+left+up"))
then execute devilspie
to resize your window.
I propose two solutions
wmctrl
Install the wmctrl
package, then you can resize your window with
wmctrl -r string -e 0,left,up,width,height
where string
is a substring of the window's title, (left,up)
are the desired screen coordinates of the upper left window's corner, and (width,height)
are the desired window's dimensions.
For a more precise window's choice, run wmctrl -l
, which will give you a list of records containing window's ID, screen's number and window's title. Then you can resize a particular window by ID with
wmctrl -i -r ID -e 0,left,up,width,hight
More information in wmctrl
man page.
devilspie
Install the package devilspie
, then create the folder ~/.devilspie
and a file my-name.ds
in this folder, with content:
(if (is (window_name) "My Window") (geometry "widthxheight+left+up"))
then execute devilspie
to resize your window.
edited Feb 11 '15 at 10:18
Sylvain Pineau
48.6k16105149
48.6k16105149
answered Jan 12 '12 at 13:45
enzotibenzotib
63k6132154
63k6132154
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Fromwmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probablycompiz
is not fully compatible or has some bugs, and I cannot help with that.
– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.
– Zzzach...
Jun 29 '16 at 2:26
1
A minor correction to the previous comment: it is-r :ACTIVE:
(an additional colon is needed at the end).
– Zoltan
Apr 8 '17 at 21:24
|
show 1 more comment
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Fromwmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probablycompiz
is not fully compatible or has some bugs, and I cannot help with that.
– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.
– Zzzach...
Jun 29 '16 at 2:26
1
A minor correction to the previous comment: it is-r :ACTIVE:
(an additional colon is needed at the end).
– Zoltan
Apr 8 '17 at 21:24
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
Thank you! I slight problem - if I resize the window to a large size, the window manager (i think compiz) gets killed and another window manager with very basic windowing capabilities comes in. Any way to avoid this?
– Pushpak Dagade
Jan 12 '12 at 14:25
From
wmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probably compiz
is not fully compatible or has some bugs, and I cannot help with that.– enzotib
Jan 12 '12 at 14:31
From
wmctrl
man page: "wmctrl
is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification." Probably compiz
is not fully compatible or has some bugs, and I cannot help with that.– enzotib
Jan 12 '12 at 14:31
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
@Guanidene: I proposed an alternative solution.
– enzotib
Jan 12 '12 at 14:56
You may also want to use
-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.– Zzzach...
Jun 29 '16 at 2:26
You may also want to use
-r :ACTIVE
to get the current focused window. I added this to a shortcut to move my windows to the right position instantly, whichever ones I had focus on.– Zzzach...
Jun 29 '16 at 2:26
1
1
A minor correction to the previous comment: it is
-r :ACTIVE:
(an additional colon is needed at the end).– Zoltan
Apr 8 '17 at 21:24
A minor correction to the previous comment: it is
-r :ACTIVE:
(an additional colon is needed at the end).– Zoltan
Apr 8 '17 at 21:24
|
show 1 more comment
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f94859%2fresizing-windows-to-a-particular-width-and-height-instantly%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown