Тёмный

Does your Window Manager Swallow? 

Luke Smith
Подписаться 212 тыс.
Просмотров 76 тыс.
50% 1

Literally no one wants to see useless standard output on some parent terminal that will close whatever media file you open from it. dwm solves this problem by having a swallow/swallowing patch: it automatically places media windows exactly over the terminals you start them from. When you exit out of these windows, your terminal is still there, safe and sound. It's basically like consooming media in the terminal itself in terms of efficiency.
WEBSITE: lukesmith.xyz 🌐❓🔎
DONATE: lukesmith.xyz/... 💰😎👌💯
OR affiliate links to things l use:
www.epik.com/?... Get a cheap and reliable domain name with Epik.
www.vultr.com/... Get a VPS and host a website or server for anything else.
brave.com/luk005 Get the Brave browser.
lbry.tv/$/invi... View my videos on LBRY.
www.coinbase.c... Get crypto-rich on Coinbase.

Опубликовано:

 

10 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 441   
@SimGunther
@SimGunther 4 года назад
I'm not like those other window managers, you know...
@luciano0593
@luciano0593 4 года назад
best comment of the month here
@Bakwazan
@Bakwazan 4 года назад
She swallows so she's the one
@ygypt
@ygypt 3 года назад
"its kinda hard to wonder wide-eyed about something so obvious it hurts" love ur pfp
@bruderdasisteinschwerermangel
@bruderdasisteinschwerermangel 4 года назад
I click the file and VLC shows up without any issues What is this boomer talking about
@AkamiChannel
@AkamiChannel 4 года назад
Using a DE or file manager? Or do you have that in your terminal?
@abujessica
@abujessica 4 года назад
@@AkamiChannel bro
@shankaranarayana6568
@shankaranarayana6568 4 года назад
Lmao
@Czarmzy
@Czarmzy 4 года назад
@@AkamiChannel not him but i just gnome-files (on i3). it just werks.
@AlexanderPrussak
@AlexanderPrussak 4 года назад
@@AkamiChannel I think him using a conventional DE with file manager GUI is the joke here
@hmagellanlinux307
@hmagellanlinux307 4 года назад
"Babe! It's 4PM, time to edit your dotfiles!"
@xtdycxtfuv9353
@xtdycxtfuv9353 4 года назад
yes, stallman
@SSouper
@SSouper 4 года назад
I see you have your Steve t-shirt on, Minecraft let's play when?
@doom-and-gloom
@doom-and-gloom 4 года назад
and also beta Steve's beard
@Supertimegamingify
@Supertimegamingify 4 года назад
New persona
@aaronstark171
@aaronstark171 4 года назад
he is always playing minecraft, just IRL.
@DavidJBurbridge
@DavidJBurbridge 4 года назад
When's he getting an Uncle Ted hoodie?
@MaximeCroquant
@MaximeCroquant 4 года назад
He is Steve IRL
@UCFc1XDsWoHaZmXom2KVxvuA
@UCFc1XDsWoHaZmXom2KVxvuA 4 года назад
2:22 Weird boomer tries to attempt zoomer clap-cut
@josephgoebbels1605
@josephgoebbels1605 4 года назад
I am going to have you rename this video sir
@kmr_tl4509
@kmr_tl4509 4 года назад
He didn't say "based" in this video, if you're curious.
@m1lkweed
@m1lkweed 4 года назад
March Literally unwatchable
@therealamon
@therealamon 4 года назад
cringe
@victorprokop2240
@victorprokop2240 4 года назад
did he say redpilled?
@mqL49J
@mqL49J 4 года назад
Based on what?
@zot93X
@zot93X 4 года назад
Doomer moment
@cannedeals
@cannedeals 4 года назад
I am guessing the clap at 2:28 was to help with editing so you know where to cut. I wonder if you get a dog whistle and use that instead and have an FFMPEG script that auto cuts when it hears a certain frequency.
@servo5156
@servo5156 4 года назад
you can see him stop the recording after he claps
@supersonictumbleweed
@supersonictumbleweed 4 года назад
Microphones don't pick up dog whistle
@donnawander7710
@donnawander7710 4 года назад
@@supersonictumbleweed depends on the microphone and the audio interface
@하람배-q5k
@하람배-q5k 3 года назад
i guess he likes to leave the dog whistles to the main parts of the video :P
@your-mom-irl
@your-mom-irl Год назад
@@supersonictumbleweed some microphones go up to 50khz while human hearing cuts off at around 20khz. So it's definitely possible. Frequency response isn't a hard cutoff so a regular microphone might pickup a very strong 21khz signal
@szenghoe
@szenghoe 4 года назад
You have been very productive recently
@LukeSmithxyz
@LukeSmithxyz 4 года назад
No I haven't, I've been making RU-vid videos.
@bsahin7110
@bsahin7110 4 года назад
@@LukeSmithxyz Are you ricing, son?
@matroqueta6825
@matroqueta6825 4 года назад
0:51 Luke used his mouse, jesus christ what a normie
@seanld444
@seanld444 3 года назад
Actually it's his trackpoint!!111!1
@salmanabedin1313
@salmanabedin1313 4 года назад
2:27 The slap and the quick key press with the face was hilarious! You made my day luke! Laughing my ass off, for real!
@zigginzag584
@zigginzag584 4 года назад
So what's the proper etiquette? Do I leave my window manager a tip on the dresser now or...
@crazymonkeyVII
@crazymonkeyVII 4 года назад
Ha I learned something new again! Thank you for always coming up with new stuff! I've used DWM since like a month before you started using it (I've been following you on RU-vid since a month after I started with i3) and the possibilities are amazing! I'm getting a "new" Lenovo flex 14 with touchscreen soon, which I'm putting a Manjaro KDE on just to see what that's like (Blender doesn't like DWM, it doesn't let me close the Preference window without crashing) but I'm gonna miss the simplicity, low overhead and the ability to customize it that DWM has. Although I'm contemplating hacking DWM into KDE as a substitute for Kwin just to have the best of both... I love Linux!
@Curazio
@Curazio 4 года назад
OK I was quite happy with bspwm and despite all your dwm praises I was not convinced to switch but now I am finally sold compiling dwm right now
@Klblaz
@Klblaz 4 года назад
This is similar to plan9's rio window manager, where an application can take over the terminal window, but the implementation is much simpler. Thank you for showing this, now I have no reason to ever use any other wm.
@cebruthius
@cebruthius 3 года назад
That's because they literally inherit the same drawing surface /dev/draw
@simpleprogrammingcodes
@simpleprogrammingcodes 4 года назад
That's awesome! It reminds me of DOS games when you start it from the terminal and it covers the whole screen! It makes the terminal and the tiling paradigm much more user friendly and useful! Weird that it was not more widespread let's say 10 years ago...
@scarab5Q
@scarab5Q 4 года назад
Well I dont have this problem because my iq is so high I don't even have to use bloat like a terminal. I just manipulate individual bits using my bare hands
@thenextpoetician6328
@thenextpoetician6328 4 года назад
Some day, you might even upgrade to telekinesis. I'm still using power tools and going through monitors at a ridiculous clip. :)
@scarab5Q
@scarab5Q 4 года назад
@@thenextpoetician6328 nah fuck that, telekenesis is bloat, I'm currently in the process of migrating to suckless hands which only come with 3 fingers and require patches for the thumb
@andreasklindt7144
@andreasklindt7144 4 года назад
Sir, you're so 1960's! Seriously, the memory banks in the 60's, for example for the Saturn V rocket's guiding system, were nitted by hand. Every tiny bit of it. And they DID manipulate those bits by hand, magnetizing or demagnetizing them bit by bit. Handnitting memory banks - only real boomers do that kind of quality work! ;)
@seanld444
@seanld444 3 года назад
So original
@Fetusgi
@Fetusgi 4 года назад
I like it but I think there should be a function to unswallow with a shortcut key. Just in case you happen to need to see the output live in a such a program that you probably will remove after one time use as you only need it for some rare occasion in which case you don't want to bother to change the config and compile dwm just for the single run of a program.
@thefekete
@thefekete 4 года назад
Me too! A an option to switch between the two and another to unswallow, showing both windows again would make this a perfect patch!
@_smhmd
@_smhmd 4 года назад
There at least should be a static const int disableswallow = 0;
@_smhmd
@_smhmd 4 года назад
If you want to unswallow something, just quit dwm (mod+shift+q)
@jasongoulet-lipman7308
@jasongoulet-lipman7308 4 года назад
@@_smhmd Good idea, but I would rather set it as just a regular int, and have a c function attached to a keybinding which toggles its value.
@_smhmd
@_smhmd 4 года назад
@@jasongoulet-lipman7308 always that that was a spit in the face of suckless, haha.
@Enthalpiste
@Enthalpiste 4 года назад
This is just sending the terminal automatically to the scratchpad. i3 or sway have a scratchpad. You could script this outside your wm config file or make use of a tabbed windows style. Bloated feature.
@rranon8489
@rranon8489 4 года назад
You can just automate sending a parent window (the terminal) to the scratchpad if you launch an app from it?
@Enthalpiste
@Enthalpiste 4 года назад
@@rranon8489 No idea about dwm (I guess so) but I'm pretty sure you can make an alias sending the parent window to the scratchpad using swaymsg in Sway when you call a given program. Anyway mod+shift+minus does the trick, no big deal.
@titsmcgee1571
@titsmcgee1571 4 года назад
@@Enthalpiste Perhaps I'm misunderstanding but it sounds like you'd still need some extra keystrokes to get the terminal off your screen once you've launched your application. Most of the time when I launch a graphical application from a terminal I don't give a shit about the console output. Being able to hide the terminal without having to think about it seems very convenient.
@ElderSnake90
@ElderSnake90 4 года назад
Yeh but those key presses are bloat
@rchetype7029
@rchetype7029 4 года назад
The fuck is a scratch pad. I only use notepad.
@NerdistRay
@NerdistRay 4 года назад
Luke Smith watching Mental Outlaw's RU-vid video. This is some epic chad elite crossover right here.
@wolverine9632
@wolverine9632 3 года назад
dwm is suckless, AND it swallows? I'm impressed.
@AtomToast
@AtomToast 4 года назад
Eh, seems kinda cool but I prefer the flexibility of using & I think. Also I forget I can always use ctrl+z + bg to send it to the background. Bonus is: if you use `setopt nohup` in your zshrc it won't kill those background processes if you kill the window. Otherwise you'd need to use `disown` every time Note: I already use dwm
@manners7483
@manners7483 Год назад
You can save yourself the ctrl z by just ending any command with & to start it in the background. nohup program & Will disable the closehook and start the program in the background.
@Argletrough
@Argletrough 4 года назад
2:26 I find that transition so hilarious for some reason.
@victorprokop2240
@victorprokop2240 4 года назад
boomer moment
@ИванКалашников-ц8л
My 269 IQ solution for this problem was "mpv greenFrog.mp4 && exit"
@nightfox6738
@nightfox6738 3 года назад
Your terminal stays up while mpv is running then closes as soon as mpv does. I think you mean: 'mpv greenFrog.mp4 & exit'
@danny5035
@danny5035 4 года назад
mux on the blit terminal by Rob Pike had this in 1982
@ernst800
@ernst800 4 года назад
another 'problem' in linux that was elegantly solved in plan9 some 30 years ago.
@mononix5224
@mononix5224 4 года назад
I was looking for this comment, didn't want to be redundant, thanks!
@jhondoux84
@jhondoux84 4 года назад
this comment helps with the algorithm
@Willwantstobeawesome
@Willwantstobeawesome 4 года назад
cool
4 года назад
@@tenj00 choo choo
@wacesferpit
@wacesferpit 4 года назад
Thanks, now I'll use Rio from Plan9
@bitnatures
@bitnatures 4 года назад
Honestly one of the most unique workflow styles.
@ryansanta
@ryansanta 4 года назад
You can just also push it to bg and then disassociate it with the main process or w/e...it’s usually the first solution you find if you’re looking to solve this problem. Swallowing is always better though! 😛
@0000xFFFF
@0000xFFFF 4 года назад
1:57 *SOY* he was thinking about i3 users that's why he typed that
@selimmidikoglu5534
@selimmidikoglu5534 4 года назад
When Luke messing with his beard, It means he says something he does not like it deeply or supporting it or does not care about existence of that shit. I can feel it.
@halamadrid5238
@halamadrid5238 2 года назад
This feature alone made me switch from i3 to DWM. Now I have patched my DWM to be exactly how I like it and I will probably never leave DWM
@slowestq
@slowestq 4 года назад
My window manager spits and get's mad I didn't warn it in advance.
@clearnitesky
@clearnitesky 4 года назад
Man, I’ve really wanted this patch. Thanks for sharing.
@Dok4289
@Dok4289 4 года назад
what's wrong with "& disown"
@omerresnikoff3565
@omerresnikoff3565 4 года назад
Why would you type something when you rather won't?
@Dok4289
@Dok4289 4 года назад
@@Ultr4noob nope works in ksh, zsh & fish too
@Dok4289
@Dok4289 4 года назад
@@omerresnikoff3565 so that u don't have to switch to an inferior window manager
@sharmamadhus09
@sharmamadhus09 3 года назад
you're kidding right ?
@Dok4289
@Dok4289 3 года назад
@@sharmamadhus09 no I'm dead serious, do u have a problem with that?
@victorman931
@victorman931 4 года назад
Hey Luke, nice video! I thought about how you said up your webcam on your dwm setup?
@dominickallen2626
@dominickallen2626 4 года назад
Pretty sure in a floating window manager you can just minimize your terminal, or launch a dedicated app like gwenview. Another solution would be to use utilities like dtach and dvtm, to respectively detach from the process and maintain use of your terminal. I'm not really sold on tiling window managers even though I used to use dwm, but I will say that certain suckless programs are excellent . BTW, if you *really* want to watch a video in your terminal, output it with libcaca.
@n0kodoko143
@n0kodoko143 4 года назад
For the record, if no one is paying attention, I'm learning git difftool (just set nvim to my difftool), and dwm is going to be the program that I learn it with - l'll need the difftool for other things as well, but the suckless suite will be great practice). For those not leaving i3, i3ipc has a swallow script (not as efficient as patching source code).
@MrConcord75
@MrConcord75 4 года назад
DWM swallows?! I'm sold! 💦
@JoeMama-ob4cr
@JoeMama-ob4cr 2 года назад
Dang this is perfect. I installed DWM in FreeBSD a bit ago and it’s been an annoyance to sent the terminal to another tag whenever I open my browser
@manners7483
@manners7483 Год назад
just ending any command with & to start it in the background. nohup program & Will disable the closehook and start the program in the background.
@rchetype7029
@rchetype7029 4 года назад
When will Mocrosoft release this windows manager on my Windows 10?
@vulnoryx
@vulnoryx 2 года назад
good point. you can still switch to tabbed mode. but if you are a game dev, and want console log, you have to do this for every app you want that. still. No hate. I respect every DEs and WMs in linux, just like every Distro.
@your-mom-irl
@your-mom-irl Год назад
This, tabbed mode is a quick solution to this, although it might leave your terminal unusable , but then you just open a new one
@ixp8605
@ixp8605 3 года назад
Confirmed, Luke and Mental Outlaw are associates
@Eksalamonasalakaguag
@Eksalamonasalakaguag 4 года назад
Who would win, a "suckless" dwm with bloated patches or github/salman-abedin/devour with 4 lines of pure posix shell?
@tur7le254
@tur7le254 4 года назад
i used to do something like evince x.pdf & disown (maybe add an && exit to it ) but seeing this vid ill probably alias some commands to something like alias evince="evince $1 & disown " to make a workaround but i see your point dwm seems more intuitive planning to switch on it soon. Btw this was a great video
@thefekete
@thefekete 4 года назад
Hmm, had my eye on this patch for a while.. It would be nice to be able to hotkey switch between the spawned window and the spawning terminal. Haven't looked into it yet though.. Thanks again for another informative video!
@Ashkimbo
@Ashkimbo 4 года назад
Noticed this a couple hours ago when I was using anki - pretty cool
@KhalidJ
@KhalidJ 4 года назад
I didn't know I need this. Time to do that in awesome. Edit: I made my WM swallow
@KhalidJ
@KhalidJ 4 года назад
@@geovane7881 My dotfiles are a mess :( But I made a gist showing the changes needed here: gist.github.com/khalid151/af7704926274294b5896ee1fed468b34 I'm on git version btw. And I'm still trying to migrate my configs. That gist should work on the latest stable version. Let me know if it didn't, I haven't tested it.
@earthworm33
@earthworm33 4 года назад
The only thing holding me back from testing dwm is that it's for X only (instead of Wayland). That's why I use sway.
@matthewmccarthy3787
@matthewmccarthy3787 2 года назад
You can use dwl
@xxzylxxca1437
@xxzylxxca1437 4 года назад
For i3... In sequence, Split v and layout stacking do kind of that, did you know?
@albertm.3081
@albertm.3081 4 года назад
Can someone tell me which shortcuts did he use there? 2:27 I'm confused.
@vivekascoder
@vivekascoder 4 года назад
Why cant just use '&' symbol at the end.
@hotpil7020
@hotpil7020 4 года назад
You can just add '&' after a command to run it independently of the terminal.
@LukeSmithxyz
@LukeSmithxyz 4 года назад
Literally no. Run any program with &, then close out of the terminal. What happens to your program?
@jordanwarne911
@jordanwarne911 4 года назад
(command &) to run a script in the background
@RayVermey
@RayVermey 4 года назад
@@LukeSmithxyz ​ nohup command &
@Ericelrojo32
@Ericelrojo32 6 месяцев назад
Does anyone know how to make it work in Flatpak? The patch works for me but I don't know why it doesn't work in flatpak applications.
@Vincintosh
@Vincintosh 4 года назад
You should show more in detail how to patch dwm. I mean, we all know how to install ONE patch automatically. But I’ve always wondered how you install the next patches: once you installed the first patch, all the code gets shifted and line numbers don’t correspond anymore to the ones the author of the patch originally thinked and inserted in the diff file. So once you run the patch command you get a bunch of errors and nothing else works, until you manually find the appropriate lines and modify them. At least that’s what I’ve always did but that literally sucks and takes ages
@nightfox6738
@nightfox6738 3 года назад
The patch program is very clever. The line numbers are just approximates and it can handle a bit of fuzziness. When you do get a conflict it can't automatically work out, it saves the chunk to a filename.rej. which is basically just a diff file containing only the hunk that it doesn't know how to reconcile. Its usually pretty easy from there to figure out what the intended change was and you can apply it manually. What I do then is once I have whatever suckless utility the way I want it, I create a new patch that includes all my patches / changes and I can apply that any time I update the program.
@theohenson7283
@theohenson7283 4 года назад
A blue shirt?!? Like steve's from Minecraft? Glad you're repping the merch too, unlike fake fans.
@juanperezmondragon1676
@juanperezmondragon1676 4 года назад
doesn't "&" at the end of any command work????
@simpleprogrammingcodes
@simpleprogrammingcodes 4 года назад
It still makes 2 windows!
@Aldrenean
@Aldrenean 4 года назад
@@simpleprogrammingcodes command & ; disown ; exit
@Karthik-yy6up
@Karthik-yy6up 4 года назад
Yeah works just fine for me, no big deal.
@mustyhead
@mustyhead 4 года назад
I '&' so much, my '&/7' key's worn to a nub.
@simonedeiana2696
@simonedeiana2696 4 года назад
isn't this what happens in plan9 too?
@DonFeedtehTroll
@DonFeedtehTroll 4 года назад
>he needs to patch his window manager to get it to swallow virgin "needs to patch it to be functional" dwm vs. chad "script it however you want it" bspwm
@asdasd-by4hm
@asdasd-by4hm 4 месяца назад
virgin “spends most of his time on the computer” vs. chad “goes outside and talk to women”
@stumbling
@stumbling 4 года назад
I'm liking dwm but my one gripe is that tag numbers are unique for each monitor. This isn't much of a problem until I detach my thinkpad from its dock: then the tags with the same number get smooshed together. I'd prefer to keep them separate but I have no idea how to do that.
@altnhans
@altnhans 4 года назад
What a bloat. You can put "&" after your command to run it in background. And there is zero point in covering your shell with that new window
@drstrangecoin6050
@drstrangecoin6050 4 года назад
This 100% `foo &` is the correct behavior if you want this. Sometimes you need to see that output for when something is being shithouse, which is why it's there in the first place.
@LukeSmithxyz
@LukeSmithxyz 4 года назад
Why do people keep saying this? Watch the video! & still requires the redundant open terminal taking up half the screen be open for the whole time you're using the program. That's the whole point of running setsid! You're going to have to juggle a useless terminal window whereas swallow stores it safely behind the window that actually matters.
@MegaICS
@MegaICS 4 года назад
@@LukeSmithxyz well i use $mod + f for fullscreen or $mod + w for "hiding" the window, it is not the best solution but it works for me
@stumbling
@stumbling 4 года назад
You mean: $ bloatware & disown && exit You still have to open a new terminal after you're done using your gay user-friendly bloatware though.
@altnhans
@altnhans 4 года назад
​@@LukeSmithxyz may do *$mod+w* or send it to another workspace. But, worse, what if you want to open another program while this one is still up? Then you'd have to start another bash session, which is a waste of resources and forces you to press more buttons
@ctrackthezer0
@ctrackthezer0 4 года назад
You could also suspend the process with Ctrl+z then "bg" to send job to background and "disown" to detach process from terminal.
@froge8121
@froge8121 4 года назад
instantly patched my dwm i was thinking about a feature like this recently and this is so cool
@SoundToxin
@SoundToxin 4 года назад
I usually have a local tmux session with a bunch of shells and will use the same one for opening up videos in mpv, or I'll launch a video in mpv from rofi/wofi. I also have super-p bound to open my clipboard contents in mpv which works well if I've just copied the url of a RU-vid video or something. This is still cool, though. It reminds me of launching stuff on Plan 9.
@jamieg2427
@jamieg2427 3 года назад
the other way to run another app without tying up your terminal is to issue your command, but put & afterwards. example: mupdf document.pdf & and now the pdf will open and you can close the terminal or so something else in it. the terminal won't get swallowed though.
@jsbennett86
@jsbennett86 4 года назад
Is there a benefit to this versus a monocle window mode?
@alexplisov
@alexplisov 4 года назад
Hi, Luke! Very funny clap, little delay with screwed face and then cut. Lol.
@pinkSid---
@pinkSid--- 5 месяцев назад
I just use lf, and open multiple things to spawn into another video, I use the nohup command. But yeah this is badass, I'll incorporate it in thanks.
@maowtm
@maowtm 4 года назад
In i3: Run program Press meta+w
@trieulee4739
@trieulee4739 4 года назад
to I3 user I made a solution for this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_wtolb6mgLo.html
@Veptember
@Veptember 4 года назад
“Oh it’s one of those cute little retarded Pepe things”
@gaonkarprajwal
@gaonkarprajwal 4 года назад
It seems cool, but I wouldn't really patch my build of dwm. I like to see the output of my programs.
@stephenreaves3205
@stephenreaves3205 4 года назад
In i3, just put your windows in stacked mode () and add the & at the end. That way you have the flexibility to run things how you want. With Luke's method in dwm, when I open OBS and want to look at the logs (i.e. the default that this boomer is complaining about), it happens automatically. Switching your wm because you don't know keybindings or you don't know why defaults are the way they are is just dumb. Seriously, adding each program individually to a config file to make it just do the i3 default is dumb. Bad video is bad
@RushilKasetty
@RushilKasetty 4 года назад
Monocle mode in dwm does the same thing as what you're saying. Regardless, it's clearly a preference thing
@norr9016
@norr9016 4 года назад
If there will be v-split and h-split like in i3, I will move to DWM. For now it's inconvenient for me to switch to master-slave behavior, I just like to manually arrange my windows the way I want.
@censoredterminalautism4073
@censoredterminalautism4073 4 года назад
Window managers are bloat. Let me do all that in the TTY, without X, with the option of using a terminal multiplexer, and then I will be happy.
@davidhusicka8440
@davidhusicka8440 4 года назад
Can MPV run without X?
@blackrastafarian
@blackrastafarian 4 года назад
@@davidhusicka8440 you can use mplayer. Coupled with mps-youtube, and bam, you can watch your fav yt channel from the tty.
@censoredterminalautism4073
@censoredterminalautism4073 4 года назад
@@davidhusicka8440 You can with another window server, like Wayland, but without one, no. Absolutely disgusting.
@fghsgh
@fghsgh 4 года назад
mplayer -vo fbdev2
@froge8121
@froge8121 4 года назад
@@censoredterminalautism4073 well you can also just watch it in a framebuffer in the terminal and i think wayland is just a library, that's why you can run a wayland window manager in multiple sessions at once
@tomatotrasher7960
@tomatotrasher7960 4 года назад
Doesn't seem to work in Ranger. If I open some video file from the terminal using mpv for example, dwm does swallow it, but it doesn't when I do the same thing in Ranger
@anatolystepanovichdyatlov1747
@anatolystepanovichdyatlov1747 4 года назад
Vim Diesel is at it again.
@jorkusjorkus5818
@jorkusjorkus5818 4 года назад
I wondered how it worked so I had a quick look at the source code. When a window gets swallowed, it actually gets both Withdrawn (which is one of the states a window can have in X besides Normal and Iconic) and then explicitely Unmaps the window (removes it from the screen), which is weird because the Window manager should already be doing that to withdrawn windows in the first place. Then the new window gets resized and moved to where the old window was.I use a stacking WM (openbox), so terminal windows staying open don't really bother me that much, since the window I opened is in front of them and I can always Iconify (minimize) the terminal, but I wondered if that could be done automatically. You'd pretty much do the same thing this patch does to detect whether a window is opened from the terminal and then set the WM_STATE property to Iconic. Then when the new Window is closed the property is reset to Normal. This would also give the user the option to bring up the terminal manually (which wouldn't be the case for a withdrawn window).The Wm should do all the heavy lifting af actually mapping and unmapping windows (which I don't kow if that is the case for dwm and other tiling WMs since they don't know what to do with iconified windows,
@u9vata
@u9vata 2 года назад
I think this should be just turned on/off on the fly instead of giving flags like "noswallow". Like win+S should toggle swallowing on/off and thus you can tell your window manager to swallow or not. Maybe will create a patch for this as sounds simple to do.
@dead_code
@dead_code 4 года назад
for_window [class="mpv"] floating enable solved the same problem for me
@daniellittlewood8471
@daniellittlewood8471 4 года назад
Cool patch, but why doesn't just running ink the background achieve this? IIRC that lets you quit from and resume using the terminal
@SuperCape
@SuperCape 4 года назад
What if you want to read program output for debugging? Can you override?
@thefunnysmoke1526
@thefunnysmoke1526 4 года назад
Nice feature
@zoidburg3
@zoidburg3 4 года назад
Thank you uncle Luke, very cool
@anm4500
@anm4500 4 года назад
I just add an '&' at the end of my commands for same behavior. What's the problem with that ?!
@havenless1423
@havenless1423 4 года назад
That wont redirect the output, right?
@JDStone20
@JDStone20 4 года назад
That is what I do, or set it in Monocle mode. I installed the patch but it didn't do anything.
@pcache
@pcache 4 года назад
no one has ever been as sold as i am right now
@pavlovsky0
@pavlovsky0 2 года назад
Interesting, but as others have pointed out you can & or ctrl-z (zombie) and bg programs.
@adamblomberg
@adamblomberg 4 года назад
This precisely the problem I had with running software from cli.
@ImagoCanis
@ImagoCanis 4 года назад
super + w luke. like wtf this isn’t even an issue
@farris8503
@farris8503 4 года назад
Have you heard about the recent Brave fiasco? They autocomplete/replace (not sure which) certain URLs with their own affiliate links. What's your take on this?
@LukeSmithxyz
@LukeSmithxyz 4 года назад
What is a "fiasco" about (openly) using affiliate links for their intended purpose?
@farris8503
@farris8503 4 года назад
@@LukeSmithxyz Not sure what to call it, but anyway if you visit a certain site you don't expect to be redirected to an affiliate link without your permission (again not sure if it was redirection or autocompletion or some other thing). Plus they patched it immediately, which means that they acknowledged that it was a blunder.
@LukeSmithxyz
@LukeSmithxyz 4 года назад
You're not even redirected. Their affliate links are offered as options in the bar among others. They openly appear and they also don't auto-fill in. For example, if I type "coinbase.com" their afflilate link appears below. If I press enter, I go to standard coinbase rather than their link unless I deliberately click on it. I have much more issues with Brave recommending sites in general without my consent: for example if I type "n," I'll get suggestions like Google CaleNdar, LiNkdin and Nytimes. I've never visited these sites and there's no clear way to turn this off; I've looked.
@farris8503
@farris8503 4 года назад
@@LukeSmithxyz I see. Well I haven't tried for myself as I don't use Brave, but yeah I know it wasn't exactly redirection.
@DJ_Cthulhu
@DJ_Cthulhu 4 года назад
mpv --fs Non-issue 🤔
@wristcontr0l
@wristcontr0l 4 года назад
So it doesn't suck. But it does swallow. 🤔
@D4SM4DD1N
@D4SM4DD1N 4 года назад
is there an option to not have it swallow the terminal, or bring it back up, when I need the stdout fromt the program I'm running? I mean without editing the config and recompiling just to run something I might only run once or twice.
@GaMuSiNo4ev3r
@GaMuSiNo4ev3r 3 года назад
Where did you get that wallpaper?? I like it :D
@jordanwarne911
@jordanwarne911 4 года назад
Wouldn't exec partially do the trick, expect closing the program and going back to the terminal?
@icarus1656
@icarus1656 Год назад
I mean you could always just run it as a background job by appending an an & to your command
@juliangrinblat955
@juliangrinblat955 4 года назад
What if you want to suppress the swallow behavior just one time?
@wesleyrm
@wesleyrm 3 года назад
I always redirect to /dev/null and run in background. 2:27 LOL
@HarbAlarm
@HarbAlarm 4 года назад
Alright, this is why I'll try dwm.
@snwmzr8788
@snwmzr8788 4 года назад
Ratpoison has been able to do this since 20 years ago.
@ertwro
@ertwro 4 года назад
But i3 can do that... There's and ipc script called swallow, and you just use For_window ["instance" ="fuzz"] exec no-startup-id swallow Most window managers can swallow with an extension or patch. Even Windows 10 and MacOS can do that shit. Heck, you can just use the monocle layout in just one axis and achieve basically the same in dwm.
Далее
Bash commands to not look dumb at the Interview...
12:16
Ever Noticed How "Weird" Modern TV and Film are?
12:32
Просмотров 132 тыс.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
Просмотров 634 тыс.
Yep. Imagination is Demonic. (Unironically)
8:42
Просмотров 84 тыс.
BEST VPNs for PRIVACY in 2023!!!
7:33
Просмотров 55 тыс.
Layin' down Pipes like a Unix Chad
10:55
Просмотров 97 тыс.
I WILL NOT GO TO RESTAURANTS IN 2023.
8:21
Просмотров 55 тыс.
Suckless's dwm: So easy even a caveman could do it!
12:25
AI Will Make (Has Made) the Internet Mediocre...
12:14
I Will Be Throwing Away My Computers.
11:56
Просмотров 99 тыс.
Using Bash and the Terminal to understand files
14:09