Is Hyprland Good? - A Brief First Look

แชร์
ฝัง

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

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

    Want more Linux content? Follow me on Mastodon. I'm trying to get to 5k followers by the end of the year, so a follow will help me out! fosstodon.org/@thelinuxcast

  • @eriedaberrie8703
    @eriedaberrie8703 ปีที่แล้ว +49

    I don't understand the scratchpad complaint at all.
    First of, you can have multiple "scratchpads", any workspace that starts with "special:" acts as one. I have keys for "special:a", "special:b", and "special:c" and it works fine.
    Also, you can autostart programs with exec rules to have them start in specific workspaces, including special ones.
    e.g. `exec-once = [workspace special:1 silent] alacritty` and it works perfectly fine, it's fairly straightforward imo and nowhere near as convoluted as you make it out to be.
    Also, I heard you mention eww as an X11 bar, it works perfectly fine on wayland on well.

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

      True. I feel like this and his last video are just poorly researched. Most of the things he's complaining about is already working.

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

      He technically got Eww on hyprland during a recent livestream, but his main point in the video still stands: Cool tool but really unintuitive and not a lot of good documentation or support.

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

      Thanks a ton for this :) Im new to hyprland and got the outdated info that only one scratchpad was possible. This is great!

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

      Does polybar work on hyprland btw?

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

      @@RenderingUser Nope

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

    I truly envy your writing talents. Your content is informative and engaging. I learn so much from this channel. Thank you.

  • @karoofish
    @karoofish ปีที่แล้ว +17

    I've been using Hyprland for a month, finding it great so far.

  • @teknicker2487
    @teknicker2487 ปีที่แล้ว +16

    10:05 the cursor focus behavior can be changed with the follow_mouse variable in the config.
    follow_mouse = 2 is what I use, and it lets me type in one window while scrolling with the mouse in others.
    Edit:
    Just realized that the focus still switches, when moving the cursor from a floating window to a tiled one, and vice versa.
    This can be disabled with: float_switch_override_focus = 0

  • @joshua_lee732
    @joshua_lee732 8 หลายเดือนก่อน +9

    Installs hyprland, spends half the video complaining about scratchpads.

  • @wojteksowinski248
    @wojteksowinski248 ปีที่แล้ว +17

    I actually quite like waybar. I was hoping that you’d at least mention that it can be styled with css, that’s one of my favourite features. Styling polybar has always felt quite clunky to me and being able to use css makes that aspect of it so much better. I also like how waybar handles the systray. It’s just like any other module and you can put it anywhere unlike in polybar where it can only be in the middle, all the way to the left or all the way to the right

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

      >unlike in polybar where it can only be in the middle, all the way to the left or all the way to the right
      This is wrong. You can actually put it anywhere in polybar as well.
      Here is the tray section from my polybar:
      tray-position = right
      tray-detached = true
      tray-background = ${colors.shade1}
      tray-offset-x = -320
      tray-offset-y = 7
      tray-maxsize = 20
      tray-padding = 0
      tray-scale = 0.5
      As you can see x & y offset makes it possible to put the tray literally anywhere on the screen.

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

    I haven't tried this but a solution to your monitor sleeping problem maybe that you have to use the resume keyword with swayidle so that hyprctl can turn the displays back on. So it would be "swayidle -w timeout 60 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'".

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

      exec-once= swayidle -w timeout 120 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'...................same thing, but you can run a script before it goes to sleep, very useful! :D

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

    Dude, I'm so glad you're doing Hyprland. Been playing with it a couple weeks, and it's my first Wayland experience, and I'm really digging it. Already made it my daily driver.
    It would be really fkn *awesome* if while you still have Hyprland installed you could demonstrate the HybridBar status bar in the Wiki. It's so minimalist, it comes with no features! Literally a blank slate with no config options and no documentation from which to borrow scrips. I've looked everywhere and manged along the way to set up the time and date (which btw blinks every minute with the time change), but I want this status bar and have no idea where to look at this point. Super frustrating. I'm no coder, just a guy who likes to play with shit that's way beyond his actual skill set. I've gone from LTS DEs (mostly Mint) to Arch I3 (which you mostly taught me btw) to Hyprland in about a year's time.
    Please think about it. Either way, thanks for doing what you do. You've been a solid learning resource for me.

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

      Why you wouldn't use Waybar?

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

      @@nizzuta2611 Tbh, I just wasn't impressed with any of the Wayland status bars. HybridBar was last on the Hyprland Wiki's list of options. I installed it to try it out and liked it just enough wonder what it _could_ be, and I liked the challenge that presented.

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

      @@nizzuta2611 You got me thinking... I hadn't actually used it, but rather read some stuff and watched a few reviews, but never actually installed it, so I did, and I played around and got it all sorted... except for clickable workspaces. Tried adding to the config, tried the wayland-hyprland-git install, and apparently it's a known issue that no one is currently actively working on, so... another dead end. But! I did get a better idea of config structure and css files. Might play around with eww. Give it a fair shake too.

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

      That part where you said you're "just a guy who likes to play with [bleep] that's way beyond his actual skill set" got me. I went, oh look, a fellow adventurer like me 😂

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

      @@woodygilson3465 The clickable workspaces thing is in the Hyprland wiki. Eww is really cool but it has its learning curve tho

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

    Hyperland needs:
    - Pinned windows should be able to go to fullscreen if needed! Currently they are not.
    - Pinned windows are also always on top. Always on top should be a seperate option for windows.
    - Since there is touch gesture support: There should be mouse gesture support as well like easystroke does for X. Hot corners/edges should be included as well.
    - Floating windows should be able to get wobbly. A slightly wobbly effect while moving windwos around just feels better.
    The current stuff is nice! Hyprland got me to use Wayland more seriously. But I still need mouse gestures as well!

  • @paultapping9510
    @paultapping9510 3 หลายเดือนก่อน

    pywal + hypr + waybar is such a lovely setup. nicest looking and behaving desktop I've ever had by far.

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

    As you know, I love Hyprland... it's an awesome Wayland Manager, and quickly becoming my favorite Window Compositor... :P OH, and the gestures work FAN-TAS-TIC!

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

    In terms of turning the monitors off automatically, apparently the "official" way is to use swayidle and then execute "hyprctl dispatch dpms on/off". If you want my exact config, this is what I put in my hyprland.conf:
    exec-once = swayidle -w timeout 300 "hyprctl dispatch dpms off" resume "hyprctl dispatch dpms on"
    Additionally, I too, hate waybar, and have been trying to configure Eww to my liking, but I too, find it incredibly confusing. Going to try and stick with it though, so we'll see how it goes.

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

      Yeah, I had that, but it didn't work with both monitors. I did read the docs

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

      @The Linux Cast Huh. Strange. I've had no issues personally with either of my monitors. The only thing I can think of is that you have all of your monitors explicitly configured in the hyprland.conf file. Other than that, both of them are plugged in via display port, so that might also be part of it. Hopefully you figure out a solution though!

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

    Great video. Thanks. I’m using Qtille on my machines and I’m super happy with my setup. Where do you see the biggest differences and benefits of Hyprland and Wayland compared to Qtile, Xmonad, etc.

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

    You don't like Waybar... Just because of the syntax config?

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

      based tbh

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

      its terrible

    • @afterschool2594
      @afterschool2594 10 หลายเดือนก่อน +3

      That makes sense, how can you like software that's configurable but hard to configure

    • @mathisbuilder
      @mathisbuilder 10 หลายเดือนก่อน

      @@afterschool2594 waybar is so easy to configure.

    • @mikerollin4073
      @mikerollin4073 7 หลายเดือนก่อน +4

      Syntax is UI of config if u think about it

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

    I Like your new thumbnails. Pretty neat!

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

    Would love to see a scratchpad with a drop-down menu for window restoration.

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

    I wasn't ready for Hyperland because I don't get on with Wayland. However, I did install Hypr under X11 and quite liked it. Sadly it hasn't seen any updates in over a year.

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

    I like somebar which is Wayland DWM like bar. ( It probably doesn't work on hyprland 😶 )

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

    you can have more than one scratchpad, i use hyprland and literally have 10

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

    Digging the intro bud

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

    Hyprland > everything

    • @mathisbuilder
      @mathisbuilder 9 หลายเดือนก่อน +1

      @@darthvader1191 Name one wm/compositor that's better

    • @kemo_-ks6pk
      @kemo_-ks6pk 8 หลายเดือนก่อน

      Yo the night and day theme guy

    • @mathisbuilder
      @mathisbuilder 8 หลายเดือนก่อน

      @@kemo_-ks6pk It's me!

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

    What font is being used here? I'm absolutely in love with it

  • @Bruces-Eclectic-World
    @Bruces-Eclectic-World ปีที่แล้ว

    Well you were more positive than I thought you were going to. Good for you! 👍
    The monitor thing would drive me nuts as well. Still I will not be trying this at all...
    LLAP 🖖

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

    What about the dialog boxes? I had a very bad experience with i3wm when using Android Studio

  • @davidprock904
    @davidprock904 8 หลายเดือนก่อน

    have you checked it out 8 months later? aka what about today, latest situation

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

    What is the purpose of the bar? I have mine hidden, unless I press my modkey and shift, i.e. never, except when I ask for it. I prefer more space. What data is important to have always? Am I missing something, or are we just different?

    • @no_name4796
      @no_name4796 2 หลายเดือนก่อน

      For me personally knowing what workspace i am on, the volume of the audio, the battery left, the current time, if computer is connected to the internet, and how bright my monitor is, are all thing is really need to always have on.
      If i need more space, i just fullscreen the window (also waybar takes like 20 or 30 pixels, you can give up 30 pixels...)

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

    to me, it's unnecessarily fancy. i hate bars and animations, i don!t use them on windows, android and linux. never. and like you said, animations, of course, can be turned off, but they are big part of hyprland's character. so instead of using hyprland without animations, using something else makes more sense.

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

    Hyprland

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

    I might be late and maybe this wasn't available when this video was released but using a special workspace can act like a scratchpad. You can have multiple special workspaces so i have one as a scratchpad and a couple others act like virtual desktops all keybinded. And about the JSON format for the waybar config, it is messy but I don't think it should be changed. The nice thing about JSON in general is that you read and write values very easily in programming/scripting languages like Python because the libraries that manipulate JSON strings turn them into dictionaries, which is a very intuitive and powerful data structure. I think for the sake of automatic scripts, the config should stay as a JSON format.

    • @no_name4796
      @no_name4796 2 หลายเดือนก่อน

      The thing about turning json into dictionaries could be easily be done in other ways.
      The only reason json is used, is because it's used everywhere, so it's easy to find tools to work with it (like jq)
      But honestly it's a pain in the ass. I fucking hate the comma. 99% of the times waybar fails to start it's because i forgot a comma

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

    You are not alone. I use scratchpads more or less like you do. On i3. Ranger, mc, cmus, a vim-scratchpad, calculator, qcopy, keepassxc and like you two different terminals.

  • @ЕгорЕгоров-о1ю
    @ЕгорЕгоров-о1ю ปีที่แล้ว +3

    Hypr is ok. But other options are better (dwm, qtile, awesome etc.). Animations are fancy but useless because 1 frame "animations" is the best way to use twm.

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

    I'm using Hyprland on my Laptop it is great. How do you animate the border color? The only thing I don't like is the waybar stuff. It is annoying to change anything.

    • @no_name4796
      @no_name4796 2 หลายเดือนก่อน

      True. I just looked up some waybar config online, found one i like enough, tweaks few things to make it work
      Yeah ironic how waybar is 10 times harder to configurate compared to hyprland.

  • @Falsechicken
    @Falsechicken 8 หลายเดือนก่อน

    I use Sway and that focus following mouse thing drove me nuts. Eventually I looked up how to turn it off. The problem is I use a wired mouse so when I let it go sometimes it would move due to tension or spring action from the cord and it would focus another window right before I start typing. Probably took me to like the 200th time of that happening before I looked up how to stop it in a rage.

    • @no_name4796
      @no_name4796 2 หลายเดือนก่อน

      It's literally one line of setting a variable to equal a value to disable it.
      And you can easily just find it in the wiki (wiki is top tier)

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

    i like and understand your video and though I'm new to linux and Hyprland however from what I can tell you haven't spent enough time in Hyprland and most of what you consider "bad" (couple of exceptions that are legit) are on you and you have not put in the time or effort to set it up correctly for you ... but what do I know. I use arch BTW (hand rolled/install)

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

    Well...I have around 18-22 scratchpads being used at the same time at any given moment. Who's the king now? 🤣

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

    If you aren't a fan of waybar, you could try out eww as your status bar instead, that generally gave me better results.

  • @alexandruc.5128
    @alexandruc.5128 หลายเดือนก่อน

    Does Hyprland support stacking/floating mode?

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

      You mean monocle mode? It does do floating, but you have to create rules to do it. IDK if it will make that default behavior for every client or nt

    • @alexandruc.5128
      @alexandruc.5128 หลายเดือนก่อน

      @@TheLinuxCast will have to read through their docs I guess. It's not explicitly mentioned anywhere "public". I'm looking to switch to Wayland but I don't like tiling all that much. Doesn't fit my workflow. But somehow the only decent compositors are all tiling :))

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

      @@alexandruc.5128 There is a Wm called labwc that is all floating. It doesn't have the fancy animations of Hyprland, but it is wayland. It is similar to openbox
      github.com/labwc/labwc

    • @alexandruc.5128
      @alexandruc.5128 หลายเดือนก่อน

      @@TheLinuxCast thanks! I'll check it out

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

    Argh I thought it was configured in Lua and was thus considering it for when I switch to Wayland

  • @sv5ar
    @sv5ar 8 หลายเดือนก่อน

    I even don’t know how to close a window😂😂

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

    if this was a how-to it would get 10x or even 100x views

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

    Wayland Unstable

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

    Never liked the “screenfetch on open terminal” thing. Makes the terminal window feel cluttered, and I don’t need to see that info constantly. Random retro pixel art or something might be more interesting, but overall I prefer a clean blank terminal.
    The scratchpad issue sounds pretty niche. Never even heard of such a functionality.
    Overall thoughts: Hyprland’s interesting, but for me not worth wasting time on until there are distros supporting it out of the box.

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

      I do it because I make videos and keeps people from asking questions like "what window manager are you using?"

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

      In you're talking tiling window managers in general I wouldn't say scratchpads are niche. Imo they're one of the coolest features and a must have. Depending on your workflow having a window manager that uses scratchpads the way you like could be one of the more important factors when choosing a wm.

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

      @@sprtwlf9314 used TWM for years and never heard of them, but thanks I’ll look into it. Always fun to learn something new.

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

    GVM

  • @Aoitori365
    @Aoitori365 10 หลายเดือนก่อน

    it is not a wayland problem it is a you problem because you are so stuck on xorg that you do not want to look for alternative wayland native software

  • @unclefester9113
    @unclefester9113 11 หลายเดือนก่อน +1

    I've watched dozens of Hyperland videos..... From the look of it - Hyper is a steep steep learning curve. I doubt my skill set and patience level will be a match for trying to set this up. Maybe in a year or two..... It will be built in as a choice in Distros. But not today. Today... I'll go away with just a little bit of desktop envy. Meh..... I have other things to do.

  • @Ja.KooLit
    @Ja.KooLit ปีที่แล้ว +2

    yes... Hyprland is very good...

  • @RM-hn6ir
    @RM-hn6ir ปีที่แล้ว

    Do LabWC

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

    What is a scratchpad, how do y’all use those in 2023?

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

      th-cam.com/video/72ccdlOWe20/w-d-xo.html

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

    OMG here we go again about json... What is so difficult about following a few simple rules about writing it? I understand you want to use configs where you can write messy indentations and do not think about proper syntax but it is not that hard to use proper structure of json and yaml

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

      I can't help if I don't like something.

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

      @@TheLinuxCast That is very understandable. But it's important to provide specific reasons when expressing dislike for a program, rather than solely referencing their config written in a popular format. Understand that json and yaml are sometimes used and preferred due to their familiarity, and it is important to recognize that personal preferences should not influence the content of a video this much and this often.

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

      Writing json by hand sucks. The (original) point of json was for data serialization/deserialization between applications while being more readable than xml and csv, plus the spec makes it fairly easy to write a parser (eg. no comments). Thats why many subsets have popped up. Yaml is better for writing by hand but the syntax is more complex and it's harder to write a parser for, also there are multiple ways of doing the same thing which results in fragmented opinions on best practices. Toml is ok but doesn't scale very well in many instances, its also a more complex spec. Json is a dead-simple spec but as a result you have to type shitloads of quotations, commas, and brackets.

  • @Little-bird-told-me
    @Little-bird-told-me ปีที่แล้ว

    Hyprland supports (unofficially) Nvidia, Sway hate Nvidia

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

    Well, it was interesting up until the "I don't like JSON" rant. Like come on...

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

    Nah this one video is not deep enough please do your own research

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

      Look up the words 'First Look'.

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

    40 year old man using a transphobic 21 year old's wayland compositor?!?!

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

      Am I supposed to know everyone's politics? Or care? Nope. You go fight that fight.

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

      @@TheLinuxCast it was a fucking joke lmao

    • @paultapping9510
      @paultapping9510 3 หลายเดือนก่อน

      thank you for being the first person to actually say what the problem with vaxry actually is. I've been wondering for ages, and everyone dances around it.

    • @MetricsOfMeaning
      @MetricsOfMeaning หลายเดือนก่อน

      If he’s transphobic that makes this even better

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

    I dont like tiling window managers because they are not productive overall. If we want 4+ apps in one workspace like a regular user, it F up all the size configs and display content inside the apps.
    Also I support Gnome window manager, Canocical is best company in world because we have solved multiple issues with Linux without the help of "larger" community. We worked on these issues despite resistance from many people. But guess what, right now most Ubuntu users are really happy with Snaps. Infact many people are request wider support of apps under snaps. Canonical has enabled revolution in desktop & server linux realms. We have pushed the community despite a narrow minded community like even yourself is biased against Canonical and Ubuntu. Ubuntu is the only desktop that everyone enjoys. Its the most usable and adopted distro. Numbers speak for itself. Period.

    • @bladman9700
      @bladman9700 ปีที่แล้ว +10

      it's personal preference dude, if you dont like tiling wms then k.. no need to announce it to everyone.

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

      you say Snaps like Flatpaks don't exist

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

      "I dont like tiling window managers because they are not productive overall." If you don't know how to use one.

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

      I don't know if you're a troll, being by the content or by your pseudonym mimicking a known clown but 'll respond to you : there is nothing more productive than a tiling windows manager, being for customizing every aspect you want AS YOU WISH for your workflow, extensive key bindings, everything centered around the keyboard, everything scriptable, managing workspace very efficiently, managing Windows efficiently, backing up your whole workflow from simply backing up your confing.
      And for your point about those 4 windows in the same workspace well learn the concept of vertical and horizontal tabs, or just put them in different workspaces since you're not wanting to see them simultaneously, your point doesn't even make sense and you just seem to lack basic knowledge.
      Yeah I've just responded to a low IQ troll but whatever.

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

      ​​​@@mathisbuilder It's funny because their arguments could apply to Windows vs Linux, they just don't want to learn new things and thus criticize those, most of them never touched a tiling wm and it's obvious by their arguments, it's clownish

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

    as far as scratchpads I use this script I wrote called pidtoggler (could be cleaned up and probably missing edge cases but works for me)
    ```#!/bin/bash
    DIR="/tmp/pidtoggler/"
    mkdir -p $DIR
    FILENAME=$(echo $1 | tr ' ' '.' | tr '/' '.')
    FILE="$DIR""$FILENAME"
    touch $FILE
    PGID=$(cat $FILE)
    if [ -s $FILE ] && [[ "$(pgrep -g $PGID)" != "" ]]; then
    if ! pgrep -g $PGID pidtoggler > /dev/null; then
    ps -o pgid= $$ > $FILE
    $1
    notify-send "Replaced stale pidtoggler file. Delete this"
    fi
    else
    ps -o pgid= $$ > $FILE
    $1
    fi```
    and binds like this in my config
    `bind = SUPER, M, exec, [workspace special:ncmpcpp] foot zsh -i -c "hyprctl dispatch togglespecialworkspace ncmpcpp > /dev/null; pidtoggler ncmpcpp"`
    and you can have as many as you want