The scripts that I am currently using minus echo commands are System Info, Battery Level/Time Remaining, Date, Time and AM/PM, Calendar (regular), RAM/Uptime, and Processes. Would this be because it is an image script, or? I use a weather image from Yahoo and during the off chance that my scripts do appear when logging in, the image is the other thing missing. Some codes (one, mainly) seem to lose or change its display when restarting or logging, such as "1 user" changing to simply "1" in a RAM/Uptime script? Would this be normal or simply a bad script? ![]() I notice that when I restart or shut down and start up that some of my scripts may either slightly relocate themselves or they will all completely disappear until refreshing in GeekTool. Is it normal for scripts such as RAM usage or CPU scripts to lag GeekTool? I am running the latest version of Snow Leopard and am using GeekTool 3. ![]() I am getting the hang of it but I have a few questions/topics that I am hoping can be answered/addressed here. I am a relatively new Mac user and I just started using GeekTool a few days ago. PEP 66.57 +0.53 my error in typing my own command, it's easy to forget the color option.Įvery time I've seen IOError 2 in Python, I've always not had the file where I thought it was supposed to be.Ĭan you post the results of ls of your ~/.Geektool directory? Can you post the actual command you are cd lsĬan you post the results of ls of your ~/.Geektool directory? Can you post the actual command you are running? Inde圎rror: list index out of python ~/bin/geektool/tickerv3.py -n ~/.Geektool/tickerlist.txt Currency was added for onthecoast, hopefully others find it cd lsĭesktop Movies Quartz-ImageUnits-GettingStarted.pdf projectsĭownloads Pictures mkdir cp ~/bin/geektool/tickerlist.txt python ~/bin/geektool/tickerv3.py ~/.Geektool/tickerlist.txtįile "/Users/taco/bin/geektool/tickerv3.py", line 64, in The new format includes a line header, 'm' for Market like the DOW Jones or NASDAQ, 's' for Stocks (still need to include their base market), and 'c' for Currency which you only enter what you are trying to compare. Print '\033.ljust(6), plist.rjust(10), clist.rjust(9), cplist.rjust(9)Īs before, here is the flat text file format (which can be as long as you want). Print "",symlist.ljust(6), plist.rjust(10), clist.rjust(9), cplist.rjust(9) # LOOK THROUGH THE STOCK FILE TO GET THE NEEDED DATA Ret = subprocess.call(cmd,shell=True,stdout=subprocess.PIPE) # THIS WORKS FOR EVERYTHING EXCEPT FOR THE BIG MARKETS # - ADDED CODE TO RESET THE TERMINAL OUTPUT TO NORMAL ON NO CHANGED STOCKS WHEN USING COLOR OUTPUT # - UPDATED REGEX FOR COMPID AS GOOGLE CHANGED THE BACKEND TO THE WEBPAGE # THIS CAUSED A CHANGE IN THE FLAT TEXT FILE TO DENOTE PARSING OPTION # - ADDED ABILITY TO GET CURRENCY EXCHANGE INFORMATION FROM GOOGLE FINANCE # - UPDATED THE FILE PATHS TO /tmp INSTEAD OF /tmp/geektool # ORIGINAL WEB PAGE PARSING FOUND ON MACRUMERS.COM FORUM Type the proper command for the script you'd like to display.# PULLS DATA FROM A LIST OF STOCKS FOR EASIER USE IN GEEKTOOL In the properties pane (black window), find the section that says "command". Install the requirements with pip install -r requirements.txt.įrom the Geektool window with the 3 icons (file, image, and shell), drag (See first system_helpers.py, and then user_cpu.py, sys_cpu.py, and disc_space.py). In order to convert the numbers for disc space and CPU into letters, I used python. To download the ARCfont, visit this page. The a in ARCfont will display as a 0% arc, the b as 2%, the c as 4%, and on up to capital A - Y to make 100%. In order to programmatically create these (and update them every 2 seconds), I used the ARCfont. ![]() Those big transparent arcs on my desktop are the current disc space being used (the outer arc) and my user (pink) and system (blue) CPU. So, I used python and beautiful soup to scrape the relevant websites for that data. However, I wanted to display the trending Github repos each day, as well as the daily pizza ingredients at one of my favorite pizza spots. You can accomplish a lot on geektool using built-in Bash functions for date, time, CPU, etc. With the help of geektool my desktop looks like this: The output can be styled using Geektool as well. Geektool is a desktop application that allows the output of any script (python, bash, etc.) to be displayed on your desktop screen.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |