Linux - Member Desktop ScreenshotsThis forum is for the discussion and display of Linux Desktop screenshots. Please remember that many members browse LQ from work, so NSFW screenshots are not appropriate.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In a terminal the commands work, with sudo, but It won't display. Any thoughts?
Thank you, Regards Glenn
I think chmod will come to your rescue ... (chmod +x /var/log/messages) Although your line works perfectly for me and /var/log/messages is root: owned - root: read-write
I caught the "log messages" bug from JuseBox on the ARCH forums. Neat idea ... I made a "full screen" conky in a window (open it - read it - close it) with various log files
I added an "-s" so it would break at spaces vs in the middle of words:
Also, if you want to break at spaces with fold, use the -s option...ie fold -sw50
mumble mumble ... I just take tooooooooo long with my three finger typing ... and got carried away anyway....
Sad thing with the Ubuntu forums being down.
You should join the CrunchBang forums as well, your name is all over the conky thread there ... of course I'm quoting you and showing your work in the Monster Conky Thread quite often.
I'm sure people would appreciate your wisdom, and it's like the Ubuntu conky thread, people from all different distros are there talking conky.
I have never (I can't remember...) been able to view the system logs as described. Sux to be me!(?)
Anyway the conkys are working (thank you Very Much!), They look similar to what you have seen here.
Cheers, Glenn
Here's the code.
System Conky
~/.conky/system/conky.conf
Code:
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono-8
# Text alpha when using Xft
xftalpha 0.65
# Update interval in seconds
update_interval 0.50
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_argb_visual true
own_window_argb_value 0
own_window_type desktop
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 230
maximum_width 320
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no # amplifies text
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border width
border_width 0
# Text alignment, other possible values are commented
# tr - top right
# tl - top left
# tm - top middle
# br - bottom right
# bl - bottom left
# bm - bottom middle
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 10
gap_y 25
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# pad the % outputs to two places, and use short units
short_units yes
pad_percents 2
# increase buffer size 256=default
text_buffer_size 1024
# lines after 'TEXT' will be formatted on screen
TEXT
${color #dc0e0e}System: ${hr 2}$color
${color}${pre_exec whoami} @ $nodename: $sysname, $kernel on $machine
${color white}${pre_exec sudo dmidecode --type baseboard | grep 'Product' | cut -d' ' -f3-} by ${pre_exec sudo dmidecode --type baseboard | grep 'Manufacturer' | cut -d' ' -f2-}
Uptime:${color green}$uptime
${color white}${time %A %B %e, %G} ${color green}${time %I:%M:%S}${time %p} ${time %Z}
${color white}Processes:${color green} $processes ${color white}Running:${color green} $running_processes ${color white}
${color orange}Cpu: ${hr 1}$color
${color white}CPU Temp:${color green}${exec sensors | grep -n 'temp1' | sed -n 2p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'}
${color white}CPU Usage:${color green}${cpu cpu0}% ${color #DFDFDF}${cpubar}
${color white}${pre_exec sudo dmidecode --type processor | grep 'Current Speed' | cut -d' ' -f3-} on ${pre_exec sudo dmidecode --type processor | grep 'Version' | cut -d' ' -f2-}
${color #dc0e0e}Graphics: ${hr 2}$color
${color white}GPU Freq:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCurrentProcessorClockFreqs | sed -n 2p} MHz
${color white}GPU Mem: Used:${alignr}${color green}${execi 5 nvidia-settings -t -q UsedDedicatedGPUMemory} Mb
${color white}GPU Temp:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCoreTemp | sed -n 2p} °C
${color cyan}Cooling: ${hr 1}$color
${color white}Noctua NH-U12P-se2:${alignr}${color green}${exec sensors | grep -n 'fan1' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Top Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan2' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Rear Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan3' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}Front Case Fan:${alignr}${color green}${exec sensors | grep -n 'fan4' | awk -F'+' '{print $1}' | awk -F' ' '{print $2}'} rpm
${color white}GPU Fan:${alignr}${color green}${execi 5 nvidia-settings -t -q GPUCurrentFanSpeed} %
${color orange}Disks: ${hr 2}${color}
${color} /dev/sdb5 ${color}(${fs_type /}) /: ${alignr} /dev/sdb6 ${color}(${fs_type /home}) /home:
${fs_used /} used of ${fs_size /} ${alignr} ${fs_used /home} used of ${fs_size /home}
Disk I/O - ${color green}${diskio /dev/sdb5} ${color white}${alignr} Disk I/O - ${color green}${diskio /dev/sdb6}
${color #dc0e0e}Memory: ${hr 2}$color
${color white}RAM used:${color green} $memperc% ($mem/$memmax)
${color #DFDFDF}${membar 6}$color
${color white}Swap used:${color green} $swapperc% ($swap/$swapmax)
${color #DFDFDF}${swapbar 6}$color
${color orange}Networking: ${hr 2}${color}
${color green}Dynamic public IP address: ${color white}${execi 3600 curl ifconfig.me}
${color green}IP: ${color white}${addr eth0} ${color green}Gateway: ${color white}${gw_ip eth0}
${color green}Down:${color cyan} ${downspeed eth0} kb/s${color green} ${alignr}Up:${color cyan} ${upspeed eth0} kb/s
${color}${downspeedgraph eth0 25,140 ff0000 0000ec}${alignr}${upspeedgraph eth0 25,140 0000ff ec0000}
Connections in:${color green} ${tcp_portmon 1 32767 count}${color} Connections out:${color green} ${tcp_portmon 32768 61000 count}${color} Total:${color} ${tcp_portmon 1 65535 count}
${color orange} Inbound Connection ${alignr} Local Service/Port
${color} ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${color orange} Outbound Connection ${alignr} Remote Service/Port${color}
${color} ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${color #dc0e0e}Top: ${hr 1}$color
${color}Name PID CPU% MEM%
${color yellow} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color}Mem usage
${color yellow} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color #dc0e0e}News headlines: ${hr 2}:${color}
${color #7f8ed3}${execi 300 /home/glenn/.conky/system/conky-rss.sh http://rss.slashdot.org/Slashdot/slashdot 8 2}
${color orange}Syslog: ${hr 2}${color}
${color yellow}${execi 30 sudo tail -n3 /var/log/messages | fold -sw50}
slash-dot headlines
~/.conky/system/conky-rss.sh (not the best name...should be slashdot-rss.sh!)
Code:
#!/bin/bash
# RSS Display Script by Bill Woodford (admin@sdesign.us) v1.0
#
# This script is designed to output story titles for most any RSS Feed.
#
# This script depends on curl. Please ensure it is installed and in your $PATH
# Gentoo: emerge -av net-misc/curl
# Debian: apt-get install curl
# Homepage: http://curl.haxx.se/
#
# Usage:
# .conkyrc: ${execi [time] /path/to/script/conky-rss.sh URI LINES TITLENUM}
# URI = Location of feed, ex. http://www.gentoo.org/rdf/en/glsa-index.rdf
# LINES = How many titles to display (default 5)
# TITLENUM = How many times the title of the feed itself is specified, usually 1 or 2 (default 2)
#
# Usage Example
# ${execi 300 sudo /home/youruser/scripts/conky-rss.sh http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss 4 2}
#RSS Setup - Don't change unless you want these values hard-coded!
uri=$1 #URI of RSS Feed
lines=$2 #Number of headlines
titlenum=$3 #Number of extra titles
#Script start
#Require a uri, as a minimum
if [[ "$uri" == "" ]]; then
echo "No URI specified, cannot continue!" >&2
echo "Please read script for more information" >&2
else
#Set defaults if none specified
if [[ $lines == "" ]]; then lines=5 ; fi
if [[ $titlenum == "" ]]; then titlenum=2 ; fi
#The actual work
curl -s --connect-timeout 30 $uri |\
sed -e 's/<\/title>/\n/g' |\
grep -o '<title>.*' |\
sed -e 's/<title>//' |\
head -n $(($lines + $titlenum)) |\
tail -n $(($lines))
fi
I leave the comments here if they are usefull to someone else.
Surf Conky
~/.conky/surf/conky.conf
Code:
background yes
update_interval 1
total_run_times 0
use_xft yes
xftfont Droid Sans:size=9
xftalpha 1.0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_argb_visual true
own_window_argb_value 0
own_window_type desktop
own_window_transparent yes
#own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
# Text alignment, other possible values are commented
# tr - top right
# tl - top left
# tm - top middle
# br - bottom right
# bl - bottom left
# bm - bottom middle
alignment tl
gap_y 10
gap_x 1936
default_shade_color grey
default_outline_color black
default_color 000000
use_spacer none
no_buffers yes
uppercase no
color1 F8DF58
text_buffer_size 512
override_utf8_locale yes
minimum_size 600 260
maximum_width 600
max_specials 1024
max_user_text 4000
imlib_cache_size 0
border_inner_margin 5
border_outer_margin 3
border_width 3
TEXT
${execi 3600 curl --retry 4 "http://www.swellnet.com.au/reports/surfers-paradise/daily" | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed '/^$/d' > ~/.conky/surf/surf.txt}
${execi 3600 ~/.conky/surf/get/wget_seabreeze}
${image ~/.conky/surf/get/.seabreeze.png -p 0,0}
${color white}${voffset 230}${font size=12}Surf Report: ${color white}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 1 "Effective from:" | tail -n1}${color white}${alignr 10}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 1 "Rating:" | sed ':a;N;$!ba;s/\n/ /g'}${font}
${voffset -10}${hr 2}
${color white}${execi 3600 cat ~/.conky/surf/surf.txt | grep -A 2 "Rating:" | tail -n1 | fold -sw86}
~/.conky/surf/get/wget_seabreeze
Code:
#!/bin/bash
cd /home/glenn/.conky/surf/get
wget -O index.html http://www.seabreeze.com.au/graphs/qld.asp
grep rgg.png .f1>.f2
sed -i 's/"/\n/g' .f2
sed -i 's/?/\n/g' .f2
grep .png .f2>.f3
sed -i "1s/^/http\:\/\/www\.seabreeze\.com\.au/" .f3
i=$(sed -n '1p' .f3)
wget -O ./.seabreeze.png $i
Cheers, Glenn
Last edited by GlennsPref; 07-25-2013 at 01:45 AM.
Reason: remove some #comments, reload 2 .png's :-)
The rest of the script relies on interacting with the .f1 file which you are now not creating.
This script was written for me a few years ago because the last part of the image address
was forever changing and I didn't know how to download it.
eg the current address is (from the browser right click > copy image address)...
The numbered ending changes hourly, so the script was used to download the site source
and then isolate the correct image address to download the latest image.
Due to the fact that your script is still working, it appears you don't need the ending
to take you to the latest image...
IE using the latest image address
Another new conky .... Today I made an appointment to have my eyes checked.
I'm forgetful ... when I say 'my forgetter is getting better' I'm usually joking, but I do tend to forget some things so today I wrote a neat (opinion) little conky to remind me of things.
It has the ability so show nothing until the right day, or show a 'note' with an "in x days" and on the day of the event show what's what:
On the left is the code that shows nothing until the day of the reminder, I put a couple of ${membar 0,100} commands in there to show it's really running.
On the right is the reminder as if it was today.
The code is easy enough.
On the left - shows nothing until the day:
Code:
update_interval 1
TEXT
${alignc}${membar 0,100}
${if_match "${time %x}"=="12/12/13"}${alignc}${color5}Eyes today${color}
${alignc}12/12/13 @ 14:00
${alignc}be 15 min early.
${alignc}V. del Pino 2458 1st Fl.
${alignc}Dra. Reijana${else}${endif}
${alignc}${membar 0,100}
and in the centre:
Code:
update_interval 1
TEXT
${if_match "${time %x}"=="12/12/13"}${alignc}${color5}Eyes today${color}
${alignc}12/12/13 @ 14:00
${alignc}be 15 min early.
${alignc}V. del Pino 2458 1st Fl.
${alignc}Dra. Reijana${else}${alignc}${color5}Eyes in ${exec conkyDaysDiff 20131212} days${color}
${goto 15}${color1}SU MO ${color5}Dec 2013${color1} FR SA
${goto 15}${color1}${execpi 86400 FLAR=`date +12`; ncal -bh -m12 2013 | sed '2d' | sed -e '1d' -e 's/\<'$FLAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 15}/g'}${endif}${color}
Now I have to remember to add it to my autostart script. :lol: :lol: :lol:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.