How I made an own Window Manager in C (I'm 15)

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • This is the story of how i made the Ragnar window manager, one of my most recent projects.
    Sit back, relax and enjoy the video :)
    You can find Ragnar on GitHub here: github.com/coc...
    You can find the website of Ragnar here: ragnar-website...
    My GitHub: github.com/coc...

Комментарии • 336

  • @apoxis
    @apoxis Год назад +758

    (Don't forget he's 15)

    • @arinc9
      @arinc9 Год назад +71

      I'd like to stress this again, in case it slipped off of the mind of anyone, he's 15.

    • @vaisakhkm783
      @vaisakhkm783 Год назад +16

      @@arinc9 he always will be...

    • @its_code
      @its_code Год назад +5

      What mean by 15

    • @vaisakhkm783
      @vaisakhkm783 Год назад +8

      @@its_code 15 years old

    • @its_code
      @its_code Год назад +4

      @vaisakhkm783 which means that this tool is mede by a 15-year-old boy 👦 . 😃😀cooooool

  • @Alistar1992
    @Alistar1992 Год назад +46

    This is inspirational. At 30 years I wish I had more drive to do more projects like this. Sadly motivation dwindles a lot more than I realize.

    • @ocaseofw
      @ocaseofw Месяц назад

      This kids learns great skills at young age, I was only able to buy first PC at 24, I'm also 30 now 😅

    • @aeridoru2128
      @aeridoru2128 2 часа назад

      I kinda feel the same way while being 20. But your comment made me remember there are people older than me that would kill to be at my age. Similarly there are probably 45, 50 year olds that would kill to be your age again and start things they never did.
      P.S 30 isn't old.

  • @TheNomadsTimeCapsule
    @TheNomadsTimeCapsule Год назад +35

    Proud of you. It was amazing working with you. You really impressed me.

    • @cococry
      @cococry  Год назад +3

      Wow, thank you!

  • @henriquemarques6196
    @henriquemarques6196 Год назад +13

    great job cococry.
    there are a bunch of programmers out there that only do their work and forget about programming but you went further, that's what makes a truly good programmer.
    good luck with your journey

  • @snapman218
    @snapman218 Год назад +19

    I'm 10 and I wrote a nuclear rocket program.

  • @S.Shubham
    @S.Shubham Год назад +6

    It is impressive every single time I see or talk about the window manager! 🎉 I wish to see it growing more and more in the coming days 🔥

  • @azaleacolburn
    @azaleacolburn Год назад +4

    I’m 15 too, I wrote a C compiler in C. Glad to see there are other people out there who are also interested in computer science and programming.

    • @azaleacolburn
      @azaleacolburn Год назад

      @@gandelgerlant565Jealous much?

    • @himalayo
      @himalayo Год назад +1

      challenge you in what?

    • @hinrobalas860
      @hinrobalas860 11 месяцев назад +2

      You mean you wrote a parser??? There's no way a fu**ing 15 year old kid can write a compiler, it takes ages and requires hundreds of developers to write and optimize one. you have to be a machine to build a compiler by yourself.. parsing techniques, optimizing code, language theory, math, computer architecture... u have to master all those fields inside out each one takes at least 15 year to master .. u really should abandon computer science altogether and dive headfirst into cryptocurrency or whatever kids do now a days and never to return... after all computer science isn't a realm for self-aggrandizement.

    • @himalayo
      @himalayo 11 месяцев назад

      @@hinrobalas860 a bad compiler isn’t really that hard to write, thankfully he just wants to brag instead of making something useful

    • @azaleacolburn
      @azaleacolburn 11 месяцев назад

      ​@@hinrobalas860I haven't mastered anything, and it's not just a parser, it generates ARM64 assembly. It's not optimized at all. You don't have to master something to know how to do it. I never said I built Rust or GCC, I said I wrote a compiler. I wasn't self-aggrandizing, I was just excited to find another person my age interested in computer science. I have no interest in crypto-currency or any of that stuff, it's pretty boring and has an environmental cost we shouldn't pay. It seems like I struck a nerve, but you shouldn't go around telling people to quit what they enjoy because you feel inadequate. There're people much younger than me who've accomplished far more in fields of science and mathematics.

  • @godnyx117
    @godnyx117 Год назад +9

    "(I'm 15)" has to be one of the biggest flex in the tech community...
    Good job and thank you for sharing knowledge buddy!

    • @hermes6910
      @hermes6910 Год назад

      Today, everything is available on the net.
      It's easier than ever.
      I'm more impressed by the will than by the technical point of view.

    • @godnyx117
      @godnyx117 Год назад

      @@hermes6910 I am talking about his will to learn and share at this young age. I was playing Halo 5 when I was his age in comparison...

  • @Brisolo32
    @Brisolo32 Год назад +12

    Bro's only one year older than me and he's writing wm's on C
    But seriously, great job man

    • @stysan
      @stysan Год назад +4

      you have a year left to make a wm, good luck 💀

    • @Brisolo32
      @Brisolo32 Год назад

      @@stysan shit

    • @Spiderfffun
      @Spiderfffun 2 месяца назад

      are you making WMs yet?

    • @Brisolo32
      @Brisolo32 2 месяца назад

      @@Spiderfffun no, unfortunately

  • @Definesleepalt
    @Definesleepalt Год назад +3

    "i use arch btw" energy

  • @user-xj7ze3bv3c
    @user-xj7ze3bv3c Год назад +7

    As a 15 yr myself, you inspired me to start working on a wayland wm

    • @ten.7aku
      @ten.7aku Год назад +3

      Exactly what I thought after watching the video

    • @user-zu6wg9wt8m
      @user-zu6wg9wt8m 3 месяца назад

      same

  • @SumriseHD
    @SumriseHD Год назад +2

    You, sir, are definitely worthy of being the man who makes the temple!

  • @boody8844
    @boody8844 Год назад +6

    Props to you man, at 15 I used to make calculators with Python.

    • @Snuiper228
      @Snuiper228 Год назад

      I made at my 14 an app and now I'm earning good money for 16 boy

    • @Redyf
      @Redyf Месяц назад

      at 15 I was playing destiny all day, while this guy's making a window manager in C 😂

  • @Reddblue
    @Reddblue Год назад +6

    Dude you're actually insane, being able to make huge complete projects like this (at 15). Whilst I'm still trying to study for CCNA and only having tutorial projects done

  • @punk4wes
    @punk4wes Месяц назад

    dude this is so in-depth so freaking awesome

  • @joshk2580
    @joshk2580 Год назад +2

    I love that Terry hasn't been forgotten. Really well done bro.

  • @digitalintent
    @digitalintent 7 дней назад

    Good job kid. Keep it up. You're an inspiration. I'm 44 and still eat glue.

  • @voil6161
    @voil6161 Год назад +1

    What a chad. He even put Risen as a background music. Mad respect.

  • @JoniniTheChickenNugget
    @JoniniTheChickenNugget Год назад +6

    Coding a WM at 15 is very impressive, making a essentially complete produce with releases, various contributions, and a fully fleshed out website is a whole other level, not in difficulty necessarily but in maturity. Keep it up kid!

  • @mrbane2000
    @mrbane2000 Месяц назад

    Damn those animations and effects are super nice

  • @HypeLobbiesHD
    @HypeLobbiesHD 19 дней назад

    Hardest intro I’ve ever seen. It sent me on a 2 week hiatus of studying the entire life of terry davis until I could find where you sampled him

  • @Redyf
    @Redyf Год назад +1

    WOW, you're crazy bro. Huge respect for your work, the window manager looks really nice!

  • @shade6750
    @shade6750 Год назад +2

    That's awesome. I'm 17 but for me its a very big project

  • @stefmyt5062
    @stefmyt5062 Год назад +12

    Amazing work! You seem extremely talented, honestly doing this at 15 years old is just incredible.
    Just one question, the animations that we see in the video, are those standard in Ragnar, or are they from the compositor? (if it's picom, which fork of it?)

    • @cococry
      @cococry  Год назад +3

      its picom pijulius:)

    • @stefmyt5062
      @stefmyt5062 Год назад +2

      @@cococry Thanks, man. I wish you all the best.

  • @sandman.38
    @sandman.38 Год назад +3

    Keep it up man. I'd say your next focus should be refactoring the main file with modularization in mind in order to improve readability and maintainability over time. 🚀🌕

  • @yogakumi
    @yogakumi Год назад +1

    bro this is fckng awesome dude, props

  • @TheHanutaXD
    @TheHanutaXD 3 месяца назад

    Respekt, dich als Schülerpraktikant werden die wohl nie vergessen

  • @salzlord
    @salzlord Год назад +1

    I’m a cheat developer (And 15) and I am fucking jealous. Good job dude!

  • @andrewlamichhane1090
    @andrewlamichhane1090 Год назад +2

    Insane, Terry's music is banger

  • @dejanzabaljac6950
    @dejanzabaljac6950 Год назад

    I have noticed a "Road to Samarkand" wallpaper on the left monitor. You have great taste my young friend!
    Good job and keep it up for your own sake!

  • @redson8210
    @redson8210 11 месяцев назад

    Really cool man. Cool to see people of my age doing things I do like. Proud of you!

  • @MeraMadness
    @MeraMadness Год назад

    I'm 23 and I have a hate/love relationship with coding but this video maybe will change my mind about it

  • @RobertOSheaGameDev
    @RobertOSheaGameDev Год назад +3

    Awesome work, looks insanely good. Keep up the good work!

  • @ab.3800
    @ab.3800 Год назад

    Nice work.
    Awesome Temple OS remix song in the end too, RIP Terry

  • @abhitruechamp
    @abhitruechamp Год назад +1

    WTF dude. That's insane. I really liked you did a deep dive into the journey behind it.

  • @ahmedthebest
    @ahmedthebest 7 месяцев назад +1

    Can you please add some accessibility feature in your window Manager.
    I am a blind user and there is no any window Manager that support screen readers like orca

  • @ferretcode
    @ferretcode Год назад +1

    impressive that you did this so young but I would just like to say that you shouldn't let it get to your head if possible. I started programming pretty young and I thought I was the next best thing, but only know I realize how arrogant and egotistical I was when it came to coding. great project, it's not for me but it looks awesome

  • @Salehalanazi-7
    @Salehalanazi-7 3 месяца назад

    What an amazing man! Keep learning! you're in the 0.0001% of kids your age :) stay humble, stay hungry for learning

  • @alexanderzikal7244
    @alexanderzikal7244 3 месяца назад

    Hammer! Also das ist eine tolle Leistung!

  • @thenextpoetician6328
    @thenextpoetician6328 Год назад

    I'm old enough to be your grandfather, and I sure know when someone's miles ahead of me. :) Way to go kiddo. I have Ragnar on my backup Arco installation mostly running i3, so not at all the same workflow. Guess I'll do some tinkering.

  • @xfxpositions
    @xfxpositions Год назад +1

    that information about his age was so important

  • @matthias916
    @matthias916 Год назад

    the earlier you start learning the better, just dont get too cocky

  • @itsmefrancois6825
    @itsmefrancois6825 Год назад

    Geile Sache! Weiter so, du hast eine erfolgreiche Zukunft vor dir. Inspirierend und beeindruckend zugleich, weiter so! :)

  • @getgudcyber924
    @getgudcyber924 Год назад +4

    Great work, you’re a great programmer

  • @Valen-vn9ms
    @Valen-vn9ms Год назад +1

    good stuff Cococry!! I am making agi right now! (i'm 15 + 4)

  • @veryseriousperson_
    @veryseriousperson_ Год назад +1

    Wow, this is impressive! I will definitely use it!

  • @aghileslounis
    @aghileslounis Год назад

    Like WoW, a prodigy. You'll have a beautiful career!

  • @mitaka_78
    @mitaka_78 Год назад

    Nice!! I remember seeing your posts about xragnar a while back on Reddit

  • @canepaper967
    @canepaper967 Год назад +1

    Very impressive, also +1 for templeOS intro xD

  • @nothappyz
    @nothappyz 23 дня назад

    You are a great inspiration

  • @arnobchowdhury9641
    @arnobchowdhury9641 Год назад

    Wow! That's quite an achievement. Keep enjoying the journey.

  • @snipzmattio5887
    @snipzmattio5887 Год назад +2

    how tf do 15 y/o have so much time? Impressive wm

    • @Ghfvhvfg
      @Ghfvhvfg Год назад

      Idk im just impressed wayland is just superior For most....

  • @Hellscaped
    @Hellscaped Год назад

    just starting the video and it looks amazing. Will switch after the video.

  • @vitinho2702
    @vitinho2702 2 месяца назад

    BROOO WTF you are really good, need to test your WM rn

  • @Axenide
    @Axenide Год назад

    Amazing, really. You are awesome. :D
    (And also 15)

  • @InterDimensionalOwl
    @InterDimensionalOwl 4 месяца назад

    Congratulations; Impressive. I use Arch by the way ;)

  • @user-zu6wg9wt8m
    @user-zu6wg9wt8m 3 месяца назад

    Hi this is truly interesting! Its so cool seeing other people my age doing stuff like this id like to get into programming for OS s and systems like this but idrk how to start, like where to learn about what i have to learn if you know what i mean, basicly i dont know what i dont know in order to do stuff like this so... oof yeah im 14 and soon turning 15 it'd be nice to talk to you sometime if you have a discord channel or something!

  • @AesXsc
    @AesXsc Год назад

    King Terry would be proud

  • @balls-wc9vu
    @balls-wc9vu Год назад +5

    Kudos to you! That's awesome and I love RagnarWM.
    I'll let you into a secret: I'm an 11 year old aspiring backend developer (obviously using a different account for anonymity), and I know Python, JavaScript, Rust and C++. Any tips for learning more?

    • @negotiateashx
      @negotiateashx Год назад +4

      RUclips minimum age is 13 🤓

    • @cococry
      @cococry  Год назад +4

      use vim. that's it

    • @weaseled4118
      @weaseled4118 Год назад

      @@negotiateashx bro thats crazy I didn't know I was too old to use youtube wtf

    • @smorrow
      @smorrow Год назад

      Read the Plan 9 papers.

  • @tacokoneko
    @tacokoneko Год назад +4

    Hi this is very nice good job, I do have 1 question:
    - will there be support for "xrandr --setmonitor" commands? (i.e. like openbox and marco)
    It's completely ok and fine if that is out of scope for your project. It seems like a very good wm already.

    • @tacokoneko
      @tacokoneko Год назад +1

      Ok I actually tested ragnar on my system and I can see that it does not actually support fullscreen of anything right now, fullscreen of firefox does not enter a real fullscreen, so ragnar is unable to provide this behavior at this time so that's ok.
      This is my xrandr script for context, which *causes openbox and marco to force apps like Firefox to be fullscreen in a way that entirely fills 3 of my monitors*
      #!/bin/bash
      sleep 5
      xrandr --output DisplayPort-2 --primary --mode 2560x1440 --pos 0x100 --rotate normal --output `xrandr | grep '^HDMI.* connected' | cut -d\ -f1` --mode 1920x1080 --pos 3640x0 --rotate left --output DisplayPort-1 --mode 1920x1080 --pos 2560x0 --rotate left --output DisplayPort-0 --mode 1920x1080 --pos 4720x0 --rotate left
      xrandr --setmonitor three auto DisplayPort-0,DisplayPort-1,`xrandr | grep '^HDMI.* connected' | cut -d\ -f1`

    • @tacokoneko
      @tacokoneko Год назад

      but just so that you are aware I did test on my system by using this line in config.h and after running ragnar and my xrandr script, everything else that isn't maximizing or fullscreening like just moving windows around on the monitors in stacking mode seems to work fine.
      #define MONITOR_COUNT 4
      static const Monitor Monitors[MONITOR_COUNT] = {(Monitor){.width = 2560, .height = 1440}, (Monitor){.width = 1080, .height = 1920}, (Monitor){.width = 1080, .height = 1920}, (Monitor){.width = 1080, .height = 1920}};

    • @cococry
      @cococry  Год назад +1

      @@tacokonekobro you have to configure your monitor setup in the config. it supports fullscreen and everything you just have to configure your monitors right in config.h

    • @cococry
      @cococry  Год назад

      @@tacokonekoif you press super + f , what happens? is the window fullscreening?

    • @tacokoneko
      @tacokoneko Год назад

      @@cococry When I push super+f in Kitty or Firefox the window fills one of my PHYSICAL monitors but it doesn't fill my entire VIRTUAL monitor composed of 3 physical monitors as created by xrandr --setmonitor command (which marco and openbox window managers both respect and cause kitty and firefox to fullscreen covering all 3 monitors at the same time).
      Also I wrote my current changes to config.h in the comment above where I said "#define MONITOR_COUNT 4" etc.
      Do you have discord or matrix where I can send a lot of screenshots and pastebins of my configs?

  • @omarjab
    @omarjab Год назад

    That's amazing, you'll achieve big things if you keep working as hard as you're doing right now
    when i was 15 i could barely print a string in C ahahahha

  • @bmno.4565
    @bmno.4565 Год назад

    Love the use of the Templeof theme

  • @Metrix2024
    @Metrix2024 Год назад

    Looks good will be giving it a try, also you should make a video on how to get started with it, like changing keybindings, the bars etc

  • @Stakodron
    @Stakodron 6 месяцев назад

    great effort i like such videos.
    I like such videos because they show thing worth having are hard work and you video shows this

  • @asifzamanpls
    @asifzamanpls Год назад

    love the animations. very impressive!

  • @imnotrev
    @imnotrev 11 месяцев назад

    This dude right here is talented as heck. A 15 years old made [[his own wm]]?? Thats impressive. How do you even learn programming in the first place? (Give me some tips pls)

  • @BLUGTheK
    @BLUGTheK Год назад

    Damn i seen ragnar in r/unixporn a few time
    and now the surprise , you are 15!
    Holy fuck this make i question what i do with my life when i was 15

  • @TheLastCodebender
    @TheLastCodebender Год назад

    respect man! very impressive

  • @jesse9999999
    @jesse9999999 Год назад

    good on you man! inspiring stuff, you are killing it

  • @ycombinator765
    @ycombinator765 Год назад

    kill with skill. That's all I can think of rn. Kudos man (kid!)

  • @stysan
    @stysan 11 месяцев назад

    all jokes aside (there are 15 jokes), this is awesome

  • @isweartofuckinggod
    @isweartofuckinggod 10 месяцев назад

    I wish I were 15 so I could make stuff like this!

  • @duneer
    @duneer 9 месяцев назад +1

    damn and i’m over here struggling with basic logic gates lmfaooo, share yo secrets man i would love to hear em

    • @cococry
      @cococry  9 месяцев назад

      just grinding, no further secret

  • @missbildadkatt
    @missbildadkatt Месяц назад

    oh mein Gott es ist sehr schön

  • @alexandrohdez3982
    @alexandrohdez3982 6 месяцев назад

    wow congrat 👏👏👏👏👏

  • @lonec1777
    @lonec1777 9 месяцев назад

    "Minimal X Window manager", unintentional oxymoron

  • @anshXR
    @anshXR Год назад +1

    Bro how do you get time outside of school to work on all these big projects? Im 17 right now and barely get time for any coding whatsoever due to preparing for entrance exams and stuff. Btw what country are you from?

    • @firu2470
      @firu2470 Год назад

      He's from germany, precisely Baden Wuerttemberg (as stated in another comment here).

    • @smorrow
      @smorrow Год назад

      Yeah. He couldn't be unschooled if he's from/in Germany.

  • @qwoolrat
    @qwoolrat 10 месяцев назад

    templeos music is a nice detail

  • @stoopid_cat27
    @stoopid_cat27 Год назад +2

    Here I am 19 years old, getting tons of error while making a basic calculator ;-;

    • @Metrix2024
      @Metrix2024 Год назад +1

      lol getting errors all the time will help you to improve because you will be learning from your mistakes

    • @enricodeba5288
      @enricodeba5288 Год назад

      Same 😔

  • @adityagautam4689
    @adityagautam4689 11 месяцев назад

    1:03
    idea *tiling in your head
    welcome!

  • @a.lollipop
    @a.lollipop Год назад +2

    As someone who is also 15, this makes me so sad why can't I be this smart 😭
    Guess I gotta start working on my own Wayland compositor now that I was already planning on making so I can inflate my ego a bit 😂
    jokes aside, this looks SO cool!!! Very impressive :)

  • @KimberlyWilliamsch
    @KimberlyWilliamsch 6 месяцев назад

    Ragnar, it looks like viking or something, hmmm... I'll try it.

  • @supermayriobrother4342
    @supermayriobrother4342 Год назад

    I look forward to seeing you write your own TempleOS by the time you're 18 :)

  • @s187v
    @s187v Год назад +1

    Are you 15 by any chance

  • @_turamarth_
    @_turamarth_ 2 месяца назад

    Hi 😀 Thank you for the video 😉 Can you, please, say the distro you're using and the desktop environment ? Thank you ;)

  • @jameender
    @jameender Год назад

    Love it, keep going! (he is 15 guys)

  • @milkandhenny
    @milkandhenny 3 месяца назад

    Great work man

  • @victorgritckov1658
    @victorgritckov1658 Год назад

    for ur age this is impressing!

  • @AlexPerat
    @AlexPerat Год назад

    So cool! (and you're 15!)

  • @albertovelasquez9027
    @albertovelasquez9027 Год назад

    As a tip, consider splitting your code in multiple files, if you use like 3 or 4 files it is really easy to explictly declare them on your Makefile
    Great work

    • @smorrow
      @smorrow Год назад

      Disregard makefile, embrace Riker

    • @albertovelasquez9027
      @albertovelasquez9027 Год назад

      @@smorrow Another build system?

    • @smorrow
      @smorrow Год назад

      @@albertovelasquez9027 The last build system we'll ever need though

  • @crazyparrot2786
    @crazyparrot2786 3 месяца назад

    How did you learn video editing? What software do you use?

  • @laughingvampire7555
    @laughingvampire7555 Год назад

    back in the early 2000s when netscape collapsed and went broke because couldn't compete against microsoft, they rewrote the source code of Netscape so they could release it as open source, and they called it Mozilla, according to Brendan Eich the creator of Javascript, the name means the monster that kills Mosaic the very first browers, so no one cared about the mozilla code until a 16 year old kid made a huge update to the whole codebase, his declaration was "it was horribly organized, it was a mess so I put it in order" and the guys at netscape loved it. This was long before the days of Mozilla foundation and Firefox.

  • @theblankuser
    @theblankuser Год назад

    Making a WM at 15 is a big W fr

  • @du64
    @du64 Год назад +1

    Is that initial soundtrack a remix from TempleOS?

  • @fuzzy-02
    @fuzzy-02 2 месяца назад

    Viewer took 100 damage.
    Its super effective!

  • @IcatIcatI
    @IcatIcatI Год назад

    wow, amazing work.

  • @deleted-test
    @deleted-test 11 месяцев назад

    did you have any experience with programming prior to making ragnar?
    you've inspired me to make my own wm, and am reading the article in hopes of someday having my own wm, fit to my own likings. :)

    • @cococry
      @cococry  11 месяцев назад +1

      yeah i had programming experience of like 2-3 years with C/C++

  • @qschnitzel
    @qschnitzel Год назад

    Respekt, bin selber auch 15 und versuche im Moment auch eine WM mit Rust zusammen zu basteln (mit Wayland Support)
    Dürfte man fragen aus welchem Bundesland du kommst? Außerdem hast du echt nice Videobearbeitungsskills, freue mich auf ähnliche Videos :D

    • @cococry
      @cococry  Год назад +1

      hört sich echt nice an! ich lebe in baden württemberg :)

    • @firu2470
      @firu2470 Год назад

      Woher wusstest du dass er deutscher ist? Nur vom Akzent?

  • @craftrumzen2393
    @craftrumzen2393 Год назад

    For a 15 it's impressive to do that in C! Average 20 years old "programmers" now say how they are so good in printing Hello World in Python

    • @poizenes1414
      @poizenes1414 Год назад

      Nobody can print Hello World in Python as well as I do.

  • @luigidabro
    @luigidabro Год назад

    What distro and desktop environment are you using? Looks really good!

    • @cococry
      @cococry  Год назад

      I am using my own window manager, Ragnar and arch

    • @luigidabro
      @luigidabro Год назад

      @@cococry Thanks :)