Lately I have been researching for a way that I can create a fixed terminal that opens up at boot and that will be located in a specific x + y position and with a fixed size. By digging around the forum I found two methods of achieving this: One was explained in this forum, which works with a bash Script that must be run at startup-applications settings.
My idea was to add neofetch in that terminal and I have Zero to no-knowledge about scrip files and commands so I wasn't able that every time that the terminal was open neofetch would start up. I tried to modify the script but had no success.
#!/usr/bin/env python3 import subprocess import time import sys app = sys.argv get = lambda x: subprocess.check_output(["/bin/bash", "-c", x]).decode("utf-8") ws1 = get("wmctrl -lp"); t = 0 subprocess.Popen(["/bin/bash", "-c", app]) while t < 30: ws2 = [w.split()[0:3] for w in get("wmctrl -lp").splitlines() if not w in ws1] procs = [[(p, w) for p in get("ps -e ww").splitlines() \ if app in p and w in p] for w in ws2] if len(procs) > 0: w_id = procs cmd1 = "wmctrl -ir "+w_id+" -b remove,maximized_horz" cmd2 = "wmctrl -ir "+w_id+" -b remove,maximized_vert" cmd3 = "xdotool windowsize --sync "+procs+" "+sys.argv+"% "+sys.argv+"%" cmd4 = "xdotool windowmove "+procs+" "+sys.argv+" "+sys.argv for cmd in [cmd1, cmd2, cmd3, cmd4]: subprocess.call(["/bin/bash", "-c", cmd]) break time.sleep(0.5) t = t+1
Code provided by: Jacob Vlijm
The second option I had, which works in a way was to use the following command:
gnome-terminal --geometry 82x26+1190+32 -- bash -c "neofetch; read"
A added the read command at the end of the bash so the "bash input" would not appear, But I am trying to hide the white blinking cursor as an idea I was trying to make it so the neofetch program would be in a pause state so it would not end unless something. If the script ends then this white cursor will appear and I am so picky and I hate that. I don't want to remove the white blinking cursor entirely but just for that terminal. IS there a way to hide that cursor? Or is there a way I can modify the neofetch .conf settings so I can create a pause command?