Results 1 to 7 of 7

Thread: Linux command line screensavers?

  1. #1
    Join Date
    Dec 2007
    Location
    /dev/null
    Beans
    121

    Linux command line screensavers?

    I know already of asciiquarium, but I'm wondering what other 'screensavers' exist for the command line, and if there is a 'manager' such as xscreensaver.

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Linux command line screensavers?

    How about:
    Code:
    tr -c "[:digit:]""[!@#$%^&*()_+]" " " < /dev/urandom | dd cbs=$COLUMNS conv=lcase,unblock | GREP_COLOR="1;32" grep --color "[^ ]"

  3. #3
    Join Date
    May 2006
    Location
    Lacey, WA, USA
    Beans
    87

    Re: Linux command line screensavers?

    Quote Originally Posted by Toz View Post
    How about:
    Code:
    tr -c "[:digit:]""[!@#$%^&*()_+]" " " < /dev/urandom | dd cbs=$COLUMNS conv=lcase,unblock | GREP_COLOR="1;32" grep --color "[^ ]"
    Why don't you explain to the rest of us what this is supposed to do. Frankly, I see "dd" in there and the hair on the back of my neck stands up. I don't see any "sudo" commands in there, but still...

    Honestly, this may actually be benign, but the original poster (and anybody else looking for an ascii-based screensaver) might want to know that this is safe before running it.

    UPDATE: I don't mean to be accusatory or anything. Just don't want to see someone to lose data because of a bad joke.
    Last edited by zitch; May 9th, 2011 at 04:42 AM.

  4. #4
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Linux command line screensavers?

    Something a colleague showed me a few years back - basically a matrix-like screen saver. As I understand it.....

    Code:
    tr -c "[:digit:]""[!@#$%^&*()_+]" " " < /dev/urandom
    randomizes a string of characters

    Code:
    dd cbs=$COLUMNS conv=lcase,unblock
    recodes the stream to the terminal such that:
    - cbs = it converts terminal_width bytes at a time
    - conv = it converts upper to lower case and replaces trailing spaces with a newline

    Code:
    GREP_COLOR="1;32" grep --color "[^ ]"
    colours it green

  5. #5
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Linux command line screensavers?

    dd is just writing to standard output so there is no risk with that line, I went ahead and ran it, did about what I thought.

    Kind of cool, I wonder if there's a way to get that run after x amount of inactivity. Could that be done in your bash profile?
    Attached Images Attached Images
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  6. #6
    Join Date
    Apr 2009
    Location
    Midwest, U.S.A.
    Beans
    1,209
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Linux command line screensavers?

    Interesting, could it work with a different font?
    http://www.dafont.com/matrix-code-nfi.font
    Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
    Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
    Linux User: 498249 / Ubuntu User: 29241

  7. #7
    Join Date
    Dec 2007
    Location
    /dev/null
    Beans
    121

    Re: Linux command line screensavers?

    Quote Originally Posted by Toz View Post
    Something a colleague showed me a few years back - basically a matrix-like screen saver. As I understand it.....

    Code:
    tr -c "[:digit:]""[!@#$%^&*()_+]" " " < /dev/urandom
    randomizes a string of characters

    Code:
    dd cbs=$COLUMNS conv=lcase,unblock
    recodes the stream to the terminal such that:
    - cbs = it converts terminal_width bytes at a time
    - conv = it converts upper to lower case and replaces trailing spaces with a newline

    Code:
    GREP_COLOR="1;32" grep --color "[^ ]"
    colours it green
    I forgot to update, but I found another one- cmatrix.
    And I am also interested in one starting if the terminal is inactive for x minutes, if it's possible.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •