SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#7801 2014-08-26 19:11:18

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

I use here Antergos KDE and when I use this code

${pre_exec lab_release -si} ${pre_exec lab_release -sr} - ${pre_exec lab_release -si}

I see Arch Rolling- Arch but I don't see anything about Antergos in my conky.
Is that possible to show?

In a terminal does

cat /etc/issue

show anything?

In the link bashcrunch gave a few post above there are some thing to try.
At the bottom of that page there is a PS: with a link to a bash script that doesn't work, but the original source is still good, but probably won't show what you want.

 26 Aug 14 | 16:09:36 ~
    $ distro
Linux Debian 7.6 ( 3.2.0-4-amd64 x86_64)
 
 26 Aug 14 | 16:09:40 ~
    $ 

however it leads to "uname"

man uname

to see what it does.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Be excellent to each other!

#7802 2014-08-27 02:02:10

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

satshow wrote:

I use here Antergos KDE and when I use this code

${pre_exec lab_release -si} ${pre_exec lab_release -sr} - ${pre_exec lab_release -si}

I see Arch Rolling- Arch but I don't see anything about Antergos in my conky.
Is that possible to show?

You can just enter Antergos as text if you just want a title for your conky - no need to execute a command. Something like -

${alignc}Antergos
${kernel}

Will center Antergos, the next line will show the kernel version.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#7803 2014-08-28 16:38:03

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Sector11 wrote:
satshow wrote:

I use here Antergos KDE and when I use this code

${pre_exec lab_release -si} ${pre_exec lab_release -sr} - ${pre_exec lab_release -si}

I see Arch Rolling- Arch but I don't see anything about Antergos in my conky.
Is that possible to show?

In a terminal does

cat /etc/issue

show anything?

When I use that code I see this

[fred@fred ~]$ cat /etc/issue
Arch Linux \r (\l)

however it leads to "uname"
man uname
to see what it does.

Shows in the terminal

UNAME(1)                                                                         User Commands                                                                        UNAME(1)

NAME
       uname - print system information

SYNOPSIS
       uname [OPTION]...

DESCRIPTION
       Print certain system information.  With no OPTION, same as -s.

       -a, --all
              print all information, in the following order, except omit -p and -i if unknown:

       -s, --kernel-name
              print the kernel name

       -n, --nodename
              print the network node hostname

       -r, --kernel-release
              print the kernel release

       -v, --kernel-version
              print the kernel version

       -m, --machine
              print the machine hardware name

       -p, --processor
              print the processor type or "unknown"

       -i, --hardware-platform
              print the hardware platform or "unknown"

       -o, --operating-system
              print the operating system

       --help display this help and exit

       --version
              output version information and exit

@PackRat
Thanks four your suggestions to try

You can just enter Antergos as text if you just want a title for your conky - no need to execute a command. Something like -
${alignc}Antergos
${kernel}
Will center Antergos, the next line will show the kernel version.

Offline

#7804 2014-08-28 19:02:47

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ satshow

Well since none of the suggestions work for you PackRat's suggestion makes perfect sense.

And if you are a member in the Antergos Forum you can bring it up in the forums to see if the developers can modify:

  • lsb_release

  • uname, and / or

  • /etc/issue

lsb_release is easy to change: edit /etc/lsb_release as root:

 28 Aug 14 | 15:33:06 ~
    $ lsb_release -sirc
Sector11
71
blackbird
 
 28 Aug 14 | 15:33:09 ~
    $ cat /etc/issue
CrunchBang Linux waldorf \n \l
 
 28 Aug 14 | 15:34:06 ~
    $

OK, I'm back:

 28 Aug 14 | 15:52:56 ~
    $ lsb_release -sirc
CrunchBang
11
waldorf
 
 28 Aug 14 | 15:52:59 ~
    $ 
= = =

I also found out

cat /etc/issue.net

gives a cleaner output:

 28 Aug 14 | 15:52:59 ~
    $ cat /etc/issue.net
CrunchBang Linux waldorf
 
 28 Aug 14 | 15:54:37 ~
    $ 

So in affect I can have lsb_release show anything I want and /etc/issue.net show whatever comes with the distro ... evil  ]:D


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7805 2014-08-29 16:50:53

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

When I do this code in the terminal I don't see anything in the output

cat /etc/issue.net

Offline

#7806 2014-08-29 18:24:21

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

When I do this code in the terminal I don't see anything in the output

cat /etc/issue.net

OK, not on ARCH then.  sad


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7807 2014-08-29 18:35:58

Alad
Software Satan
Registered: 2014-02-20
Posts: 1,512

Re: Conky v1.9 Thread

$ cat /etc/os-release 
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

Offline

#7808 2014-08-29 19:19:33

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Thanks that work smile

Offline

#7809 2014-08-30 07:59:57

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: Conky v1.9 Thread

Hello guys, Wonder is there a conky script for uTorrent?

i'm running uTorrent Server, I'd like to pass data UP/DWN (uploaded/downloaded)

...info on conky it would be interesting.
Since there exist for rTorrent at DeviantART I looked on google any code for uT but did not find anything.

Thanks in advance.
Nili


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#7810 2014-08-31 07:12:58

namui
Member
Registered: 2014-08-27
Posts: 16

Re: Conky v1.9 Thread

PC is EEEPC 1025C flare, Crunchbang is Waldorf 11 wth 686 PAE kernel.
I set Conky to display CPU temp with {hwmon 1 temp 2} and {hwmon 1 temp 3} (for core 1 and core 2 respectively).
Recently, the two temps occasionally disappear, always together. The temperatures won't show up even after I log out and relogin. I have to reboot to get them back. I still cannot relate their disappearing to any of my action.

Any idea ?

Last edited by namui (2014-08-31 07:13:46)

Offline

#7811 2014-08-31 11:32:33

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Conky v1.9 Thread

How about if you restart conky?

killall -SIGUSR1 conky &

When the conky readout disappears, can you still get a reading from xsensors (or lm_sensors)?
EDIT: it may be worth using the "Report" button on your post to ask a mod to move this to the conky support thread:
http://crunchbang.org/forums/viewtopic.php?id=16909

Last edited by Head_on_a_Stick (2014-08-31 11:36:01)

Offline

#7812 2014-09-03 17:31:40

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I have just installed a update from vnstat in my conky used with antergos.
I have installed these and now can I see the stats from september. Before I don't see that.

@sector11 I have used your version but now this one. Are in these version someone wrong like the other one?
Or is the last version ok?

Offline

#7813 2014-09-03 18:18:46

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

namui wrote:

PC is EEEPC 1025C flare, Crunchbang is Waldorf 11 wth 686 PAE kernel.
I set Conky to display CPU temp with {hwmon 1 temp 2} and {hwmon 1 temp 3} (for core 1 and core 2 respectively).
Recently, the two temps occasionally disappear, always together. The temperatures won't show up even after I log out and relogin. I have to reboot to get them back. I still cannot relate their disappearing to any of my action.

Any idea ?

Are you using lmsensors? Using Sensors?
If yes, try the platform method.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7814 2014-09-03 18:23:38

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

I have just installed a update from vnstat in my conky used with antergos.
I have installed these and now can I see the stats from september. Before I don't see that.

@sector11 I have used your version but now this one. Are in these version someone wrong like the other one?
Or is the last version ok?

I'm using:

 03 Sep 14 | 15:20:04 ~
    $ vnstat -v
vnStat 1.11 by Teemu Toivola <tst at iki dot fi>
 
 03 Sep 14 | 15:20:06 ~
    $ 

and as long as you have: ~/.vnstatrc an "updated" vnstat app it should work.

Do you see August and September stats?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7815 2014-09-03 19:18:20

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I see in the conky only the september stats. August not.
In the old version I don't see these stats

In the terminal I see both

[fred@fred ~]$ vnstat
Database updated: Wed Sep  3 21:13:08 2014

   enp3s0 since 04/08/14

          rx:  21,85 GB      tx:  2,87 GB      total:  24,72 GB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
        aug 14      21,41 GB |     2,84 GB |    24,25 GB |   75,96 kbit/s
        sep 14     446,03 MB |    29,60 MB |   475,63 MB |   15,64 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       4,53 GB |      301 MB |     4,82 GB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday      31,89 MB |     2,06 MB |    33,94 MB |    3,22 kbit/s
         today     261,96 MB |    12,73 MB |   274,69 MB |   29,46 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        295 MB |       13 MB |      308 MB |

I use these new version just updated here

[fred@fred ~]$ vnstat -v
vnStat 1.12 by Teemu Toivola <tst at iki dot fi>

Last edited by satshow (2014-09-03 19:19:58)

Offline

#7816 2014-09-04 12:16:47

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

I use these new version just updated here

[fred@fred ~]$ vnstat -v
vnStat 1.12 by Teemu Toivola <tst at iki dot fi>

Show me the conky lines that have anything to do with vnstat please.
It should work, this works for me: 2014_09_04_09_53_27_160x612_Sector11.jpg

# conky -c /media/5/Conky/S11_VNSTAT.conky &
# pkill -xf "conky -c /media/5/Conky/S11_VNSTAT_2.conky" &
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent no #yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title VNSTAT
own_window_colour 000000

# Use the Xdbe extension? (eliminates flicker)
double_buffer yes

### ARGB can be used for real transparency
### own_window_transparent no
 own_window_argb_visual yes
 own_window_argb_value 120 #255

#minimum_size 370 650   ## w|h
#maximum_width 370   ## w

gap_x 10 # l|r
gap_y 10 # u|d

alignment tl
##################################left#################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

### WARNING ### These do NOT play well with /media/5/Conky/LUA/draw-bg.lua ###
draw_shades yes #### <<<--- yes --- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<--- yes --- Amplifies text if yes OJO with changing fonts
default_outline_color 000000
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
#default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 D8BFD8 #216 191 216 Thistle
color3 9ACD32 #154 205  50 YellowGreen
color4 48D1CC # 72 209 204 MediumTurquoise
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed  #FF0000 #255   0   0	Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40

#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 1536

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

## Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value
## if you use $image lots.		Set to 0 to disable the image cache.
imlib_cache_size 0

##############################################  End Miscellaneous Section  ###

update_interval 1
TEXT
----- Daily -----
${execi 3600 date --date="0 day" | awk '{print $3" "$2}'}${goto 75}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-1 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 4 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 4 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 4 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-2 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 5 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 5 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 5 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-3 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 6 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 6 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 6 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-4 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 7 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 7 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 7 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-5 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 8 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 8 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 8 | head -n 1 | awk '{print $2" "$3}'}
${execi 3600 date --date="-6 day" | awk '{print $3" "$2}'}${goto 75}${execi 86400 vnstat -d | tail -n 9 | head -n 1 | awk '{print $8" "$9}'}
tx ↑${goto 75}${execi 86400 vnstat -d | tail -n 9 | head -n 1 | awk '{print $5" "$6}'}
rx ↓${goto 75}${execi 86400 vnstat -d | tail -n 9 | head -n 1 | awk '{print $2" "$3}'}
=-=-= Weekly =-=-=
Curr Wk${goto 75}${execi 300 vnstat -w | grep "current week" | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 300 vnstat -w | grep "current week" | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 300 vnstat -w | grep "current week" | awk '{print $3" "$4}'}
Last Wk${goto 75}${execi 86400 vnstat -w | grep "last week" | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 86400 vnstat -w | grep "last week" | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 86400 vnstat -w | grep "last week" | awk '{print $3" "$4}'}
===== Monthly =====
${time %b %y}${goto 75}${execi 86400 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 86400 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 86400 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}
${execi 86400 date --date="-1 month" +"%b %y"}${goto 75}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $3" "$4}'}
${execi 86400 date --date="-2 month" +"%b %y"}${goto 75}${execi 3600 vnstat -m | tail -n 5 | head -n 1 | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 86400 vnstat -m | tail -n 5 | head -n 1 | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 86400 vnstat -m | tail -n 5 | head -n 1 | awk '{print $3" "$4}'}
${execi 86400 date --date="-3 month" +"%b %y"}${goto 75}${execi 3600 vnstat -m | tail -n 6 | head -n 1 | awk '{print $9" "$10}'}
tx ↑${goto 75}${execi 86400 vnstat -m | tail -n 6 | head -n 1 | awk '{print $6" "$7}'}
rx ↓${goto 75}${execi 86400 vnstat -m | tail -n 6 | head -n 1 | awk '{print $3" "$4}'}

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7817 2014-09-04 16:39:39

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

This is my conky vnstat

${color #10FAF7}Netwerk en Transfer Totalen:
${color 0090ff}${voffset 2}${hr 1}
${color #30DDFB}Download ↓${goto 100}${color #30DDFB}Upload ↑${goto 190}${color #30DDFB}Totaal
${goto 5}${color #30DDFB}${exec date --date="0 day" | awk '{print $3" "$2" "$6}'}
${color  #98FF76}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${color  #98FF76}${goto 85}"$5" "$6"\
${color  #98FF76}${goto 170}"$8" "$9}'}
${goto 5}${color #30DDFB}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2" "$6}'}
${color  #98FF76}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${color  #98FF76}${goto 85}"$5" "$6 "\
${color  #98FF76}${goto 170}" $8" "$9}'}
${goto 5}${color #30DDFB}Huidige Week
${color  #98FF76}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${color  #98FF76}${goto 85}" $6" "$7 "\
${color  #98FF76}${goto 170}" $9" "$10}'}
${goto 5}${color #30DDFB}Laatste Week
${color  #98FF76}${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${color  #98FF76}${goto 85}" $6" "$7 "\
${color  #98FF76}${goto 170}" $9" "$10}'}
${goto 5}${color #30DDFB}Laatste 7 Dagen
${color  #98FF76}${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${color  #98FF76}${goto 85}" $7" "$8 "\
${color  #98FF76}${goto 170}" $10" "$11}'}
${goto 5}${color #30DDFB}${time %b %Y}
${color  #98FF76}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${color  #98FF76}${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${color  #98FF76}${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}

When I use your code it works fine. I have now a conky on the right.
Can I use a conky on the left site with only this code?

Last edited by satshow (2014-09-04 16:46:32)

Offline

#7818 2014-09-04 18:51:33

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ satshow

Your code only uses one month - the current month:  I added "Last Month" to your code and cleaned up the "color" commands:

1. when you start a colour you do not need to use it for every line, conky will display that colour intil you change it.
2. you should not use # in the color code, it works BUT it's a control character in conky as well:

Strangly enough everywhere here; http://conky.sourceforge.net/variables.html that it talks about colour commands is says "minus the #" except in the ${color} command.  Trust me, not needed and not recommended.

# is a control character for comments

Here's "your code" working:

${color 10FAF7}Netwerk en Transfer Totalen (except for language - you can fix that)  :D
${color 0090ff}${voffset 2}${hr 1}
${color 30DDFB}Download ↓${goto 100}Upload ↑${goto 190}Totaal
${goto 5}${exec date --date="0 day" | awk '{print $3" "$2" "$6}'}
${color 98FF76}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${goto 85}"$5" "$6"\
${goto 170}"$8" "$9}'}
${goto 5}${color 30DDFB}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2" "$6}'}
${color 98FF76}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${goto 85}"$5" "$6 "\
${goto 170}" $8" "$9}'}
${goto 5}${color 30DDFB}Huidige Week
${color 98FF76}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${goto 85}" $6" "$7 "\
${goto 170}" $9" "$10}'}
${goto 5}${color 30DDFB}Laatste Week
${color 98FF76}${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${goto 85}" $6" "$7 "\
${goto 170}" $9" "$10}'}
${goto 5}${color 30DDFB}Laatste 7 Dagen
${color 98FF76}${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${goto 85}" $7" "$8 "\
${goto 170}" $10" "$11}'}
${goto 5}${color 30DDFB}Current Month ${time %b %Y}
${color 98FF76}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
${goto 5}${color 30DDFB}Last Month ${execi 86400 date --date="-1 month" +"%b %Y"}
${color 98FF76}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $9" "$10}'}\
${goto 85}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $6" "$7}'}\
${goto 170}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $3" "$4}'}

2014_09_04_15_40_14_1920x1080_Sector11.jpg

When I use your code it works fine. I have now a conky on the right.
Can I use a conky on the left site with only this code?

Yes of course.  As seen here - 4 conkys:
2014_09_04_15_44_11_1920x1080_Sector11.jpg

Conky on the top left:

alignment tl

Conky on the bottom left:

alignment bl

Conky on the top right:

alignment tr

Conky on the bottom right:

alignment br

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7819 2014-09-04 18:54:37

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Thank you but what I mean is 2 different conkys.

Offline

#7820 2014-09-04 20:16:34

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

Thank you but what I mean is 2 different conkys.

Yes I know.  Look at the second screenshot in my previous post.
Where are 4 different conkys running.

What is above TEXT is basically the same, maybe maximum_width and minimum_size changes a bit

The KEY change is: "alignment" for each conky you want to use ... and maybe the gap_x and Gap_y as well.

alignment
    Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_middle, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7821 2014-09-05 17:04:59

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

I was search how create a second conky. I can't find information about this.

Offline

#7822 2014-09-05 19:17:30

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

I was search how create a second conky. I can't find information about this.

The conky file can be named anything ... not just a hidden file in ~/ like ~/.conkyrc

The 6 that start on my desktop #1 are not even in my ~/ folder:

conky -c /media/5/Conky/S11_MD_Cal-br_2.conky
conky -c /media/5/Conky/S11_thin_l_wx.conky
conky -c /media/5/Conky/S11_thin_r_side.conky
conky -c /media/5/Conky/S11_OJO.conky
conky -c /media/5/Conky/S11_Dollar_Calc.conky
conky -c /media/5/Conky/S11_VNSTAT_2.conky

As you see, my vnstat conky is empty, I'm in the middle of "upgrading" a brand new install of #!.
2014_09_05_16_05_10_1920x1080_Sector11.jpg

Look here: Start/Stop Conky also: edit multiple conkys

A simple way: copy ~/.conkyrc to ~/.conkyrc2 and then edit the alignments and stuff below TEXT

ssc.sh

#!/bin/sh
# click to start, click to stop
 
if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
 
conky -c ~/.conkyrc &
conky -c ~/.conkyrc2 &
 
exit
fi

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7823 2014-09-05 19:44:49

satshow
Member
Registered: 2014-08-04
Posts: 38

Re: Conky v1.9 Thread

Thank you I go try that later. Must I in the map "bin" create a map "sh" with the file I see there.

I have just edit my other conky

540a1256a8329-schermafdruk4.thumb.jpg

This is the code

override_utf8_locale yes
use_xft yes
xftfont HandelGotD:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 
maximum_width 320
draw_shades yes
default_color ffffff
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
alignment top_right
gap_x 25
gap_y 40

TEXT
${color FF9933}${alignc}$nodename Antergos Rolling KDE 
${color 0090ff}${voffset 2}${hr 1}
${color 1EB5FF}Datum: ${color 98FF76}$alignr${time %A,}$alignr ${time %e %B %G}
${color 1EB5FF}Tijd: ${color 98FF76}$alignr${time %H:%M:%S}
${color 1EB5FF}Online: ${color 98FF76}$alignr$uptime

${color 10FAF7}Systeem:
${color 0090ff}${voffset 2}${hr 1}
${color 1EB5FF}Distributie: ${color 98FF76}$alignr $sysname $machine
${color 1EB5FF}Kernel: ${color }$alignr${color 98FF76} $kernel
${color 1EB5FF}Public IP:${color5}${alignr}${color 98FF76} ${execi 300 wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${color 1EB5FF}Local IP:${color5}${alignr}${color 98FF76}${addr enp3s0}
${color 1EB5FF}Router IP:${color5}${alignr}${color 98FF76}${gw_ip}
${color 1EB5FF}DNS: ${color5}${alignr}${color 98FF76}$nameserver
${color 1EB5FF}Systeem Updates: ${color5}${alignr}${color FF80DF}${execpi 1800 kalu -m | grep updates | cut -c 1-10 | grep -oE '[0-9]{1,9}'} ${color 98FF76}Pakketten

${color 10FAF7}CPU en Draaiende processen:
${color 0090ff}${voffset 2}${hr 1}
${color 1EB5FF}Intel Core 4 @ ${color 98FF76} ${freq}MHz   
${color 1EB5FF}Core 1 :${color 98FF76}${cpu cpu1}% ${color 0090ff}${cpubar cpu1}
${color 1EB5FF}Core 2 :${color 98FF76}${cpu cpu2}% ${color 0090ff}${cpubar cpu2}
${color 1EB5FF}Core 3 :${color 98FF76}${cpu cpu3}% ${color 0090ff}${cpubar cpu3}
${color 1EB5FF}Core 4 :${color 98FF76}${cpu cpu4}% ${color 0090ff}${cpubar cpu4}

${color 1EB5FF}temperatuur: $alignr ${color 98FF76}${hwmon 2 temp 1} C
#${color 1EB5FF}Core 2 temperatuur: $alignr ${color 98FF76}${hwmon 2 temp 2} C
#${color 1EB5FF}Core 3 temperatuur: $alignr ${color 98FF76}${hwmon 2 temp 3} C
#${color 1EB5FF}Core 4 temperatuur: $alignr ${color 98FF76}${hwmon 2 temp 4} C
${color 1EB5FF}Processen: $alignr ${color 98FF76}$processes
${color 1EB5FF}Lopende processen: $alignr ${color 98FF76}$running_processes lopende

${color 30DDFB}${voffset 5}CPU gebruik:${goto 122}PID${goto 163}CPU%${goto 210}MEM%${color 98FF76}${voffset 5}
${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
#${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
#${top name 4}${goto 115}${top pid 4}${goto 160}${top cpu 4}${goto 205}${top mem 4}
${color 30DDFB}${voffset 5}Memory gebruik:${color  98FF76}${voffset 5}
${top_mem name 1}${goto 115}${top_mem pid 1}${goto 160}${top_mem cpu 1}${goto 205} ${top_mem mem 1}
${top_mem name 2}${goto 115}${top_mem pid 2}${goto 160}${top_mem cpu 2}${goto 205} ${top_mem mem 2}
#${top_mem name 3}${goto 115}${top_mem pid 3}${goto 160}${top_mem cpu 3}${goto 205} ${top_mem mem 3}
#${top_mem name 4}${goto 115}${top_mem pid 4}${goto 160}${top_mem cpu 4}${goto 205} ${top_mem mem 4}

${color 30DDFB}CPU:${color  98FF76}${alignr}${cpu cpu}%
${color 0090ff}${cpubar}
${color 30DDFB}Memory: ${color 98FF76}$mem /$memmax$alignr$memperc%
${color 0090ff}${membar}
${color 30DDFB}Harde schijf: ${color  98FF76}$alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
${color 0090ff}${fs_bar /home}
${color 30DDFB}SWAP ${color  98FF76}$alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${color 0090ff}${swapbar}

${color 10FAF7}Netwerk en Transfer Totalen:
${color 0090ff}${voffset 2}${hr 1}
${color 0090ff}Down: ${color 98FF76}${downspeed enp3s0}/s ${alignr}${color 0090ff}Up:${color 98FF76} ${upspeed enp3s0}/s
${color 1EB5FF}${downspeedgraph enp3s0 19,100 000000 00ff00} ${alignr}${upspeedgraph enp3s0 19,100 000000 ff0000}$color

${color 30DDFB}Download ↓${goto 100}Upload ↑${goto 190}Totaal
${goto 5}${color FF9999}Vandaag: ${execi 3600 date --date="0 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 3 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}Gisteren: ${execi 3600 date --date="-1 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 4 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 4 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 4 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}Eergisteren: ${execi 3600 date --date="-2 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 5 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 5 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 5 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}3 dagen geleden: ${execi 3600 date --date="-3 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 6 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 6 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 6 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}4 dagen geleden: ${execi 3600 date --date="-4 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}5 dagen geleden: ${execi 3600 date --date="-5 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 8 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 8 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 8 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}6 dagen geleden: ${execi 3600 date --date="-6 day"}
${color 98FF76}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $2" "$3}'}\
${goto 100}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $5" "$6}'}\
${goto 190}${execi 300 vnstat -d | tail -n 7 | head -n 1 | awk '{print $8" "$9}'}
${goto 5}${color FF9999}Huidige Week:
${color 98FF76}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${goto 100}" $6" "$7 "\
${goto 190}" $9" "$10}'}
${goto 5}${color FF9999}Vorige Week:
${color 98FF76}${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${goto 100}" $6" "$7 "\
${goto 190}" $9" "$10}'}
${goto 5}${color FF9999}Huidige maand: ${time %b %Y}
${color 98FF76}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${goto 100}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${goto 190}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
${goto 5}${color FF9999}Vorige maand: ${execi 86400 date --date="-1 month" +"%b %Y"}
${color 98FF76}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $3" "$4}'}\
${goto 100}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $6" "$7}'}\
${goto 190}${execi 86400 vnstat -m | tail -n 4 | head -n 1 | awk '{print $9" "$10}'}
${goto 5}${color FF9999}2 maanden geleden: ${execi 86400 date --date="-2 month" +"%b %Y"}
${color 98FF76}${execi 86400 vnstat -m | tail -n 5 | head -n 1 | awk '{print $3" "$4}'}\
${goto 100}${execi 86400 vnstat -m | tail -n 5 | head -n 1 | awk '{print $6" "$7}'}\
${goto 190}${execi 86400 vnstat -m | tail -n 5 | head -n 1 | awk '{print $9" "$10}'}

Offline

#7824 2014-09-09 22:15:08

SecBang
New Member
Registered: 2014-09-02
Posts: 5

Re: Conky v1.9 Thread

Hi all I think this may be a good place to post this, Ive been trying to make a conky config to show the current LTC and BTC price but having some problems. Anyone have a basic config to do this? Thanks!

Offline

Help fund CrunchBang, donate to the project!

#7825 2014-09-09 23:01:39

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

satshow wrote:

Thank you I go try that later. Must I in the map "bin" create a map "sh" with the file I see there

I'm not sure what you mean, please use your native language.  I'll use a translator.

However in case:

Create a ssc.sh file, make it executable, in your path, and run it.

    $ $PATH
bash: /home/sector11/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/sector11/bin: No such file or directory
 
 09 Sep 14 | 20:00:50 ~
    $ 

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo