Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
ShortyDK85, Which ImageMagick source did you use to compile ImageMagick?

Which source I used to compile? Not sure I understand your question, but I downloaded the program from ImageMagicks homepage and installed it through Terminal.
 
Which source I used to compile? Not sure I understand your question, but I downloaded the program from ImageMagicks homepage and installed it through Terminal.

Did you use the Binary release or the unix source from here

it is better off using the sudo to build and install any sources through terminal if you didn't. But if you haven't installed it correctly you would have uninstall it and to reinstall it


here the commands to uninstall

Code:
sudo uninstall
sudo clean
 
Did you use the Binary release or the unix source from here

it is better off using the sudo to build and install any sources through terminal if you didn't. But if you haven't installed it correctly you would have uninstall it and to reinstall it


here the commands to uninstall

Code:
sudo uninstall
sudo clean
I believe I installed it correctly... I have to admit, I can't remember where I got the install files from on IMs website, but I managed to create a test.png through terminal after installing it, so I would believe it is operational...
 
I know, right... Although, when we created the image in post 3427, we did it in Terminal rather than through a code in GeekTool. I have tried to use your code in a shell with GeekTool, but when enabling "Status Feedback", the indicator is red. Furthermore, I tried searching for the file it is supposed to create, "label.png" and it is nowhere to be found :(

Crap, copy and paste error, the command before the pipe, |, didn't get pasted into my response.

This is why you were getting the red indicator and no label.png file.
Code:
[18:14:40][taco@pacos-taco-stand]$ | convert -rotate 10 -background none -fill white -pointsize 22 text:- -trim ~/label.png
-bash: syntax error near unexpected token `|'

Try this:
Code:
date | convert -rotate 10 -background none -fill white -pointsize 22 text:- -trim ~/label.png

Totally sorry about that.

----------

Did you use the Binary release or the unix source

Back in this post is where I told Shorty the info for installing ImageMagick: https://forums.macrumors.com/posts/13994487/

It's run off of a shell script that downloads the source from the ImageMagick website automatically.
 
xtacocorex > thanks for the corrected reply. I was hoping that would do the trick, but unfortunately, I still get the red circle even though I have used your corrected code:

Code:
date | convert -rotate 10 -background none -fill white -pointsize 22 text:- -trim ~/label.png
 
Just changed my desktop. It looks so awesome!
 

Attachments

  • Desktop.jpg
    Desktop.jpg
    124 KB · Views: 268
xtacocorex > thanks for the corrected reply. I was hoping that would do the trick, but unfortunately, I still get the red circle

Figured it out. Geektool 3 doesn't know about the /usr/local/bin Path. Here is what you have to do:
1 - For the command, you need to pre-pend the path to convert in the call to the command:
Code:
date | /usr/local/bin/convert -rotate 10 -background none -fill white -pointsize 22 text:- -trim ~/label.png

2 - Point an image geektool to label.png

Attaching screenshots. In the first one, disregard the < after the filename, that is a typo.

Just so everyone else knows, I've installed Geektool 3 in addition to Nerdtool so I can now debug issues with scripts and that program.
 

Attachments

  • Screen shot 2012-01-29 at 08.10.24 .jpg
    Screen shot 2012-01-29 at 08.10.24 .jpg
    894.6 KB · Views: 246
  • Screen shot 2012-01-29 at 08.10.36 .jpg
    Screen shot 2012-01-29 at 08.10.36 .jpg
    1,011.3 KB · Views: 185
I changed mine one final time, I imagine it will stay like this for quite some time. I love the minimalist appearance.
 

Attachments

  • Desktop.jpg
    Desktop.jpg
    72.6 KB · Views: 226
Figured it out. Geektool 3 doesn't know about the /usr/local/bin Path. Here is what you have to do:
1 - For the command, you need to pre-pend the path to convert in the call to the command:
Code:
date | /usr/local/bin/convert -rotate 10 -background none -fill white -pointsize 22 text:- -trim ~/label.png

2 - Point an image geektool to label.png

Attaching screenshots. In the first one, disregard the < after the filename, that is a typo.

Just so everyone else knows, I've installed Geektool 3 in addition to Nerdtool so I can now debug issues with scripts and that program.

Oh my god, corex! I freakin' love you! It finally works :D Un-freakin' believeable! Thank you sooooo much! Now I just need to find out what I need to replace to separately show the time (15:03) and the date (30/1)
 
Oh my god, corex! I freakin' love you! It finally works :D Un-freakin' believeable! Thank you sooooo much! Now I just need to find out what I need to replace to separately show the time (15:03) and the date (30/1)

If you look back to post #3539 I showed you the code that works for both nerdTool and geekTool.

Don't mean to be a smart a$$ but PAY-ATTENTION

Code:
date "+%d" |[COLOR="Red"] /usr/local/bin/convert[/COLOR] -rotate 90 -background none -fill black -font Nanum-Pen-Script-Regular -channel RGBA -blur 0x6 -pointsize 144 -density 200 label:@- -trim ~/Documents/Nerdz/date.png
 
@ xtacocorex

I'm using your Five Day Forecast V4 script, I can't figure out why the -u doesn't work to underline the headers this is what I see [4m today[Om
 
If you look back to post #3539 I showed you the code that works for both nerdTool and geekTool.

Don't mean to be a smart a$$ but PAY-ATTENTION

Code:
date "+%d" |[COLOR="Red"] /usr/local/bin/convert[/COLOR] -rotate 90 -background none -fill black -font Nanum-Pen-Script-Regular -channel RGBA -blur 0x6 -pointsize 144 -density 200 label:@- -trim ~/Documents/Nerdz/date.png

I'm sorry you feel that way, but I assure you, I tried every code I received and none of them worked, until now, so I believe I was paying attention...

Putting my attention span aside, thank you for your help and many input :)
 
Last edited:
Ladies and Gents I present to you my Hackintosh Background, using geektool... The real magic is in the lower left corner of screen 1. The HD mixup was because I recently swapped a SSD, and it was pulling the wrong info.

Screen 1


Screen 2


And my screen at work for lolz...


I made all these backgrounds, and used Geektool (especially on my Hack) to configure it the way I wanted it.


Here is the Reach BG, for free... It is a huge 2560x1440 image. Enjoy!

http://img813.imageshack.us/img813/7655/reachbg2.jpg

-TYPØ
 
Last edited:
@ xtacocorex

I'm using your Five Day Forecast V4 script, I can't figure out why the -u doesn't work to underline the headers this is what I see [4m today[Om

You need to make sure the encoding is set to ASCII and check the "colorize output" option. This allows the ASCII escape sequences to work.

----------

If you look back to post #3539 I showed you the code that works for both nerdTool and geekTool.
Code:
date "+%d" |[COLOR="Red"] /usr/local/bin/convert[/COLOR] -rotate 90 -background none -fill black -font Nanum-Pen-Script-Regular -channel RGBA -blur 0x6 -pointsize 144 -density 200 label:@- -trim ~/Documents/Nerdz/date.png

Well damn, didn't see that either. What's interesting is that you don't need to include the path to convert in Nerdtool. Odd too since Nerdtool is based on the Geektool source.
 
You need to make sure the encoding is set to ASCII and check the "colorize output" option. This allows the ASCII escape sequences to work.

o_O that works Thanks

----------


What's interesting is that you don't need to include the path to convert in Nerdtool. Odd too since Nerdtool is based on the Geektool source.

I did not know this ...... Thanks again
 
Own Quotes

I am new to Mac coming over form windows and Rainmeter. Is there a script in Geektool to use your own quotes of the day that is in a txt file rather than using one from the net?? Thanks an loving mac so far!!
 
how do i make text vertical?

ImageMagick or create an image with the text you want.

Depending on your OS version and HW (32bit or 64bit) ImageMagick is either easy or a pain to install.

A while back I posted a link to a script that will automatically install ImageMagick, but you need XCode installed in order to compile from the source.

Otherwise you can go to the ImageMagick website and download the binary for OSX there, but make sure it'll work with your system.

There is a vast set of resources on how to use ImageMagick, so it wouldn't hurt to read up on that too.

----------

I am new to Mac coming over form windows and Rainmeter. Is there a script in Geektool to use your own quotes of the day that is in a txt file rather than using one from the net?? Thanks an loving mac so far!!

Can't remember if there is a script early on in the thread that has this capability, but it wouldn't be hard to do. Have you searched through here to see if there is one?

I would write it, but I'm still working on the Ultimate Weather and the ESPN Scoreboard scripts, when I get time to actually write code.
 
I am new to Mac coming over form windows and Rainmeter. Is there a script in Geektool to use your own quotes of the day that is in a txt file rather than using one from the net?? Thanks an loving mac so far!!

Here's what I got from a google search. Looks like it's what you are looking for. Maybe not the most efficient way to do it (and I haven't tried it), but it is suppose to work. Let me know if you need some help.

Display Quotes: I have a text file called quotes.txt that lists quotes, one to a line.

GeekTool code:
Code:
osascript /Users/Jim/Documents/Scripts/quotes.scpt | fold -sw900

Applescript code for quotes.scpt

Code:
set newline to ASCII character 10
set quoteFile to "untitled:Users:Jim:Documents:Scripts:quotes.txt" as alias
open for access quoteFile
set quoteList to every paragraph of (read quoteFile)
set list_count to the count of quoteList
set pick to random number from 1 to list_count
set finalText to item pick of quoteList as string
close access quoteFile
finalText

from http://jim-wandering.blogspot.com/2010/11/high-on-geekdom-part-ii.html
you can find the AppleScript Editor in Applications/Utilities.
 
Well damn, didn't see that either. What's interesting is that you don't need to include the path to convert in Nerdtool. Odd too since Nerdtool is based on the Geektool source.

well I did run a small test to see if you need to include the path to convert, I use 3 scripts to show "month, date, and day" I removed the path to convert on the "month, and date scripts". Its been a few hours and my "month, and date scripts" hasn't updated yet, only the day script has the convert path and only the day script updated.

----------

how do i make text vertical?


as long as you have imageMagick installed

-rotate 90
 
well I did run a small test to see if you need to include the path to convert, I use 3 scripts to show "month, date, and day" I removed the path to convert on the "month, and date scripts". Its been a few hours and my "month, and date scripts" hasn't updated yet, only the day script has the convert path and only the day script updated.

Good to know.

So for anyone using ImageMagick, please include the path to convert in your script.

Seeing as I know my way around the system, I probably added /usr/local/bin to PATH on my own and forgot about it.
 
Hi, my cal command is giving me wrong dates from february 2012 onwards.

Any help would really be appreciated!
 

Attachments

  • cal.jpg
    cal.jpg
    97.4 KB · Views: 117
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.