Does your Window Manager Swallow?

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 441

  • @SimGunther
    @SimGunther 4 ปีที่แล้ว +551

    I'm not like those other window managers, you know...

    • @luciano0593
      @luciano0593 4 ปีที่แล้ว +21

      best comment of the month here

    • @Bakwazan
      @Bakwazan 4 ปีที่แล้ว +18

      She swallows so she's the one

    • @ygypt
      @ygypt 4 ปีที่แล้ว +1

      "its kinda hard to wonder wide-eyed about something so obvious it hurts"
      love ur pfp

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 4 ปีที่แล้ว +740

    I click the file and VLC shows up without any issues
    What is this boomer talking about

    • @AkamiChannel
      @AkamiChannel 4 ปีที่แล้ว +4

      Using a DE or file manager? Or do you have that in your terminal?

    • @abujessica
      @abujessica 4 ปีที่แล้ว +236

      @@AkamiChannel bro

    • @shankaranarayana6568
      @shankaranarayana6568 4 ปีที่แล้ว +4

      Lmao

    • @Czarmzy
      @Czarmzy 4 ปีที่แล้ว +4

      @@AkamiChannel not him but i just gnome-files (on i3). it just werks.

    • @AlexanderPrussak
      @AlexanderPrussak 4 ปีที่แล้ว +37

      @@AkamiChannel I think him using a conventional DE with file manager GUI is the joke here

  • @hmagellanlinux307
    @hmagellanlinux307 4 ปีที่แล้ว +145

    "Babe! It's 4PM, time to edit your dotfiles!"

  • @UCFc1XDsWoHaZmXom2KVxvuA
    @UCFc1XDsWoHaZmXom2KVxvuA 4 ปีที่แล้ว +253

    2:22 Weird boomer tries to attempt zoomer clap-cut

  • @josephgoebbels1605
    @josephgoebbels1605 4 ปีที่แล้ว +154

    I am going to have you rename this video sir

  • @SSouper
    @SSouper 4 ปีที่แล้ว +316

    I see you have your Steve t-shirt on, Minecraft let's play when?

  • @kmr_tl4509
    @kmr_tl4509 4 ปีที่แล้ว +145

    He didn't say "based" in this video, if you're curious.

    • @m1lkweed
      @m1lkweed 4 ปีที่แล้ว +39

      March Literally unwatchable

    • @therealamon
      @therealamon 4 ปีที่แล้ว +9

      cringe

    • @victorprokop2240
      @victorprokop2240 4 ปีที่แล้ว +13

      did he say redpilled?

    • @mqL49J
      @mqL49J 4 ปีที่แล้ว +14

      Based on what?

    • @zot93X
      @zot93X 4 ปีที่แล้ว +4

      Doomer moment

  • @cannedeals
    @cannedeals 4 ปีที่แล้ว +115

    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 ปีที่แล้ว +8

      you can see him stop the recording after he claps

    • @supersonictumbleweed
      @supersonictumbleweed 4 ปีที่แล้ว +2

      Microphones don't pick up dog whistle

    • @donnawander7710
      @donnawander7710 4 ปีที่แล้ว +1

      @@supersonictumbleweed depends on the microphone and the audio interface

    • @하람배-q5k
      @하람배-q5k 3 ปีที่แล้ว +8

      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

  • @salmanabedin1313
    @salmanabedin1313 4 ปีที่แล้ว +33

    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!

  • @matroqueta6825
    @matroqueta6825 4 ปีที่แล้ว +50

    0:51 Luke used his mouse, jesus christ what a normie

    • @seanld444
      @seanld444 3 ปีที่แล้ว +1

      Actually it's his trackpoint!!111!1

  • @zigginzag584
    @zigginzag584 4 ปีที่แล้ว +58

    So what's the proper etiquette? Do I leave my window manager a tip on the dresser now or...

  • @szenghoe
    @szenghoe 4 ปีที่แล้ว +51

    You have been very productive recently

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +203

      No I haven't, I've been making TH-cam videos.

    • @bsahin7110
      @bsahin7110 4 ปีที่แล้ว +18

      @@LukeSmithxyz Are you ricing, son?

  • @wolverine9632
    @wolverine9632 3 ปีที่แล้ว +6

    dwm is suckless, AND it swallows? I'm impressed.

    • @goalcaster
      @goalcaster 5 วันที่ผ่านมา

      pun of the year 🏆

  • @scarab5Q
    @scarab5Q 4 ปีที่แล้ว +78

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +12

      @@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 ปีที่แล้ว +2

      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 ปีที่แล้ว +1

      So original

  • @Enthalpiste
    @Enthalpiste 4 ปีที่แล้ว +45

    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 ปีที่แล้ว +1

      You can just automate sending a parent window (the terminal) to the scratchpad if you launch an app from it?

    • @Enthalpiste
      @Enthalpiste 4 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +5

      @@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 ปีที่แล้ว +1

      Yeh but those key presses are bloat

    • @rchetype7029
      @rchetype7029 4 ปีที่แล้ว +4

      The fuck is a scratch pad. I only use notepad.

  • @Fetusgi
    @Fetusgi 4 ปีที่แล้ว +34

    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 ปีที่แล้ว +5

      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 ปีที่แล้ว +2

      There at least should be a static const int disableswallow = 0;

    • @_smhmd
      @_smhmd 4 ปีที่แล้ว +1

      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.

  • @Klblaz
    @Klblaz 4 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

      That's because they literally inherit the same drawing surface /dev/draw

  • @NerdistRay
    @NerdistRay 4 ปีที่แล้ว +4

    Luke Smith watching Mental Outlaw's TH-cam video. This is some epic chad elite crossover right here.

  • @ernst800
    @ernst800 4 ปีที่แล้ว +7

    another 'problem' in linux that was elegantly solved in plan9 some 30 years ago.

    • @mononix5224
      @mononix5224 4 ปีที่แล้ว +1

      I was looking for this comment, didn't want to be redundant, thanks!

  • @Dok4289
    @Dok4289 4 ปีที่แล้ว +25

    what's wrong with "& disown"

    • @omerresnikoff3565
      @omerresnikoff3565 4 ปีที่แล้ว +1

      Why would you type something when you rather won't?

    • @Dok4289
      @Dok4289 4 ปีที่แล้ว +4

      @@Ultr4noob nope works in ksh, zsh & fish too

    • @Dok4289
      @Dok4289 4 ปีที่แล้ว +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 ปีที่แล้ว +2

      @@sharmamadhus09 no I'm dead serious, do u have a problem with that?

  • @crazymonkeyVII
    @crazymonkeyVII 4 ปีที่แล้ว +5

    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 TH-cam 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!

  • @AtomToast
    @AtomToast 4 ปีที่แล้ว +7

    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.

  • @Curazio
    @Curazio 4 ปีที่แล้ว +3

    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

  • @Argletrough
    @Argletrough 4 ปีที่แล้ว +8

    2:26 I find that transition so hilarious for some reason.

  • @halamadrid5238
    @halamadrid5238 2 ปีที่แล้ว +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

  • @simpleprogrammingcodes
    @simpleprogrammingcodes 4 ปีที่แล้ว +11

    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...

  • @0000xFFFF
    @0000xFFFF 4 ปีที่แล้ว +15

    1:57
    *SOY*
    he was thinking about i3 users that's why he typed that

  • @slowestq
    @slowestq 4 ปีที่แล้ว +3

    My window manager spits and get's mad I didn't warn it in advance.

  • @rchetype7029
    @rchetype7029 4 ปีที่แล้ว +5

    When will Mocrosoft release this windows manager on my Windows 10?

  • @ryansanta
    @ryansanta 4 ปีที่แล้ว +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! 😛

  • @selimmidikoglu5534
    @selimmidikoglu5534 4 ปีที่แล้ว +5

    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.

  • @danny5035
    @danny5035 4 ปีที่แล้ว +3

    mux on the blit terminal by Rob Pike had this in 1982

  • @juanperezmondragon1676
    @juanperezmondragon1676 4 ปีที่แล้ว +18

    doesn't "&" at the end of any command work????

    • @simpleprogrammingcodes
      @simpleprogrammingcodes 4 ปีที่แล้ว +1

      It still makes 2 windows!

    • @Aldrenean
      @Aldrenean 4 ปีที่แล้ว +4

      @@simpleprogrammingcodes command & ; disown ; exit

    • @Karthik-yy6up
      @Karthik-yy6up 4 ปีที่แล้ว

      Yeah works just fine for me, no big deal.

    • @mustyhead
      @mustyhead 4 ปีที่แล้ว +1

      I '&' so much, my '&/7' key's worn to a nub.

  • @wacesferpit
    @wacesferpit 4 ปีที่แล้ว +9

    Thanks, now I'll use Rio from Plan9

    • @bitnatures
      @bitnatures 4 ปีที่แล้ว

      Honestly one of the most unique workflow styles.

  • @Eksalamonasalakaguag
    @Eksalamonasalakaguag 4 ปีที่แล้ว +1

    Who would win, a "suckless" dwm with bloated patches or github/salman-abedin/devour with 4 lines of pure posix shell?

  • @clearnitesky
    @clearnitesky 4 ปีที่แล้ว +2

    Man, I’ve really wanted this patch. Thanks for sharing.

  • @Ericelrojo32
    @Ericelrojo32 10 หลายเดือนก่อน +1

    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.

  • @n0kodoko143
    @n0kodoko143 4 ปีที่แล้ว +1

    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).

  • @dominickallen2626
    @dominickallen2626 4 ปีที่แล้ว +1

    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.

  • @ИванКалашников-ц8л
    @ИванКалашников-ц8л 4 ปีที่แล้ว +25

    My 269 IQ solution for this problem was "mpv greenFrog.mp4 && exit"

    • @nightfox6738
      @nightfox6738 3 ปีที่แล้ว +3

      Your terminal stays up while mpv is running then closes as soon as mpv does.
      I think you mean: 'mpv greenFrog.mp4 & exit'

  • @albertm.3081
    @albertm.3081 4 ปีที่แล้ว +5

    Can someone tell me which shortcuts did he use there? 2:27 I'm confused.

  • @altnhans
    @altnhans 4 ปีที่แล้ว +14

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +15

      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 ปีที่แล้ว +2

      @@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 ปีที่แล้ว +10

      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 ปีที่แล้ว +1

      ​@@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

  • @censoredterminalautism4073
    @censoredterminalautism4073 4 ปีที่แล้ว +12

    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 ปีที่แล้ว +1

      Can MPV run without X?

    • @blackrastafarian
      @blackrastafarian 4 ปีที่แล้ว +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 ปีที่แล้ว +2

      @@davidhusicka8440 You can with another window server, like Wayland, but without one, no. Absolutely disgusting.

    • @fghsgh
      @fghsgh 4 ปีที่แล้ว +3

      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

  • @JoeMama-ob4cr
    @JoeMama-ob4cr 3 ปีที่แล้ว +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.

  • @jhondoux84
    @jhondoux84 4 ปีที่แล้ว +63

    this comment helps with the algorithm

    • @Willwantstobeawesome
      @Willwantstobeawesome 4 ปีที่แล้ว +6

      cool

    •  4 ปีที่แล้ว +6

      @@tenj00 choo choo

  • @xxzylxxca1437
    @xxzylxxca1437 4 ปีที่แล้ว +4

    For i3...
    In sequence, Split v and layout stacking do kind of that, did you know?

  • @vivekascoder
    @vivekascoder 4 ปีที่แล้ว +2

    Why cant just use '&' symbol at the end.

  • @hotpil7020
    @hotpil7020 4 ปีที่แล้ว +4

    You can just add '&' after a command to run it independently of the terminal.

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +5

      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 ปีที่แล้ว +1

      @@LukeSmithxyz ​ nohup command &

  • @stephenreaves3205
    @stephenreaves3205 4 ปีที่แล้ว +15

    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

  • @victorman931
    @victorman931 4 ปีที่แล้ว +2

    Hey Luke, nice video! I thought about how you said up your webcam on your dwm setup?

  • @jsbennett86
    @jsbennett86 4 ปีที่แล้ว +3

    Is there a benefit to this versus a monocle window mode?

  • @stumbling
    @stumbling 4 ปีที่แล้ว +2

    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.

  • @earthworm33
    @earthworm33 4 ปีที่แล้ว +1

    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.

  • @vulnoryx
    @vulnoryx 3 ปีที่แล้ว +1

    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

  • @MrConcord75
    @MrConcord75 4 ปีที่แล้ว +2

    DWM swallows?! I'm sold! 💦

  • @maowtm
    @maowtm 4 ปีที่แล้ว +4

    In i3:
    Run program
    Press meta+w

    • @trieulee4739
      @trieulee4739 4 ปีที่แล้ว

      to I3 user I made a solution for this
      th-cam.com/video/_wtolb6mgLo/w-d-xo.html

  • @simonedeiana2696
    @simonedeiana2696 4 ปีที่แล้ว +2

    isn't this what happens in plan9 too?

  • @Vincintosh
    @Vincintosh 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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.

  • @farris8503
    @farris8503 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +2

      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.

  • @anm4500
    @anm4500 4 ปีที่แล้ว +2

    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.

  • @thefekete
    @thefekete 4 ปีที่แล้ว +1

    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!

  • @tomatotrasher7960
    @tomatotrasher7960 4 ปีที่แล้ว +1

    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

  • @D4SM4DD1N
    @D4SM4DD1N 4 ปีที่แล้ว +2

    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.

  • @rolandsharp
    @rolandsharp 4 ปีที่แล้ว +3

    Is there a DWM build without the status bar. I don't need it

    • @excitableboy7031
      @excitableboy7031 4 ปีที่แล้ว +4

      Its called bspwm

    • @Fetusgi
      @Fetusgi 4 ปีที่แล้ว +3

      Dwm fork called "sara" doesn't have built-in status bar. Though it also has some other features baked into it being someone's personal fork. I haven't look into it too much but with a little code inspection effort you probably can find the necessary modification needed to remove the status bar from your own build.

    • @rolandsharp
      @rolandsharp 4 ปีที่แล้ว

      @@excitableboy7031 that's not the same. It uses config files

  • @SuperCape
    @SuperCape 4 ปีที่แล้ว +3

    What if you want to read program output for debugging? Can you override?

  • @KhalidJ
    @KhalidJ 4 ปีที่แล้ว +2

    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.

  • @norr9016
    @norr9016 4 ปีที่แล้ว +1

    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.

  • @alexplisov
    @alexplisov 4 ปีที่แล้ว

    Hi, Luke! Very funny clap, little delay with screwed face and then cut. Lol.

  • @jordanwarne911
    @jordanwarne911 4 ปีที่แล้ว +1

    Wouldn't exec partially do the trick, expect closing the program and going back to the terminal?

  • @GonzaloOviedoLambert
    @GonzaloOviedoLambert 4 ปีที่แล้ว

    You have the same problem that i have with st Terminal, when you open another windows, the lines in the terminal are cut in half, so you lose that part of the text. See minute 0:37 to 0:41 aprox, look your lines in the terminal, half is gone.

  • @gaonkarprajwal
    @gaonkarprajwal 4 ปีที่แล้ว +1

    It seems cool, but I wouldn't really patch my build of dwm. I like to see the output of my programs.

  • @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

  • @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.

  • @juliangrinblat955
    @juliangrinblat955 4 ปีที่แล้ว +1

    What if you want to suppress the swallow behavior just one time?

  • @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.

  • @Aldrenean
    @Aldrenean 4 ปีที่แล้ว +1

    There is a script for this in i3: github.com/jamesofarrell/i3-swallow
    Also possible to get the same patch working in Sway, just need to install i3ipc-python (python-i3ipc on Arch)
    note that this is not automatic, instead you call the script with the desired command as an argument.

  • @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,

  • @ixp8605
    @ixp8605 4 ปีที่แล้ว

    Confirmed, Luke and Mental Outlaw are associates

  • @janfisher8333
    @janfisher8333 4 ปีที่แล้ว

    Image installing an entire window manager to achieve this goal instead of running stuff in background for example with "nohup stuff &".

    • @starypiard
      @starypiard 4 ปีที่แล้ว

      Why modify every command you run, when you can solve the problem globally? ALSO: Ctrl-z + bg + disown works even after you launched the command without nohup. Then again, its a terminal-as-a-desktop problem. So less than 1% of 1% of the population will run into this issue.

  • @waltereikrem
    @waltereikrem 4 ปีที่แล้ว

    does it give your terminal videopowers. or is it just a fancy way of minimizing and swapping place with the video window? im sure you could alias something to run a script that does this in any distro? or is that bloat lul

  • @Ashkimbo
    @Ashkimbo 4 ปีที่แล้ว +1

    Noticed this a couple hours ago when I was using anki - pretty cool

  • @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.

  • @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

  • @GaMuSiNo4ev3r
    @GaMuSiNo4ev3r 3 ปีที่แล้ว

    Where did you get that wallpaper?? I like it :D

  • @andreycherkasov9504
    @andreycherkasov9504 4 ปีที่แล้ว

    Both under i3 and dwm, st, urxvt and xterm "swallow" part of the text they display when resizing/moving around the windows, as you have on 3:36. xfce4-terminal doesn't act like this, so do I need to suck more with it just to have this "feature"?

  • @dead_code
    @dead_code 4 ปีที่แล้ว +8

    for_window [class="mpv"] floating enable
    solved the same problem for me

  • @Tandem1221
    @Tandem1221 4 ปีที่แล้ว +1

    What is the difference if I just added ' &' at the end of command? How this command I just ran behaves and if it will be 'closed' on program window closed?

    • @Mankepanke
      @Mankepanke 4 ปีที่แล้ว +1

      The window still requires the terminal to be alive, unless you disown the process and also remembered to run it in `nohup` and redirected stdout/stderr somewhere else.
      You just get your prompt back, that's all.

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +3

      100% of "terminals" (and all other programs) have that behavior. It's how Linux deals with child processes.
      1) Open a file with mpv &
      2) Close the parent terminal
      And the mpv instance will close as well.
      This is what setsid does: run the process independently. I expected people who watch this to understand the entire point of the video, but I guess they didn't judging by the comments.

    • @ilsirent9726
      @ilsirent9726 4 ปีที่แล้ว

      @@SaHaRaSquad using xfce4-terminal, default manjaro settings. Child process (e.g. mpv) gets killed when I close terminal tab even with & in the end of the command.

  • @samuel5309
    @samuel5309 4 ปีที่แล้ว

    Hi, Maybe I'm way off base here but isn't it one of the perks of launching a program in the background with & is that if you exit your terminal it doesn't exit the son process?

    • @samuel5309
      @samuel5309 4 ปีที่แล้ว

      @@aaronk408 I was wrong indeed. Mb and ty for correcting me

  • @SoundToxin
    @SoundToxin 4 ปีที่แล้ว +2

    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 TH-cam video or something.
    This is still cool, though. It reminds me of launching stuff on Plan 9.

  • @luimu
    @luimu 4 ปีที่แล้ว

    Yes, dwm indeed does it better, but how hard can it be to press f after starting mpv or using the wm's keybinds to put the window fullscreen. Also that completely useless feature is usefull for debugging programms. I at least don't care about this since it's so minor convenience.

  • @ImagoCanis
    @ImagoCanis 4 ปีที่แล้ว

    super + w luke. like wtf this isn’t even an issue

  • @pcache
    @pcache 4 ปีที่แล้ว +1

    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.

  • @bpnn2428
    @bpnn2428 4 ปีที่แล้ว +1

    why can't i just use '&'? is there a difference?
    mpv example_file.mp4 &

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +6

      & requires that the terminal always be open so long as you want the child window to be open.

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +5

      You're literally just wrong. Go and try it on literally *any* terminal.
      It's not just a terminal thing, it's a universal fact of how child processes are spawned. Run a command with & in a script and kill the script and the other command is killed.

    • @netbotcl586
      @netbotcl586 4 ปีที่แล้ว

      you have to setopt NO_HUP in your zshrc if you are using zsh or usong &! to have to running after closing the term.

  • @defvii
    @defvii 4 ปีที่แล้ว +1

    The real solution is not to run GUIs out of your terminal for no reason, and to use a launcher that pops up on a nice hotkey, or just using nohup. I'm not a fan of having an empty terminal behind every GUI because you end up having to clean them up because you dont want them anymore after closing your GUI.

  • @nightfox6738
    @nightfox6738 3 ปีที่แล้ว

    I was just thinking "gee wouldn't it be nice if when you spawn a window from a terminal where the new window blocks the terminal you could hide the terminal in the same stack position" then I looked through the patches on suckless and what do you know. I installed it today and I love it. The only thing is I'd like if there was a keybinding that you could toggle a window back and forth with its "swallowed" counterpart. for example if I run 'mpv something.mkv' from an st client it replaces st in my stack but then if I press say... idk mod+>/mod+< (actual keybind can be whatever) it switches back to st so I can see the stdout in case I need to troubleshoot something but don't want to close the window. Is there something like that in swallow or will I have to modify the patch myself? shouldn't be too hard to do although I'm not familiar with the actual implementation of swallow.

  • @DonFeedtehTroll
    @DonFeedtehTroll 4 ปีที่แล้ว +5

    >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 8 หลายเดือนก่อน

      virgin “spends most of his time on the computer” vs. chad “goes outside and talk to women”

  • @icarus1656
    @icarus1656 ปีที่แล้ว

    I mean you could always just run it as a background job by appending an an & to your command

  • @RahulRaj-pd7gi
    @RahulRaj-pd7gi 4 ปีที่แล้ว

    What is on the right side in thumbnail . It looks cool

  • @_smhmd
    @_smhmd 4 ปีที่แล้ว +6

    If you want to unswallow something, just quit dwm (mod+shift+q)