You are not logged in.
hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
currently this is my battery code
${color d2cbb9}Battery:${offset 3}${if_match ${battery_percent BAT1}<=15}${color FFFF00}${blink ${battery_percent BAT1}%}${color}${else}${if_match ${battery_percent BAT1}<=33}${color FFA500}${battery_percent BAT1}%${else}${if_match ${battery_percent BAT1}>33}${color7}${battery_percent BAT1}%${endif}${endif}${endif}${offset 15}\
it blinks yellow when the battery is low but if i plug it in, i would like it to stop blinking and turn a different color
Offline
@ ragamatrix - I agree with oliverseal - an excellent find ....
@ oliverseal - A custom compile of compton with the fade in animation doing a "flicker" ????????
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
currently this is my battery code
${color d2cbb9}Battery:${offset 3}${if_match ${battery_percent BAT1}<=15}${color FFFF00}${blink ${battery_percent BAT1}%}${color}${else}${if_match ${battery_percent BAT1}<=33}${color FFA500}${battery_percent BAT1}%${else}${if_match ${battery_percent BAT1}>33}${color7}${battery_percent BAT1}%${endif}${endif}${endif}${offset 15}\
it blinks yellow when the battery is low but if i plug it in, i would like it to stop blinking and turn a different color
I don't use a battery so it's a shot in the dark
What do you get for:
Plugged in ${battery bat1}
Unplugged ${battery bat1}
Let assume: "P" (plugged in) and "U" (unplugged)
${color d2cbb9}Battery:${offset 3}${if_match "${battery BAT1}" == "U"}\
${if_match ${battery_percent BAT1}<=15}${color FFFF00}${blink ${battery_percent BAT1}%}${color}\
${else}${if_match ${battery_percent BAT1}<=33}${color FFA500}${battery_percent BAT1}%\
${else}${if_match ${battery_percent BAT1}>33}${color7}${battery_percent BAT1}%\
${else}Plugged in stuff here\
${endif}${endif}${endif}${endif}${offset 15}\
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@ oliverseal - A custom compile of compton with the fade in animation doing a "flicker" ????????
I have compton set up to do fade in and fade out. Modifying compton with a "flicker" option would be cool so that windows "flicker" fade. Just for the sci-fi feel of it. Over a display like the one that ragamatrix posted it would look sweet.
I threw together a quick "conkytoggle" binary that I bound to W-c in rc.xml so I can turn on and off a conky overlay for my screen (W-c is similar to a shortcut in Windows 8 apparently)
Conkytoggle hackery:
Looks for a window with the class name "conkytoggle-dock" and iconifies or shows it.
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define NORMAL_STATE 1
#define ICONIFIED_STATE 3
Window display_tree_info_1(Display* dpy, Window window, char* search_term, int recurse, int level)
{
int i;
Window root_win, parent_win;
unsigned int num_children;
Window *child_list;
Window result = -1;
XClassHint classhint;
if (!XQueryTree(dpy, window, &root_win, &parent_win, &child_list, &num_children)) {
printf("Can't query window tree.");
exit(1);
}
for (i = (int)num_children - 1; i >= 0; i--) {
if(XGetClassHint(dpy, child_list[i], &classhint)) {
if(classhint.res_class) {
// printf("Found \"%s\"\n", classhint.res_name);
if (strcmp(search_term, classhint.res_name) == 0) {
// printf("--------------------------------------------------->\n");
result = child_list[i];
break;
}
XFree(classhint.res_class);
}
}
if (recurse && result == -1) {
result = display_tree_info_1(dpy, child_list[i], search_term, 1, level+1);
}
}
if (child_list) XFree((char *)child_list);
if (result != -1)
return result;
else
return -1;
}
static inline void
win_set_opacity_prop(Display* dpy, Window win, int opacity_atom, long val) {
XChangeProperty(dpy, win, opacity_atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1);
}
static inline void
win_rm_opacity_prop(Display* dpy, Window win, int opacity_atom) {
XDeleteProperty(dpy, win, opacity_atom);
}
int is_window_minimized(Display *display, Window window) {
Atom actual_type;
int actual_format;
unsigned long i, num_items, bytes_after;
Atom *atoms;
int wmStateAtom = XInternAtom(display, "_NET_WM_STATE", False);
int wmStateHiddenAtom = XInternAtom(display, "_NET_WM_STATE_HIDDEN", False);
atoms=NULL;
XGetWindowProperty(display, window, wmStateAtom, 0, 1024, False, XA_ATOM, &actual_type, &actual_format, &num_items, &bytes_after, (unsigned char**)&atoms);
for(i=0; i<num_items; ++i) {
if(atoms[i]==wmStateHiddenAtom) {
XFree(atoms);
return 1;
}
}
XFree(atoms);
return 0;
}
int main(int argc, char *argv[])
{
Display *dpy;
Window rootwin;
Window win;
int scr;
if(!(dpy=XOpenDisplay(NULL))) {
fprintf(stderr, "ERROR: Could not open display\n");
exit(1);
}
scr=DefaultScreen(dpy);
rootwin=RootWindow(dpy, scr);
// search the windows for the conky
win = display_tree_info_1(dpy, rootwin, "conkytoggle-dock", 1, 0);
if (win != -1) {
XClassHint classhint;
XGetClassHint(dpy, win, &classhint);
printf("\"%s\" (%s) found.\n", classhint.res_class, classhint.res_name);
} else {
// printf("\"conkytoggle-dock\" not found.\n");
}
int minimized = is_window_minimized(dpy, win);
if (minimized == 0) {
printf("hiding conky\n");
XIconifyWindow(dpy, win, scr);
} else {
printf("showing conky\n");
XClientMessageEvent ev;
Atom prop;
prop = XInternAtom(dpy, "WM_CHANGE_STATE", False);
if(prop == None)
return False;
ev.type = ClientMessage;
ev.window = win;
ev.message_type = prop;
ev.format = 32;
ev.data.l[0] = NormalState;
XSendEvent(dpy, RootWindow(dpy, scr), False,
SubstructureRedirectMask|SubstructureNotifyMask,
(XEvent *)&ev);
}
XFlush(dpy);
return 0;
}
Makefile
CC=/usr/bin/gcc
LD=/use/bin/ld
CFLAGS=-Wall -std=c99 -pedantic -g -I/usr/X11R6/include `pkg-config --cflags cairo`
LDFLAGS=-Wall -g `pkg-config --libs cairo` -L/usr/X11R6/lib -lX11
all: conkytoggle
conkytoggle: conkytoggle.o
${CC} -o conkytoggle ${LDFLAGS} conkytoggle.o
conkytoggle.o: conkytoggle.c
${CC} -o conkytoggle.o ${CFLAGS} -c conkytoggle.c
clean:
rm -f *.o
EDIT: Example of it in use
Last edited by oliverseal (2013-09-20 03:53:54)
Offline
I have compton set up to do fade in and fade out. Modifying compton with a "flicker" option would be cool so that windows "flicker" fade. Just for the sci-fi feel of it. Over a display like the one that ragamatrix posted it would look sweet.
Everything beyond this was like talking Martian. But I thank you for the explanation.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
mustlearnuse wrote:hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
currently this is my battery code
${color d2cbb9}Battery:${offset 3}${if_match ${battery_percent BAT1}<=15}${color FFFF00}${blink ${battery_percent BAT1}%}${color}${else}${if_match ${battery_percent BAT1}<=33}${color FFA500}${battery_percent BAT1}%${else}${if_match ${battery_percent BAT1}>33}${color7}${battery_percent BAT1}%${endif}${endif}${endif}${offset 15}\
it blinks yellow when the battery is low but if i plug it in, i would like it to stop blinking and turn a different color
I don't use a battery so it's a shot in the dark
What do you get for:
Plugged in ${battery bat1}
Unplugged ${battery bat1}Let assume: "P" (plugged in) and "U" (unplugged)
${color d2cbb9}Battery:${offset 3}${if_match "${battery BAT1}" == "U"}\ ${if_match ${battery_percent BAT1}<=15}${color FFFF00}${blink ${battery_percent BAT1}%}${color}\ ${else}${if_match ${battery_percent BAT1}<=33}${color FFA500}${battery_percent BAT1}%\ ${else}${if_match ${battery_percent BAT1}>33}${color7}${battery_percent BAT1}%\ ${else}Plugged in stuff here\ ${endif}${endif}${endif}${endif}${offset 15}\
seems like it may work. i actually think i want to just change the word 'battery' to a different color if it's unplugged rather than change the whole battery script i have going. seems like it might be easier. is there a way of doing that? because the ${battery bat1} doesn't seem to work for something like that
Offline
aleza66 wrote:When I execute conkywonky, I get all the data I'm supposed to see but in terminal.
Any idea where can I debug?First lets try a process of elimination - try this:
I added a closing } to everything and eliminated the non-standard stuff at the end.TEXT ${nodename} - ${sysname} ${kernel} on ${machine} ${hr} ${color grey}Uptime:${color} ${uptime} ${color grey}Frequency (in MHz):${color} ${freq} ${color grey}Frequency (in GHz):${color} ${freq_g} ${color grey}RAM Usage:${color} ${mem}/${memmax} - ${memperc}% ${membar 4} ${color grey}Swap Usage:${color} ${swap}/${swapmax} - ${swapperc}% ${swapbar 4} ${color grey}CPU Usage:${color} ${cpu}% ${cpubar 4} ${color grey}Processes:${color} ${processes} ${color grey}Running:${color} ${running_processes} ${hr} ${color grey}File systems: / ${color}${fs_free /}/${fs_size /} ${fs_bar 6 /} ${color grey}Networking: Up:${color} ${upspeed eth0} k/s${color grey} - Down:${color} ${downspeed eth0} k/s ${hr} ${color grey}Name PID CPU% MEM% ${color lightgrey} ${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} ${tail /var/log/Xorg.0.log 3}
Without the ending
${color grey}MPD: ${mpd_status} ${mpd_artist} - ${mpd_title from ${mpd_album} at ${mpd_vol} Bitrate: ${mpd_bitrate\n} Progress: ${mpd_bar} ${color grey}XMMS2: ${xmms2_status} ${xmms2_artist} - ${xmms2_title} from ${xmms2_album} Progress: ${xmms2_bar}
Why?
Bitrate: $mpd_bitrate\n" "Progress: $mpd_bar
the " " in that line?
and the "; ending?
${tail /var/log/Xorg.0.log 3}";
Tested, still no change on desktop, terminal shows everything.
Offline
hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
there is also upower - someone (lionhead?) was trying to do something similar to what you want.
This post - I think - is part of that forum conversation, read a bit past the post and you'll find some scripts that might be useful to you.
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
Offline
Hello !
May be it's not that ?? 8o I didn't really understand too...
post#6179
@chepioq->waoh !
![]()
I was searching a tool to manage all my conky(s) on openbox and I've founded a great one with the help of arpinux on the #! french forum.
conky-tool video
page to dl the deb pack
May be useful for openbox users...
oliverseal wrote:
I have compton set up to do fade in and fade out. Modifying compton with a "flicker" option would be cool so that windows "flicker" fade. Just for the sci-fi feel of it. Over a display like the one that ragamatrix posted it would look sweet.
Everything beyond this was like talking Martian. But I thank you for the explanation.
Last edited by ragamatrix (2013-09-20 07:51:35)
Offline
I played a little with gimp to make a .png conky machine...
Last edited by ragamatrix (2013-09-20 10:20:49)
Offline
^would love to see this in action!
I`ve got a little problem:
i use this:
${if_running mocp}${goto 42}MoC: $alignc${execi 1 mocp --info | grep Artist | cut -f2 -d ":"}$alignr[ ${execi 1 mocp --info | grep State| cut -f2 -d ":"} ]
${goto 42}${voffset 7}${execi 1 mocp --info | grep CurrentTime | cut -f2 -d ":"}:${execi 1 mocp --info | grep CurrentTime | cut -f3 -d ":"} ${execbar ~/scripts/mocbar.sh} ${execi 1 mocp --info | grep TotalTime | cut -f2 -d ":"}:${execi 1 mocp --info | grep TotalTime | cut -f3 -d ":"}
${goto 42}${voffset 3}${scroll 37 ${exec mocp --info | grep Title | cut -f2 -d ":"}} $endif
to show what`s playing.
But if i "accidentally" start moc as root, there is no information provided for normal users and conkys.
has anyone an idea how to get around this?
thanks in advance -naik
*kaum macht man es richtig, funktioniert es sofort*
Offline
Hi Naik !
Hey I did it for everybody work on it, to see different ones... ]:D
Here's the file in medium size one if people are interested in : kaoss_conky_machine_medium
Sorry I can't help for moc... I just know someone else who made a conky with: conky_moc
Offline
hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
What are the outputs of:
Plugged in ${battery bat1}
Unplugged ${battery bat1}
battery (num) Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
mustlearnuse wrote:hey guys another questions,
is there a way to have conky detected if you're plugged into an outlet? and have the battery display color changed based on that?
What are the outputs of:
Plugged in ${battery bat1}
Unplugged ${battery bat1}battery (num) Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).
so, i tried them in conky and they don't seem to return anything for me.
it's just blank. is there any place i can check what kind of battery thing my computer uses? because battery_percent BAT1 works fine but battery BAT1 returns nothing
Offline
Like I said earlier:
I don't use a battery so it's a shot in the dark
... now if
battery_percent BAT1
works fine but
battery BAT1
returns nothing, I'm at a loss.
You'll need to wait for someone that uses a battery, surprised no one showed up already.
HEY ... YOU ... Yea you, with the notebook ... Come over here a sec will you please ...
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Like I said earlier:
I don't use a battery so it's a shot in the dark
... now if
battery_percent BAT1
works fine but
battery BAT1
returns nothing, I'm at a loss.
You'll need to wait for someone that uses a battery, surprised no one showed up already.
HEY ... YOU ... Yea you, with the notebook ... Come over here a sec will you please ...
![]()
![]()
yeah very weird since i though those would work for any computer.
it seems like that'd be like cout working on one computer and not another for C++
Offline
is there any place i can check what kind of battery thing my computer uses? because battery_percent BAT1 works fine but battery BAT1 returns nothing
in a terminal -
acpi -i
or, if you have upower installed,
upower -i /org/freedesktop/UPower/devices/battery_BAT0
will give you a lot of information about your battery, change it to BAT1 if you need to.
You may be able to use the acpiacadapter variable of conky in an if_match statement to get the color change you're after; or you may be able to create a bash script that uses:
acpi -a | awk '{print $3}'
to determine adapter state and then generate an output that conky will display. Note that the '{print $3}' may need to change for your system, run acpi -a in a terminal first to check it.
Last edited by PackRat (2013-09-21 02:39:25)
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
Offline
^
strange i have acpi installed but i can't run the acpi -i or acpi -a
what a headache. have to figure this out
Offline
For me, "${battery}" ("BAT0" if want to add device) gives me either "charged" or "discharging" or "charging" status with number of percentage of charge/discharge.
"acpi" command is not available and "upower" could enumerate devices only.
But i can read "/sys/class/power_supply/AC/online" and check whatever it have value of "1" (online) or "0" (offline).
There's also a lot if infos in "/sys/class/power_supply/BAT0" directory.
Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop
Offline
For me, "${battery}" ("BAT0" if want to add device) gives me either "charged" or "discharging" or "charging" status with number of percentage of charge/discharge.
"acpi" command is not available and "upower" could enumerate devices only.But i can read "/sys/class/power_supply/AC/online" and check whatever it have value of "1" (online) or "0" (offline).
There's also a lot if infos in "/sys/class/power_supply/BAT0" directory.
quite interesting. i found that file and i see it change between 1 and 0
now i'll just figure out how to check that file and changed the text color for the word "batter" in my code based on if there is a 1 or 0
thank!
Offline
Here's a screenshot of my current conky. It's just a basic layout until I can get something better in.
Here's the conky script:
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
#==============================================================================
# MinHXR
#
# Date : 11/08/2011
# author : xeNULL / pwnsauce
# Revision: 9/21/2013
# version : v0.1
# license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
short_units yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
gap_x 0
gap_y 10
minimum_size 100 0
maximum_width 500
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment br
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_bar_size 150 10
override_utf8_locale no
use_xft yes
xftfont Terminus:size=9
xftalpha 1.0
uppercase no
##############################################
# Color Table #
##############################################
default_color ccccff ## white
color1 999999 ## Medium Grey
color2 510000 ## Dark Red
color3 00ff00 ## Bright Green
color4 ffff00 ## Yellow
color5 ff9900 ## Orange
color6 339999 ## Teal
##############################################
# Output #
##############################################
TEXT
${alignc 20}${font Monospace:size=16}PWNSAUCE${font}
${color2}${hr}${color}
#$color You have $color2 ${texeci 100 python ~/Scripts/gmail.
${font Monospace:style=Bold:size=10} $color1 ${time %c} ${font}
${color2}${hr}${color}
${color5}S Y S T E M R E P O R T${color} ${hr}
${color6}OS${color}:$alignr $sysname
${color6}Host${color}:$alignr$nodename
${color6}Kernal${color}:$alignr CrunchBang Linux on $machine
${color6}Uptime${color}:$alignr$uptime
${color6}Swap usage${color}:$alignr$swap/$swapmax
${color6}Disk usage${color}:$alignr${fs_used /}/${fs_size /}
${color5}P R O C E S S O R S${color} ${hr}
${color6}CORE1${color}: $alignr${cpu cpu0}% ${color2}${cpubar cpu0}${color}
${color6}CORE2${color}: $alignr${cpu cpu1}% ${color2}${cpubar cpu1}${color}
${color6}CORE3${color}: $alignr${cpu cpu2}% ${color2}${cpubar cpu2}${color}
${color6}CORE4${color}: $alignr${cpu cpu3}% ${color2}${cpubar cpu3}${color}
${color6}CORE5${color}: $alignr${cpu cpu4}% ${color2}${cpubar cpu4}${color}
${color6}CORE6${color}: $alignr${cpu cpu5}% ${color2}${cpubar cpu5}${color}
${color6}CORE7${color}: $alignr${cpu cpu6}% ${color2}${cpubar cpu6}${color}
${color6}CORE8${color}: $alignr${cpu cpu7}% ${color2}${cpubar cpu7}${color}
${color5}M E M O R Y${color} $alignr$mem/$memmax
${hr}
${color6}RAM${color}: $memperc% ${alignr}${color2}${membar 8,60}${color}
${color5}S H O R T C U T K E Y S${color} ${hr}
${color6}Alt${color}+${color6}F2${color}$alignr Run Dialog
${color6}Alt${color}+${color6}F3${color}$alignr Alt Menu
${color6}Super${color}+${color6}Space${color}$alignr Main Menu
${color6}Super${color}+${color6}Tab${color}$alignr Client Menu
${color6}Super${color}+${color6}t${color}$alignr Terminal
${color6}Super${color}+${color6}f${color}$alignr File Manager
${color6}Super${color}+${color6}e${color}$alignr Editor
${color6}Super${color}+${color6}m${color}$alignr Media Player
${color6}Super${color}+${color6}w${color}$alignr Web Browser
${color6}Super${color}+${color6}h${color}$alignr Task Manager
${color6}Super${color}+${color6}l${color}$alignr Lock Screen
${color6}Super${color}+${color6}v${color}$alignr Volume Control
${color6}Super${color}+${color6}x${color}$alignr Logout
${color6}PrtSc${color}$alignr Screenshot
${color5}N E T W O R K${color} ${hr 2}
${color6}Up${color}: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${color6}Down${color}: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${color6}Upload${color}: ${alignr}${totalup wlan0}
${color6}Download${color}: ${alignr}${totaldown wlan0}
${color6}Local Ip${color}: ${alignr}${addr wlan0}
${color5}P R O C E S S E S${color} ${hr 2}
$processes processes ($running_processes running)
NAME $alignr PID CPU MEM
${color6}${top name 1}${color} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${color6}${top name 2}${color} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${color6}${top name 3}${color} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
${color6}${top name 4}${color} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
${color6}${top name 5}${color} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}
${color6}${top name 6}${color} $alignr ${top pid 6} ${top cpu 6} ${top mem 6}
${color6}${top name 7}${color} $alignr ${top pid 7} ${top cpu 7} ${top mem 7}
${color6}${top name 8}${color} $alignr ${top pid 8} ${top cpu 8} ${top mem 8}
My mother said I must always be intolerant of ignorance but understanding of illiteracy. That some people, unable to go to school, were more educated and more intelligent than college professors. --Maya Angelou
Offline
@raggamatrix: Thanks for the link but this seems to be a little too much effort for what i need. a simple display of track and time is enough for me.
to clearify: The real question seems to be wheter there is a way for normal user to get the info mocp parses when started as root or not? and in case, why not? do they use different sessions of the message-bus or stuff like that? and is this even conky-related enough to be diskussed here?
greetz -naik
*kaum macht man es richtig, funktioniert es sofort*
Offline
Currently working on an interactive conky, but having the following issue:
When using the base script from mrpeachy, the window type needs to be set to normal. In combination with own_window_transparant on yes, it creates a greyish transparant 'field' with round borders. Is it possible to get rid of this 'field' and have it like own_window_transparant yes in combination with own_window_type desktop, like the conky on the left and right in following picture?
Last edited by boisei0 (2013-09-21 20:39:48)
YAWS (cli weather script with conkyForecast syntax) | Bitbucket | Github | Blog
Member of the Unofficial #! Emergency Tinfoil Hat Distribution Center
Emergency Tinfoil Hat Conky Alert System development team
Offline
Hello boisei0..
Lets try this.
Change conkyrc to this..
own_window yes
# own_window_argb_visual yes
own_window_transparent yes
own_window_type normal
Now does your conkyrc have a title?
for example..
own_window_title conky1
If it is one of Peachy's scripts then it will have a title.
Anyway.. you now need to add a line to your compton.conf file.
It can be found in your home directory.. ~/.config/compton.conf
Just open it and add this (using title example above)..
shadow-exclude = ["n:e:conky1"];
That should fix the problem.. which is just your composite manager (compton) trying to draw a shadow
for your conky window.
Peachy's Wun Lua / Peachy's v9000 / Conky PitStop / My DA Page
........
Offline
My current android clock conky...thing
# conky configuration by Ututo
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
#own_window_type override
#own_window_argb_visual no
## xcompmgr
#own_window_type override
#own_window_argb_visual yes
## cairo-compmgr
own_window_type desktop
own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_margin 5
border_width 1
default_color 000000
default_shade_color 000000
default_outline_color 000000
alignment br
minimum_size 100
maximum_width 450
gap_x 40
gap_y 90
alignment bl
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes
color1 494949
color2 39576F
##############################################
# Output
##############################################
TEXT
${color1}${font Roboto:weight=Light:size=38}${time %H}${color1}${font Roboto:weight=Thin:size=38}.${time %M}${font}
${color1}${font Roboto:size=13}${voffset -40}${offset 135}${time %A}${font}
${font Roboto:weight=Light:size=11}${voffset 0}${offset 135}${time %d %B %Y}${font}
You'll need 'Roboto' font. You can download it from here.
BunsenLabs en Español
BunsenLabs on deviantArt
Offline
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