I use sakura terminal in FP64, although there is an option for column/row function in the .conf file, there is no way to start on the right/lower side of the screen. Likely will have to use wmctrl function but have forgotten how this can be done using a script. would appreciate help.
open terminal on the right/lower corner screen, how?
Moderators: 666philb, Forum moderators
-
- Posts: 3102
- Joined: Fri Jul 31, 2020 3:37 am
- Has thanked: 2438 times
- Been thanked: 964 times
Re: open terminal on the right/lower corner screen, how?
Here's a sample of one of my wmctrl scripts to open three Rox windows and place them specifically:
Code: Select all
rox /mnt/home/dbox.sync.mir/
rox /root/spot/Downloads/
rox /root/my-documents/
wmctrl -r dbox.sync.mir -e 0,263,6,511,958
wmctrl -r Downloads -e 0,782,6,536,958
wmctrl -r my-documents -e 0,1326,1,558,1050
-r says to perform an action on the named window, -e says to place it at the coordinates. There are five values:
(window gravity, x-placment of window, y-placement of window, width of window, height of window)
The name can be any unique characters found in the name. The current position and names of your open windows can listed by the command:
Code: Select all
wmctrl -lG
-wmctrl -h will give you some further details about various switches. I also use the manual at https://linux.die.net/man/1/wmctrl
geo_c
Old School Hipster, and Such
- Grey
- Posts: 2078
- Joined: Wed Jul 22, 2020 12:33 am
- Location: Russia
- Has thanked: 78 times
- Been thanked: 399 times
Re: open terminal on the right/lower corner screen, how?
Yes, a very useful command. But lately I've been using wmctrl only to open the window to full screen Something like this:
Code: Select all
roxfiler /mnt/sda4/Installed/ && wmctrl -r /mnt/sda4/Installed -b toggle,maximized_vert,maximized_horz
Different devices. Different approach.
- MochiMoppel
- Posts: 1363
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 23 times
- Been thanked: 548 times
Re: open terminal on the right/lower corner screen, how?
Likely that wmctrl is not the best solution. If your FP64 uses JWM it most likely will use version 2.3 or better, which gives you the opportunity to set startup screen coordinates of Sakura (in JWM's Group options). This not only would be lighter and avoids flicker (when wmctrl repositions the window), it only would prevent Sakura to go off screen should you change screen resolution or orientation.
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
geo_c wrote: Thu Dec 23, 2021 3:37 amHere's a sample of one of my wmctrl scripts to open three Rox windows and place them specifically:
Code: Select all
rox /mnt/home/dbox.sync.mir/ rox /root/spot/Downloads/ rox /root/my-documents/ wmctrl -r dbox.sync.mir -e 0,263,6,511,958 wmctrl -r Downloads -e 0,782,6,536,958 wmctrl -r my-documents -e 0,1326,1,558,1050
-r says to perform an action on the named window, -e says to place it at the coordinates. There are five values:
(window gravity, x-placment of window, y-placement of window, width of window, height of window)
The name can be any unique characters found in the name. The current position and names of your open windows can listed by the command:
Code: Select all
wmctrl -lG
-wmctrl -h will give you some further details about various switches. I also use the manual at https://linux.die.net/man/1/wmctrl
good info!, got it working with wmctrl -r sakura -e 0,501,330,850,400 hooked to a keybinding. Happy holidays!
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
MochiMoppel wrote: Thu Dec 23, 2021 6:35 amLikely that wmctrl is not the best solution. If your FP64 uses JWM it most likely will use version 2.3 or better, which gives you the opportunity to set startup screen coordinates of Sakura (in JWM's Group options). This not only would be lighter and avoids flicker (when wmctrl repositions the window), it only would prevent Sakura to go off screen should you change screen resolution or orientation.
learned lots from your other posts!!, I got it working with wmctrl -r sakura -e 0,501,330,850,400. Group options in the .jwmrc has been a mistery to me and I am wondering how I could do this...
-
- Posts: 3102
- Joined: Fri Jul 31, 2020 3:37 am
- Has thanked: 2438 times
- Been thanked: 964 times
Re: open terminal on the right/lower corner screen, how?
gychang wrote: Thu Dec 23, 2021 3:20 pmlearned lots from your other posts!!, I got it working with wmctrl -r sakura -e 0,501,330,850,400. Group options in the .jwmrc has been a mistery to me and I am wondering how I could do this...
@MochiMoppel opened up a world of possibilities for me!
geo_c
Old School Hipster, and Such
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how? (SOLVED)
Still having a minor problem. If I enter sakura.sh in urxvt, the command runs fine, starting the sakura in the right lower section. Putting the command in the jwmrc-personal ( <Key mask="4" key="t">exec:sakura.sh</Key> ) it does not run even after a reboots. Can someone spot the mistake? lower case sakura still gives no resonse.
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
If you want sakura to start instead of urxvt, the shortcut key Winkey+T
is this line in /etc/xdg/templates/_root_.jwmrc (near the bottom of the file)
<Key mask="4" key="t">exec:urxvt</Key>
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
williams2 wrote: Thu Dec 23, 2021 8:17 pmIf you want sakura to start instead of urxvt, the shortcut key Winkey+T
is this line in /etc/xdg/templates/_root_.jwmrc (near the bottom of the file)
<Key mask="4" key="t">exec:urxvt</Key>
I wanted the sakura to open on the right/lower quadrant of the screen...
- MochiMoppel
- Posts: 1363
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 23 times
- Been thanked: 548 times
Re: open terminal on the right/lower corner screen, how?
gychang wrote: Thu Dec 23, 2021 3:20 pmGroup options in the .jwmrc has been a mistery to me and I am wondering how I could do this...
It's documented. Obviously wmctrl has been a mystery for you too, otherwise you wouldn't have asked
Question is: Should sakura always start in this corner? In this case the Group option would be a much better solution (provided it works, but that I could check). If you only want to reposition it on demand then you should stick with wmctrl.
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
MochiMoppel wrote: Fri Dec 24, 2021 2:13 amgychang wrote: Thu Dec 23, 2021 3:20 pmGroup options in the .jwmrc has been a mistery to me and I am wondering how I could do this...
It's documented. Obviously wmctrl has been a mystery for you too, otherwise you wouldn't have asked
![]()
Question is: Should sakura always start in this corner? In this case the Group option would be a much better solution (provided it works, but that I could check). If you only want to reposition it on demand then you should stick with wmctrl.
I would prefer sakura alway appear on the right /lower corner. I can use urxvt as a "regular" terminal.
Re: open terminal on the right/lower corner screen, how?
I wanted the sakura to open on the right/lower quadrant of the screen...
I don't know exactly what you are trying to.
This opens a urxvt window in lower right corner, with white text on a black background.
The hold option causes the urxvt window to not close if urxvt was started with a shell command, so you can examine the results and then close the window yourself.
I have a script named st (Simple Terminal)
Code: Select all
#!/bin/sh
exec urxvt -fg grey -bg black "$@"
Attached: screenshot of this command:
urxvt -bg black -fg grey -hold -geometry 40x20+1400+600 -e ls /bin/
- Attachments
-
- geometry.jpg (44.75 KiB) Viewed 1034 times
- gychang
- Posts: 653
- Joined: Fri Aug 28, 2020 4:51 pm
- Location: San Diego, CA
- Has thanked: 235 times
- Been thanked: 73 times
Re: open terminal on the right/lower corner screen, how?
williams2 wrote: Fri Dec 24, 2021 3:46 amI wanted the sakura to open on the right/lower quadrant of the screen...
I don't know exactly what you are trying to.
This opens a urxvt window in lower right corner, with white text on a black background.
The hold option causes the urxvt window to not close if urxvt was started with a shell command, so you can examine the results and then close the window yourself.I have a script named st (Simple Terminal)
Code: Select all
#!/bin/sh exec urxvt -fg grey -bg black "$@"
Attached: screenshot of this command:
urxvt -bg black -fg grey -hold -geometry 40x20+1400+600 -e ls /bin/
I prefer sakura as the primary terminal and like it when it opens right/lower area (out of the way). Urxvt has been somewhat difficult due to configuration not to mention copy/paste, although I realize these have bee resolved with correct syntext in .Xresouces or .Xdefaults. Unfortunately sakura does not have a --geometry function (partially works in 32bit version). With your suggestion I may try urxvt as the primary terminal again... Happy holidays.