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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by stinkeye
Ah ok ..no probs.
I went and had lunch, come back, and its gone again.
Quote:
Originally Posted by stinkeye
To show the current user and avoid multiple instances with terminals open you could use...
Code:
${pre_exec whoami}
Changed the setting to this, saved conky.conf (I have donky.cong in my head now ) and it started working immediately. Hopefully this one wont work only when it feels like it like the old setting.
I went and had lunch, come back, and its gone again.
Changed the setting to this, saved conky.conf (I have donky.cong in my head now ) and it started working immediately. Hopefully this one wont work only when it feels like it like the old setting.
Thanks again.
Maybe $USER is popping out for a nibble as well.
The pre_exec command shouldn't give problems as it only executes once before conky displays anything and does not update.
Well seeing as this is a conky screenshot thread I may as well show the current conkys I display.
8 in total.
I use a
surf wind and weather conky
calendar conky
gmail conky
system panel conky
Then I have various conkys I toggle on/off via scripts called from a unity quicklist...
7 day wind and waves forecast conky
daily wizard ID comic conky
local surfcam conky (updates every minute or can fetch images for the last hour at 5min intervals and replay as a slideshow)
Arclance showed how to kill a specific conky which evolved into a script that can be used to
toggle any conky off/on.
toggle-any-conky
Code:
#!/bin/bash
## click to start, click to stop
### exec line in .desktop file
# /full/path_to/toggle-any-conky /full/path/to/conky-config
## Eg /home/glen/conky/toggle-any-conky /home/glen/conky/configs/comic-conkyrc
if pgrep -f "conky -c $1"; then
pkill -xf "conky -c $1"
else
conky -c $1
fi
The one script can be used to toggle any specific conky on/off.
Eg this section of my unity quicklist shows the commands I use to toggle specific conkys.
Hi, I mentioned a few things in frustration last week, about broken...
There's quite a bit going on with my system at the moment.
about broken... orphaned files after start, can not remove file,... ,no such file exists,
I've put this down to my scripting skills, I am getting better every day.
Code:
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32731 0 32731 0 0 4918 0 --:--:-- 0:00:06 --:--:-- 25235
--2013-07-19 11:46:24-- http://www.seabreeze.com.au/graphs/qld.asp
Resolving www.seabreeze.com.au (www.seabreeze.com.au)... 50.23.74.196
Connecting to www.seabreeze.com.au (www.seabreeze.com.au)|50.23.74.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51070 (50K) [text/html]
Saving to: ‘index.html’
100%[==================================================>] 51,070 61.6KB/s in 0.8s
2013-07-19 11:46:30 (61.6 KB/s) - ‘index.html’ saved [51070/51070]
rm: cannot remove ‘index.html’: No such file or directory
rm: cannot remove ‘index.html’: No such file or directory
But other than that, both conky's work very well.
I have them both in the background, so I have the same desktop realestate.
Here's the scripts,
system conky
/home/glenn/.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 margins
#border_margin 0
# border width
border_width 0
# Default color and also border color, grey90 == #e5e5e5
#default_color grey90
#default_shade_color black
#default_outline_color DarkGrey
# 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
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #dc0e0e}System ${hr 2}$color
${color}${pre_exec whoami} @ $nodename: $sysname, $kernel on $machine
${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 #00ff00}${time %I:%M:%S}${time %p} ${time %Z}
${color white}Processes:${color green} $processes ${color white}Running:${color green} $running_processes ${color white}
${color #dc0e0e}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 #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 #00ff00}${execi 300 sudo ~/.conky/system/get/ip.sh}
IP: ${color green}${addr eth0} Gateway: ${color green}${gw_ip eth0}
Down:${color green} ${downspeed eth0} k/s${color} ${alignr}Up:${color green} ${upspeed eth0} k/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} 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} 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}Squid ${hr 2}$color
${color white}Down: ${color green}${downspeed eth1} k/s ${alignr}${color white}Up:${color green} ${upspeed eth1} k/s
#${color #DFDFDF}${downspeedgraph eth1 25,140 FF8200 ff0000} ${alignr}${upspeedgraph eth1 25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown eth1} ${alignr}${color white}Total:${color green} ${totalup eth1}
${color white}Inbound:${color green} ${tcp_portmon 1 32767 count}
${color white}Outbound:${color green} ${tcp_portmon 32768
61000 count}${alignr}${color white}Total:${color green} ${tcp_portmon 1 65535 count}
${color #dc0e0e}Internal lo ${hr 2}$color
${color white}Down: ${color green}${downspeed lo} k/s ${alignr}${color white}Up:${color green} ${upspeed lo} k/s
${color #DFDFDF}${downspeedgraph lo 25,140 FF8200 ff0000} ${alignr}${upspeedgraph lo
25,140 FF0000 FF9900}$color
${color white}Total: ${color green}${totaldown lo} ${alignr}${color white}Total:${color green} ${totalup lo}
${color white}Inbound:${color green} ${tcp_portmon 1 32767 count}
${color white}Outbound:${color green} ${tcp_portmon 32768
61000 count}${alignr}${color white}Total:${color green} ${tcp_portmon 1 65535 count}
${color #dc0e0e}Top ${hr 1}$color
${color}Name PID CPU% MEM%
${color #ddaa00} ${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}Mem usage
${color #ddaa00} ${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 orange}News headlines${hr 2}:${color}
${color #7f8ed3}${execi 300 sudo /home/glenn/.conky/system/conky-rss.sh http://rss.slashdot.org/Slashdot/slashdot 5 2}
/home/glenn/.conky/system/conky-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
/home/glenn/.conky/system/get/ip.sh
Code:
#!/bin/bash
cd /home/glenn/.conky/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html
Surf conky
/home/glenn/.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 sudo 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}
/home/glenn/.conky/surf/get/wget_seabreeze
Code:
#!/bin/bash
cd /home/glenn/.conky/surf/get
sudo 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)
sudo wget -O ./.seabreeze.png $i
I start the conky's by calling this ...~/.startconky.sh
As this info will probably never change I would just hardcode the results of those dmidecode commands in the conky.
Make a note in your conky of the dmidecode commands used to get the baseboard info.
You could change permissions to not require sudo...
Code:
sudo chmod u+s /usr/sbin/dmidecode
If you look at man dmidecode you can also do a sudo dump (--dump-bin FILE)
and then access the info without sudo (--from-dump FILE)
This line to show your public IP address unnecessarily uses sudo to call a script that also uses an unneeded sudo then tries to remove a non-existent file...???
Code:
#!/bin/bash
cd /home/glen/conky/GlennsPref/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html
The line can be replaced with this for your public IP address in conky...
This line to show your public IP address unnecessarily uses sudo to call a script that also uses an unneeded sudo then tries to remove a non-existent file...???
Code:
#!/bin/bash
cd /home/glen/conky/GlennsPref/system/get
sudo wget -q -O - checkip.dyndns.org | sed 's/^.*Address: \([^<]\{1,\}\)<.*/\1/'
sudo rm index.html
The line can be replaced with this for your public IP address in conky...
Code:
${color 00ff00}${execi 3600 curl ifconfig.me}
Thanks for the ifconfig.me tip, ...I think I'll use that.(kiss)
The missing file to be deleted... Can you tell me how you know that? (I got it, the address is wrong!) I tried to (at least) segregate the scripts away from dumping stuff in my $USER base folder.
I want to add a syslog section, and I can't get it to show.
edit.
In a terminal the commands work, with sudo, but It won't display. Any thoughts?
Thank you, Regards Glenn
If the command...
Code:
tail -n3 /var/log/messages | fold -w50
gives you output in the terminal,
I can't see why the conky code doesn't work.
Your command works for me in a conky when used with a test file.
May just need a killall conky and a restart if your editing while conky is running.
Could also add this setting to your conkyrc above "TEXT" (default is 256 bytes)
Code:
text_buffer_size 1024
Also, if you want to break at spaces with fold, use the -s option...ie fold -sw50
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.