
Force Your Terminal To Swallow DistroTube
video description
Date: 2022-03-30
Related videos
Comments and reviews: 10
Braelin
Personally, I've set a function in my shell config that automatically
disowns and redirects output to /dev/null for certain apps,
such as my graphical text editor and file manager.
Often times I find myself fiddling with a shell script in the terminal,
and I prefer to use a graphical text editor to do extensive edits,
so being able to launch kate and not have the terminal being hogged
to still execute my script or run other commands is a real nicety.
As for launching images or videos from the CLI... that seems a bit stranger to me.
Same goes for window swallowing as a whole... seems like it would only be useful
in quite specific scenarios, with a specific workflow.
I guess if you're using a tiling WM it would be a little annoying for your image viewer
to not take up most of the workspace, rather than sharing with a static terminal.
But then... why not simply set a window rule that always puts it on a blank workspace?
reply
Personally, I've set a function in my shell config that automatically
disowns and redirects output to /dev/null for certain apps,
such as my graphical text editor and file manager.
Often times I find myself fiddling with a shell script in the terminal,
and I prefer to use a graphical text editor to do extensive edits,
so being able to launch kate and not have the terminal being hogged
to still execute my script or run other commands is a real nicety.
As for launching images or videos from the CLI... that seems a bit stranger to me.
Same goes for window swallowing as a whole... seems like it would only be useful
in quite specific scenarios, with a specific workflow.
I guess if you're using a tiling WM it would be a little annoying for your image viewer
to not take up most of the workspace, rather than sharing with a static terminal.
But then... why not simply set a window rule that always puts it on a blank workspace?
reply
robbie
Hey DT, When I was starting Linux I wanted to do as much in the terminal as possible. Obviously being new to the OS and Terminal I would often open up every single program in a terminal and then use the hotkeys to throw the un-usable terminal windows to a different Screen (Or what ever you call the numbers on the top to flick between different -views-).
I honestly just assume that is how linux worked. Was not until later where I realized you can launch applications from Dmenu or other apps. So this window swallowing would have been super helpful for me when I started out.
Sometimes these things are not obvious when you first start out because everyone raves on about LINUX AND THE TERMINAL! it just makes logical sense to then use the terminal to launch programs.
reply
Hey DT, When I was starting Linux I wanted to do as much in the terminal as possible. Obviously being new to the OS and Terminal I would often open up every single program in a terminal and then use the hotkeys to throw the un-usable terminal windows to a different Screen (Or what ever you call the numbers on the top to flick between different -views-).
I honestly just assume that is how linux worked. Was not until later where I realized you can launch applications from Dmenu or other apps. So this window swallowing would have been super helpful for me when I started out.
Sometimes these things are not obvious when you first start out because everyone raves on about LINUX AND THE TERMINAL! it just makes logical sense to then use the terminal to launch programs.
reply
Mathew
I love and use this script, but at the same time I completely get why a window manager would (and should) do this. Using this while multiple tiles are on screen will cause focus to briefly skip to the other tile before refocusing on the new window, which can get pretty annoying if you have a bright focus outline color (not the scripts fault though). A lot of people who use tiling WMs launch things from the terminal, so the swallowing function can be incredibly handy
reply
I love and use this script, but at the same time I completely get why a window manager would (and should) do this. Using this while multiple tiles are on screen will cause focus to briefly skip to the other tile before refocusing on the new window, which can get pretty annoying if you have a bright focus outline color (not the scripts fault though). A lot of people who use tiling WMs launch things from the terminal, so the swallowing function can be incredibly handy
reply
Eric
I frequently launch videos or images from the terminal because it's often the easier way for me to navigate. I don't see the point of the window swallowing, though. Add an ampersand to the end of the command if you know toils have the window open for a while, or use C-z and the bg command to recover control of the terminal if you don't realize until later. Unless I'm missing something?
reply
I frequently launch videos or images from the terminal because it's often the easier way for me to navigate. I don't see the point of the window swallowing, though. Add an ampersand to the end of the command if you know toils have the window open for a while, or use C-z and the bg command to recover control of the terminal if you don't realize until later. Unless I'm missing something?
reply
Rafa-
In i3wm i use such binding:
bindsym $mod+Shift+w move container to workspace tmp;move container to workspace tmp; workspace tmp; layout tabbed; focus parent; move container to workspace back_and_forth; workspace back_and_forth; focus left;
It makes two last containers tabbed and I decide if i want them tabbed or not.
reply
In i3wm i use such binding:
bindsym $mod+Shift+w move container to workspace tmp;move container to workspace tmp; workspace tmp; layout tabbed; focus parent; move container to workspace back_and_forth; workspace back_and_forth; focus left;
It makes two last containers tabbed and I decide if i want them tabbed or not.
reply
Kevin
If you don' want a locked terminal session, then start a session mutli-plexor(I use Byobu in tmux mode), launch your multi-media process in the background by pressing the & after the command, or press ctrl-y to force the running app into the background. I have byobu and exit mapped to b & x in my shells. :D
reply
If you don' want a locked terminal session, then start a session mutli-plexor(I use Byobu in tmux mode), launch your multi-media process in the background by pressing the & after the command, or press ctrl-y to force the running app into the background. I have byobu and exit mapped to b & x in my shells. :D
reply
David
Kali added qterm -drop down- where you can type a command it will run and the term will go away. Use it a lot when running openvpn when playing CTF's so IF you want that prob fixed install qterm dropdown terminal you will b able to run it then when done click out of the term and it will be gone
reply
Kali added qterm -drop down- where you can type a command it will run and the term will go away. Use it a lot when running openvpn when playing CTF's so IF you want that prob fixed install qterm dropdown terminal you will b able to run it then when done click out of the term and it will be gone
reply
Silliepaulie
Why not set up a minimize button? I know Linux users in general don't like anything non-linux ideas. But this seems more useful or set up a way for the program from the same window as the terminal launched it.
reply
Why not set up a minimize button? I know Linux users in general don't like anything non-linux ideas. But this seems more useful or set up a way for the program from the same window as the terminal launched it.
reply
Pierce
Why do you need a script. All we need to do is:
mpv video.mp4 > /dev/null 2>&1 & exit
In other words, stout and stderr redirect to dev null, and the final -&- makes it run in background
reply
Why do you need a script. All we need to do is:
mpv video.mp4 > /dev/null 2>&1 & exit
In other words, stout and stderr redirect to dev null, and the final -&- makes it run in background
reply
zdenda
I just run a program detached from the terminal. And then (usually) leave the terminal open or exit from it. -Swallowing- a terminal while another program is running is absolute nonsense.
reply
I just run a program detached from the terminal. And then (usually) leave the terminal open or exit from it. -Swallowing- a terminal while another program is running is absolute nonsense.
reply
Add a review, comment















