![]() ![]() On pressing enter the gpicview window containing my photo closes. Gui terminals have more features and are easier in some ways but when the gui is buggy the tty's terminals work more quickly and efficiently. To close the window I can ctrl+alt+T to open a terminal and enter the command wmctrl -c P1000403.JPG (the P1000403.JPG being the name of the picture I was viewing in this example). This is the reason for my answering as I did hope it helps.ĮDIT also, it appears launching web pages from tty's is much more difficult than the simple one liner two string command from a terminal open in a gui THE other posts already showed you how to use them, it seemed you were confused as to why as well. There is no press a button and wait 30 seconds to see it show up (if the desktop terminal even decides to behave at all) it just works.ĪLSO just tested, nano still color codes in tty's, I'm sure vim or whatever you guys are into will as well. HOWEVER, if you are trying to use an old laptop with < 4GB of RAM, or you messed up your debian install (still not sure, anyone stable on Dell inspiron 11-3162?) then the tty's will work when the desktop is lagging or malfunctioning or forgetting how to write a "d" for some reason: The ttys just work, and respond quickly. # if so, see if the active window belongs to gnome-terminal comparing pids)Īctive = get()])Ĭm1 = Ĭm2 = Ĭreate a dirctory ~/bin if it doesn't exist yet, either log out out/in or run source ~/.AFAIK, on a decent functioning machine there is no difference (except there are colors in the desktop terminals, and you can minimize them and other little reasons they're easier) # see if gnome-terminal is running at all (raising error if not) Return subprocess.check_output(cmd).decode("utf-8").strip() Since the script takes the targeted command as an argument, you can put multiple commands under multiple shortcuts. If not, the script does nothing, So it won't paste into other applications. ⢠if so, it pastes the command in the active gnome-terminal window, presses Return. You can create a keyboard shortcut to open a terminal window, create a new shortcut, press the super key and search for keyboard or shortcut and launch it. F12 Terminal Commented lines must have a space after the semicolon Examples of other key combinations: F12 Terminal F12 Terminal F12 Terminal Test it Open Nautilus, right click, and choose Scripts > Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |