Work in progress GBATemp notifier written in 100% bash

Discussion in 'General Off-Topic Chat' started by MarcusD, Dec 24, 2015.

  1. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,172
    2,302
    Oct 16, 2015
    Hungary
    a pixel between life and death
    It's nothing fancy, just a generic notifier script written in 100% bash :P What do I mean by that? It only uses builtin binaries like curl, sed, grep, tr, and xargs :teach:

    Screenshots

    Note: I don't want to take others' ideas, I saw @gudenaurock working on a GBATemp notifier too, but seeing its style I think it's Windows-only, so I made something similar for Linux systems :D

    Also, happy christmas!
     
    Last edited by MarcusD, Dec 24, 2015
    cearp, Xenon Hacks and Jack_Sparrow like this.
  2. VinsCool

    VinsCool Delusional

    Member
    GBAtemp Patron
    VinsCool is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,712
    27,756
    Jan 7, 2014
    Canada
    Another World
    Is there a possible .bat port? or it's not that simple?
     
  3. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,172
    2,302
    Oct 16, 2015
    Hungary
    a pixel between life and death
    It's not really possible xD Only if you have msys/cygwin + a notify-send port, only then.
     
    VinsCool likes this.
  4. Ridge

    Ridge The Queen Anemone

    Member
    371
    289
    Sep 10, 2015
    Norway
    Lunatea
    This is really cool! Nice work :yay:
     
  5. Ammako

    Ammako GBAtemp Guru

    Member
    6,406
    3,540
    Dec 22, 2009
    Canada
    Interesting
    Personally I always have a GBAtemp tab up so if I get a notification, I see it right away anyway. But this could be good for people who really want to keep track of their notifications and won't be keeping their internet browser up very often.
     
  6. Lucar

    Lucar Professional Ferret

    Member
    499
    1,015
    Sep 12, 2015
    Canada
    New Donk City
    Or for people like me who are fucking autistic and don't notice the small notification box in the page itself or the icon in the userbar or the tab icon changing

    i know it's not just me
     
    Tomato Hentai likes this.
  7. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,400
    5,844
    Apr 20, 2015
    United States
    Tigard, OR
    if you have a mobile device, you can get notifications to it. http://i.imgur.com/z2MYfgF.jpg
     
  8. Lucar

    Lucar Professional Ferret

    Member
    499
    1,015
    Sep 12, 2015
    Canada
    New Donk City
    Nope, Windows 10/Mac OS X Yosemite.
     
  9. SomeGamer

    SomeGamer GBAtemp Guru

    Member
    5,752
    2,703
    Dec 19, 2014
    Hungary
    I think he meant not with this software, but with Tapatalk.
     
  10. Lucar

    Lucar Professional Ferret

    Member
    499
    1,015
    Sep 12, 2015
    Canada
    New Donk City
    I know, and I'm saying that those two OS are the ones I use to browse GBATemp most often.
     
    SomeGamer likes this.
  11. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,400
    5,844
    Apr 20, 2015
    United States
    Tigard, OR
    and I never stated that I use iOS for browsing that much, only notifications...
     
  12. Duo8

    Duo8 I don't like video games

    Member
    3,440
    1,139
    Jul 16, 2013
    duo8@PC-HNW:~$ curl
    The program 'curl' is currently not installed. You can install it by typing:
    sudo apt-get install curl


    Uh huh. "Built in".
    The others are also not bulit-in bash functions.
     
  13. MarcusD
    OP

    MarcusD nobody's hero

    Member
    1,172
    2,302
    Oct 16, 2015
    Hungary
    a pixel between life and death
    These binaries are built-in for me :P But yeah, you are right too, now every distro has these binaries preinstalled. What should I change the title to then? The title is perfectly accurate for my setup.
     
  14. Duo8

    Duo8 I don't like video games

    Member
    3,440
    1,139
    Jul 16, 2013
    The script should check for the needed programs, and tell the user to install them if they don't have it. Better yet, package the script and add them as dependencies.

    I use ubuntu, which does not come with curl.
     
    Ammako and MarcusD like this.