Open terminal in specific position when called from Nautilus
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).
I want the same behavior when the terminal is opened from Nautilus' Open in Terminal
command, but all I could change (via profile preferences) was the size, not the position.
I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).
I also tried changing /usr/bin/gnome-terminal.wrapper, including
push(@args,"--geometry=175x25-0-0");
right before the final exec
, but didn't work either.
How can I set the position of the terminal, when called from Nautilus?
gnome gnome-terminal nautilus window-geometry
 |Â
show 3 more comments
up vote
0
down vote
favorite
In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).
I want the same behavior when the terminal is opened from Nautilus' Open in Terminal
command, but all I could change (via profile preferences) was the size, not the position.
I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).
I also tried changing /usr/bin/gnome-terminal.wrapper, including
push(@args,"--geometry=175x25-0-0");
right before the final exec
, but didn't work either.
How can I set the position of the terminal, when called from Nautilus?
gnome gnome-terminal nautilus window-geometry
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
Afiak the code responsible for launching that terminal is part ofgnome-terminal
, you'll have to patch the source code to change the geometry - seesrc/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
â don_crissti
Apr 1 at 14:34
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
I don't think you read my post above... This isn'tnautilus
code, it'sgnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.
â don_crissti
Apr 1 at 21:45
 |Â
show 3 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).
I want the same behavior when the terminal is opened from Nautilus' Open in Terminal
command, but all I could change (via profile preferences) was the size, not the position.
I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).
I also tried changing /usr/bin/gnome-terminal.wrapper, including
push(@args,"--geometry=175x25-0-0");
right before the final exec
, but didn't work either.
How can I set the position of the terminal, when called from Nautilus?
gnome gnome-terminal nautilus window-geometry
In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen).
I want the same behavior when the terminal is opened from Nautilus' Open in Terminal
command, but all I could change (via profile preferences) was the size, not the position.
I tried changing the Custom command (also in profile preferences), to include the geometry, but I ended up with a recursive and useless terminal (recovered via this answer).
I also tried changing /usr/bin/gnome-terminal.wrapper, including
push(@args,"--geometry=175x25-0-0");
right before the final exec
, but didn't work either.
How can I set the position of the terminal, when called from Nautilus?
gnome gnome-terminal nautilus window-geometry
asked Apr 1 at 4:31
Rodrigo
1701117
1701117
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
Afiak the code responsible for launching that terminal is part ofgnome-terminal
, you'll have to patch the source code to change the geometry - seesrc/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
â don_crissti
Apr 1 at 14:34
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
I don't think you read my post above... This isn'tnautilus
code, it'sgnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.
â don_crissti
Apr 1 at 21:45
 |Â
show 3 more comments
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
Afiak the code responsible for launching that terminal is part ofgnome-terminal
, you'll have to patch the source code to change the geometry - seesrc/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...
â don_crissti
Apr 1 at 14:34
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
I don't think you read my post above... This isn'tnautilus
code, it'sgnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.
â don_crissti
Apr 1 at 21:45
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
Afiak the code responsible for launching that terminal is part of
gnome-terminal
, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...â don_crissti
Apr 1 at 14:34
Afiak the code responsible for launching that terminal is part of
gnome-terminal
, you'll have to patch the source code to change the geometry - see src/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...â don_crissti
Apr 1 at 14:34
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
I don't think you read my post above... This isn't
nautilus
code, it's gnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.â don_crissti
Apr 1 at 21:45
I don't think you read my post above... This isn't
nautilus
code, it's gnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.â don_crissti
Apr 1 at 21:45
 |Â
show 3 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434784%2fopen-terminal-in-specific-position-when-called-from-nautilus%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Have you tried this?: ubuntuforums.org/showthread.php?t=1474500
â J. Taylor
Apr 1 at 5:55
@J.Taylor Yes, I've come across that post. If you look at it, you'll notice that /usr/share/vte/termcap/xterm has only options for size, not position. Also, Debian doesn't seem to have a System/Preferences/Preferred Applications.
â Rodrigo
Apr 1 at 11:53
Afiak the code responsible for launching that terminal is part of
gnome-terminal
, you'll have to patch the source code to change the geometry - seesrc/terminal-nautilus.c
. It might be more convenient to write your own nautilus-python extension (there's plenty of them on the web, pick one that works on your setup and adapt it to your needs)...â don_crissti
Apr 1 at 14:34
@don_crissti Change the Nautilus source code to make it point somewhere else (a bash script?) wouldn't be easier, or at least equally complex?
â Rodrigo
Apr 1 at 21:40
I don't think you read my post above... This isn't
nautilus
code, it'sgnome-terminal
code... As I said, you can always write your own extension - that's the easiest way.â don_crissti
Apr 1 at 21:45