Language Selection

English French German Italian Portuguese Spanish

.torsmorc

Filed under
Software

This is the skinnier version like in this screenshot:

background no
font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*

use_xft 1
xftfont Terminus :pixelsize=10
xftalpha 0.8

update_interval 5.0
own_window no
minimum_size 80 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
border_margin 2
border_width 1
default_color white
default_shade_color black
default_outline_color black
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
gap_x 5
gap_y 20
no_buffers yes
uppercase no

TEXT
${color slate grey}${time %a, }${color }${time %e %B %G}
${color slate grey}${time %Z, }${color }${time %H:%M:%S}
${stippled_hr 2 1}
${execi 40000 cal}${stippled_hr 2 1}
${color slate grey}${color }$kernel
${color slate grey}UpTime: ${color }$uptime
${stippled_hr 2 1}
${color slate grey}Net :
${color}Up :${color } ${upspeed eth0} k/s
${color}Down:${color } ${downspeed eth0} k/s ${color}
${stippled_hr 2 1}
${color slate grey}CPU :${color } $cpu%
${cpubar 3}
${color slate grey}RAM :${color } $memperc% $mem/$memmax
${membar 3}
${color slate grey}SWAP:${color } $swapperc% $swap/$swapmax
${swapbar 3}
${stippled_hr 2 1}
${color slate grey}Cpu Mem Procs ${color }
${execi 10 ps gaxo %cpu,%mem,comm | sort +0nr | head -n 5 | sed -e 's/-bin//' | sed -e 's/-media-play//'}
${stippled_hr 2 1}
${color #99CCFF}Sensors:${color}
${color grey} CPU:$color ${exec /home/s/torsmos/temp2.sh}°C${color grey}
MB:$color ${exec /home/s/torsmos/temp1.sh}°C ${color grey}
Fan:$Color ${exec /home/s/torsmos/fan2.sh} rpm

${color grey} Vcore1:$Color ${exec
/home/s/torsmos/Vcore1.sh}${color grey} V5SB: $Color ${exec /home/s/torsmos/V5sb.sh}
${color grey} VBat: $Color ${exec /home/s/torsmos/VBat.sh}${color grey} ${color grey} +3.3V: $Color${exec /home/s/torsmos/33v.sh}
${color grey} +5V: $Color ${exec /home/s/torsmos/5v.sh} ${color grey}-5V: $Color ${exec /home/s/torsmos/52v.sh}
${color grey} +12V: $Color ${exec /home/s/torsmos/12v.sh} ${color grey} -12V: $Color ${exec /home/s/torsmos/122v.sh}
${stippled_hr 2 1}
${color slate grey}root: ${color }${fs_used_perc /}% -- ${fs_size /}
${fs_bar 3 /}
${color slate grey}home: ${color }${fs_used_perc /mnt/oldhome/s}% -- ${fs_size /mnt/oldhome/s}
${fs_bar 3 /mnt/oldhome/s}
${color slate grey}archives : ${color }${fs_used_perc /mnt/hda21}% -- ${fs_size /mnt/hda21}
${fs_bar 3 /mnt/hda21}
${color slate grey}games : ${color }${fs_used_perc /mnt/local}% -- ${fs_size /mnt/local}
${fs_bar 3 /mnt/local}
${stippled_hr 2 1}
${color slate grey}Weather :${color}
${execi 900 /home/s/torsmos/tweather.sh Today}
${stippled_hr 2 1}
${color slate grey}Tomorrow :${color}
${execi 900 /home/s/torsmos/tweather.sh Tomorrow}
${stippled_hr 2 1}

those sh files

Link to text file containing some examples.

re: torsmo

In addition, here's a link to a whole slew of good torsmo info!

----
You talk the talk, but do you waddle the waddle?

.torsmorc (2)

and here's mine like shown in the monthly screenshot:

# torsmo configuration

# set to yes if you want tormo to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
font 9x15
#font *mintsmild.se*
#font -microsoft-comic sans ms -*-*-*-*-*-*-17-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont terminus-8
#xftfont Sans-8
# Text alpha when using Xft
xftalpha 0.8

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 5.0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 80 5
#minimum_size 300 5
# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 05
gap_y 20
#gap_x 25
#gap_y 05

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
#seti_dir /home/s/setiathome

TEXT
${color #99CCFF}$nodename - $sysname $kernel on $machine

${color #99CCFF}Uptime:$color $uptime
${color #99CCFF}RAM Usage:$color $mem/$memmax - $memperc% ${membar 6}
${color #99CCFF}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 6}
${color #99CCFF}CPU Usage:$color $cpu% ${cpubar 6}
${color #99CCFF}Processes:$color $processes ${color grey}Running:$color $running_processes

${color #99CCFF}Networking:
${color grey}Mails: ${color}$mails${color grey} New: ${color}$new_mails${color grey}
Up: $color${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
${color #99CCFF}Seti: ${color}${exec /home/s/torsmos/seti.sh} ${exec /home/s/torsmos/seti2.sh}
${color #99CCFF}File systems:${color}
/ $color ${fs_free /}/${fs_size /} ${fs_bar 6 /}
/home $color ${fs_free /mnt/oldhome}/ ${fs_size /mnt/oldhome} ${fs_bar 6 /mnt/oldhome}
/archives $color ${fs_free /mnt/hda21}/${fs_size /mnt/hda21} ${fs_bar 6 /mnt/hda21}
${color #99CCFF}Sensors:${color}
${color grey} CPU:$color ${exec /home/s/torsmos/temp2.sh}°C${color grey} - MB:$color ${exec /home/s/torsmos/temp1.sh}°C ${color grey} - Fan:$Color ${exec /home/s/torsmos/fan2.sh} rpm
${color grey}${exec /usr/sbin/hddtemp /dev/hda}
${color grey} Vcore1:$Color ${exec /home/s/torsmos/Vcore1.sh}${color grey} V5SB: $Color ${exec /home/s/torsmos/V5sb.sh} ${color grey} VBat:$Color ${exec /home/s/torsmos/VBat.sh}${color grey}
${color grey} +3.3V: $Color ${exec /home/s/torsmos/33v.sh} ${color grey} +5V: $Color ${exec /home/s/torsmos/5v.sh} ${color grey}-5V: $Color${exec /home/s/torsmos/52v.sh}
${color grey} +12V: $Color ${exec /home/s/torsmos/12v.sh} ${color grey} -12V: $Color ${exec /home/s/torsmos/122v.sh}

${color #99CCFF}${time %H:%M:%S} ${time %Z,} ${color #99CCFF}${time %a, }${time %B %e %G} ${color}

${color #99CCFF}Weather:${color}
${execi 1800 /home/s/torsmos/tweather.sh Today}
${color}Tomorrow:
${execi 1800 /home/s/torsmos/tweather.sh Tomorrow}

${color #99CCFF}${execi 40000 cal}

----
You talk the talk, but do you waddle the waddle?

weather.sh

#!/bin/bash
city="My City"
link=USTN0093_f.html
file=/tmp/weather.txt
location=http://weather.yahoo.com/forecast/$link

lynx -accept_all_cookies -dump $location > $file
begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`
end=`expr $begin + 40`

head -n $end $file > tmp.t
tail -n 41 tmp.t > $file

case $1 in
Today) head -n 6 $file | sed '3d' ;;
Tomorrow)
begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`
end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`
num=`expr $end - $begin - 1`
end2=`expr $begin + 7`

head -n $end2 $file > tmp.t
tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
*) exit ;;
esac

rm tmp.t
rm $file

----
You talk the talk, but do you waddle the waddle?

More in Tux Machines

Open Hardware: Raspberry Pi and Arduino

  • Introducing the Raspberry Pi Pico Microcontroller - IoT Tech Trends

    The Raspberry Pi Foundation comes through again with another innovative device. Already well-known for its series of single-board computers, the company has announced the Raspberry Pi Pico, a microcontroller that costs a shockingly low $4. Adding to the interest, the company is using its own RP2040 chip for it, meaning it’s making its own silicon, just like Apple with its M1.

  •  
  • Kernel 5.10.9 compiled for Pi4

    EasyOS for the Raspberry Pi4, version 2.6, has the 5.10.4 Linux kernel. I have now compiled the 5.10.9 kernel, that will be used in the next release of Easy.

  •  
  • Fixed compile of Samba without krb5 in OE

    EasyOS on the Pi4 does not have samba, as compile failed in OE. Yes, I could compile it in a running EasyOS on the Pi4, but would rather fix it in OE. I have a 'samba_%.bbappend' file, the main objective being to remove the 'pam' and 'krb5' dependencies. I worked on this recipe this morning. The problem is that instead of 'krb5', the internal 'heimdahl' is used, and this compiles two binaries, that are then executed during compile. The problem is that the binaries are compiled for the target system, in this case aarch64, whereas the build system is x86_64, so the binaries cannot run. OE does have a mechanism to handle this. It is possible to compile 'samba-native', that is, samba compiled to run on the build-system, and then use the two binaries from that when compile 'samba'. Fine, except that exactly how to do this is very poorly documented. The official documentation is very vague. A couple of years ago, I bought a book, "Embedded Linux Systems with the Yocto Project", but found that it also said hardly anything about this. I consider this to be an important topic, yet it seems that many OE experts don't know much about it either.

  •     
  • Arduino Blog » Turn your staircase into a flaircase with this LED system

    If you live in a house with stairs and have to traipse up and down at night, it’s best to have some sort of light that guides you. Although a cell phone can work just fine, or you could likely activate bright overhead lighting, creator MagicManu devised an automatic and progressive solution to illuminate his path instead. MagicManu’s system knows when someone is there using PIR sensors arranged at both ends, and only activates if it’s dark enough thanks to a photoresistor. The entire setup is controlled by an Arduino Nano, while two potentiometers adjust light sensitivity and duration of ignition.

Red Hat’s Disruption of CentOS Unleashes Storm of Dissent

Five weeks after angering much of the CentOS Linux developer community by unveiling controversial changes to the no-cost CentOS operating system, Red Hat has unveiled alternatives for affected users that give them several options for using existing Red Hat products. But for many users of CentOS Linux, the Red Hat options won’t solve the huge problems that were created for them when Red Hat announced Dec. 8 that CentOS would no longer include a stable version with a long, steady future. Instead, CentOS will now only be offered as a free CentOS Stream operating system which will be a rolling release with frequent updates, essentially turning it into a beta OS that is no longer suitable for reliable production workloads. For users who have deployed CentOS throughout the internet, data centers, corporate and business uses and more, this is a potentially major blow. Read more Also: Fedora program update: 2021-03

The Demise of Chromium as Free Software

  • This is why Leading Linux Distros going to remove Chromium from their Official Repositories

    Jochen Eisinger from Google team mentioned in a discussion thread that they will be banning sync support system of Chromium. This lead to lot of frustration in the Linux Dev community & rage against googles sudden decision. This Decision can kill small browser projects & lead the web to single browser monopoly i.e. Google Chrome! As a result of the googles decision multiple distros are strictly considering removal of Chromium from their official repositories. Leading distros like Arch Linux, Fedora, Debian, Slackware & OpenSUSE have stated that if the sync support goes down from google they will definitely remove chromium from their official repositories.

  • Chromium 88 removes Flash support [Ed: But DRM added]

    I uploaded a set of chromium packages to my repository today. Chromium 88.0.4324.96 sources were released two days ago. The release notes on the Google Chrome Releases Blog mention 36 security fixes with at least one being tagged as “critical” but the article does not mention that Flash support has been entirely removed from Chromium now. Adobe’s Flash was already actively being blocked for a long time and you had to consciously enable Flash content on web pages, but after Adobe discontinued Flash on 1st of January 2021 it was only a matter of time before support in web browsers would be removed as well. Let’s also briefly revisit the topic of my previous post – Google will remove access to Chrome Sync for all community builds of the open source variant of their Chrome browser: Chromium… thereby crippling it as far as I am concerned.

  • Chrome 89 Preparing To Ship With AV1 Encoder For WebRTC Usage [Ed: Massive patent trap]

    Now that Chrome 88 released, attention is turning to Chrome 89 of which an interesting technical change is the enabling of AV1 encode support within the web browser. Going back to 2018 there's been AV1 decode support within the browser when wanting to enjoy content encoded in this royalty-free, modern codec. But now for Chrome 89 is coming AV1 encode support. AV1 encode support is being added for the WebRTC use-case for real-time conferencing. Web applications like WebEx, Meet, and Duo (among others) already support using AV1 for better compression efficiency, improved low-bandwidth handling, and greater screen sharing efficiency. While hardware-based AV1 encoding isn't yet common, Chrome Linux/macOS/Windows desktop builds are adding the ability to use CPU-based AV1 encoding.

José Antonio Rey: New times, new solutions

Just as humans change, the Ubuntu community is also changing. People interact in different ways. Platforms that did not exist before are now available, and the community changes as the humans in it change as well. When we started the Local Communities project several years ago, we did it with the sole purpose of celebrating Ubuntu. The ways in which we celebrated included release parties, conferences, and gatherings in IRC. However, we have lately seen a decline in the momentum we had with regards to participation in this project. We have not done a review of the project since its inception, and inevitably, the Community Council believes that it is time to do a deep dive at how we can regain that momentum and continue getting together to celebrate Ubuntu. As such, we are putting together the Local Communities Research Committee, an independent entity overseen by the Community Council, which will help us understand the behavior of Local Community teams, how to better adapt to their needs, and to create a model that is suitable for the world we are living in today. Read more Also: Bits from Debian: New Debian Maintainers (November and December 2020)