SparkyLinux Forums

Software & hardware support => Applications => Topic started by: AndyInMokum on April 15, 2016, 12:33:35 PM

Title: Can't access Conky configuration files in Xfce.
Post by: AndyInMokum on April 15, 2016, 12:33:35 PM
Hi, I've activated Conky through APTus Extra on a fresh Xfce install.  When I try to access the Conky Manager, I get an terminal window with nano displaying an empty file.  I close that.  I'm then presented with the Conky Manager GUI.  Nothing happens when I try to access "Edit Sparky Conky configuration file".  How do I access this file  ;)?
Title: Re: Can't access Conky configuration files in Xfce.
Post by: pavroo on April 15, 2016, 06:05:25 PM
Show me:
apt-cache policy sparky-conky
apt-cache policy conky
ls -l /opt/conky
cat /opt/conky/conky-sparky.conf

Does it work anyway with sparky configuration?
If not, reboot.
Title: Re: Can't access Conky configuration files in Xfce.
Post by: AndyInMokum on April 16, 2016, 12:57:50 AM
Quote from: pavroo on April 15, 2016, 06:05:25 PM
Show me:
apt-cache policy sparky-conky
apt-cache policy conky
ls -l /opt/conky
cat /opt/conky/conky-sparky.conf

Does it work anyway with sparky configuration?
If not, reboot.
Thanks for getting back to me.  Below are the requested outputs:andy@the_machine:~$ apt-cache policy sparky-conky
sparky-conky:
  Installed: 0.1.14
  Candidate: 0.1.14
  Version table:
*** 0.1.14 1001
       1001 http://sparkylinux.org/repo testing/main amd64 Packages
       1001 http://sparkylinux.org/repo testing/main i386 Packages
        100 /var/lib/dpkg/status
andy@the_machine:~$
andy@the_machine:~$ apt-cache policy conky
conky:
  Installed: 1.10.1-3
  Candidate: 1.10.1-3
  Version table:
*** 1.10.1-3 500
        500 http://ftp.debian.org/debian testing/main amd64 Packages
        500 http://ftp.debian.org/debian testing/main i386 Packages
        100 /var/lib/dpkg/status
andy@the_machine:~$
andy@the_machine:~$ ls -l /opt/conky
total 12
-rw-r--r-- 1 root root 5272 Apr 15 12:11 conky-sparky.conf
-rwxr-xr-x 1 root root  432 Apr 15 12:11 week.sh
andy@the_machine:~$
[spoiler]andy@the_machine:~$ cat /opt/conky/conky-sparky.conf
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# Copyright (c) 2013, 2014, 2015, 2016 Paweł "pavroo" Pijanowski
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

background no

# Window
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Graphics
double_buffer yes
use_spacer right # yes is NOT an option - left right or none
override_utf8_locale yes
use_xft yes
xftfont DejaVu Sans Mono:bold:size=9
xftalpha 1.0
update_interval 1
uppercase no  # set to yes if you want all text to be in uppercase
stippled_borders 0
border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline no  # amplifies text if yes
draw_shades no  # shadecolor black

# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 8db7d7 #Sparky
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#   colours below used by colorize script
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 1028 # 256 is minimum
no_buffers yes  # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
top_name_width 10

#max_specials 1024
#max_user_text 10000

# Layout
alignment mr  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 0 # pos = left & neg = right
gap_y -10 # pos = up & neg = down

#imlib_cache_size 0
minimum_size 5 5

TEXT
${goto 20}${font dodger:bold:size=15}${color3}SparkyLinux${color}${font}
${goto 20}${color3}${cpubar cpu5 1,136}${color}
Host${goto 80}$nodename
Uptime${goto 80}$uptime_short
Kernel${goto 80}$kernel${color}
${color3}Disk usage:${goto 80}Free/Total${color}
/${goto 80}${fs_free /}/${fs_size /}
#/boot${goto 80}${fs_free /boot}/${fs_size /boot}
/home${goto 80}${fs_free /home}/${fs_size /home}
${goto 0}${color3}Network${goto 80}eth0${goto 125}wlan0${color}
${goto 0}Download${goto 80}${downspeed eth0}${goto 125}${downspeed wlan0}
${goto 0}Upload${goto 80}${upspeed eth0}${goto 125}${upspeed wlan0}
${goto 0}TotalDown${goto 80}${totaldown eth0} ${offset 10}${goto 125}${totaldown wlan0} ${offset 10}
${goto 0}TotalUp${goto 80}${totalup eth0}${goto 125}${totalup wlan0}
${goto 22}${font LCDMono:bold:size=18}${color3}${time %T}${color}
${goto 60}${font LCDMono:bold:size=18}${color3}${time %a}${color}
${voffset -0}${execpi 3600 /opt/conky/week.sh}
${voffset 10}${goto 30}${font LCDMono:bold:size=18}${color3}${time %b %Y}${font}
### CPU0 ###
${goto 0}${color3}${cpubar cpu0 25,170}
${voffset -33}${goto 20}${color0}${font dodger:size=15}CPU0${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu0} %${font}
### CPU1 ###
# ${goto 0}${color3}${cpubar cpu1 25,170}
# ${voffset -33}${goto 20}${color0}${font dodger:size=15}CPU1${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu1} %${font}
### CPU2 ###
# ${goto 0}${color3}${cpubar cpu2 25,170}
# ${voffset -33}${goto 20}${color0}${font dodger:size=15}CPU2${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu2} %${font}
### CPU3 ###
# ${goto 0}${color3}${cpubar cpu3 25,170}
# ${voffset -33}${goto 20}${color0}${font dodger:size=15}CPU3${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${cpu cpu3} %${font}
### RAM MEMORY ###
${goto 0}${color3}${membar 25,170}
${voffset -33}${goto 20}${color0}${font dodger:size=15}MEM${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${memperc} %${font}
### SWAP ###
${goto 0}${color3}${swapbar 25,170}
${voffset -33}${goto 20}${color0}${font dodger:size=15}SWAP${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${swapperc} %${font}
### BATTERY ###
#${goto 0}${color3}${battery_bar 25,170}
#${voffset -33}${goto 20}${color0}${font dodger:size=15}BAT${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${battery_percent} %${font}
###
${voffset 10}${goto 0}${color3}Name${goto 85}CPU${goto 135}MEM${color}
${voffset 5}${goto 0}${top name 1}${goto 70}${top cpu 1}${goto 120}${top mem 1}
${goto 0}${top name 2}${goto 70}${top cpu 2}${goto 120}${top mem 2}
${goto 0}${top name 3}${goto 70}${top cpu 3}${goto 120}${top mem 3}
${goto 0}${top name 4}${goto 70}${top cpu 4}${goto 120}${top mem 4}
${goto 0}${top name 5}${goto 70}${top cpu 5}${goto 120}${top mem 5}
andy@the_machine:~$[/spoiler]I can manually edit:sudo <text-editor> /opt/conky/conky-sparky.confAll the options work in the GUI except the conky-sparky.conf.  See image below.


Title: Re: Can't access Conky configuration files in Xfce.
Post by: pavroo on April 16, 2016, 01:36:22 AM
What is your system locale?
Maybe there is something wrong with the sparky-conky locale file or it's configurationn.
Title: Re: Can't access Conky configuration files in Xfce.
Post by: AndyInMokum on April 16, 2016, 01:51:03 AM
Quote from: pavroo on April 16, 2016, 01:36:22 AM
What is your system locale?
Maybe there is something wrong with the sparky-conky locale file or it's configurationn.
Sorry, I'm not understanding the question.
Title: Re: Can't access Conky configuration files in Xfce.
Post by: pavroo on April 16, 2016, 01:25:26 PM
What is your system default language?
cat /etc/default/locale
Title: Re: Can't access Conky configuration files in Xfce.
Post by: AndyInMokum on April 16, 2016, 11:48:18 PM
Quote from: pavroo on April 16, 2016, 01:25:26 PM
What is your system default language?
cat /etc/default/locale
Sorry about that.  It was a long day and it was "stupid O'clock" in the morning here  :D.  Yeah, my locale is:andy@the_machine:~$ cat /etc/default/locale
LANG=en_GB.UTF-8
andy@the_machine:~$
I've figured out the problem.  I've removed the mousepad text editor and installed pluma in its place.  It would have been gedit but the new version in the Testing Repo is, HORRIBLE  :(.  The old version was my favourite editor.  Typing out mousepad to open the text editor was driving nuts  ;D.  Anyway, I reinstalled mousepad and the GUI now works.  Okay, here's to my next question.  Where is the script to open the GUI located, so I can edit it to open pluma by default?   Would you like me to open another thread for this question  ;)? 
Title: Re: Can't access Conky configuration files in Xfce.
Post by: pavroo on April 17, 2016, 12:14:02 AM
The file is:
/usr/bin/sparky-conky
Simply change:
if [ -f /opt/sparky/sparky-editor ]; then
. /opt/sparky/sparky-editor
else
SPARKYEDITOR="gnome-text-editor"
fi

to:
SPARKYEDITOR="/usr/bin/your-editor"
There is a newer version of sparky-conky in the repos now, so upgrade it first, than make your changes.
Title: Re: Can't access Conky configuration files in Xfce.
Post by: AndyInMokum on April 17, 2016, 12:20:56 AM
Quote from: pavroo on April 17, 2016, 12:14:02 AM
The file is:
/usr/bin/sparky-conky
Simply change:
if [ -f /opt/sparky/sparky-editor ]; then
. /opt/sparky/sparky-editor
else
SPARKYEDITOR="gnome-text-editor"
fi

to:
SPARKYEDITOR="/usr/bin/your-editor"
There is a newer version of sparky-conky in the repos now, so upgrade it first, than make your changes.
Thanks pavroo, your assistance is much appreciated  ;).