Klicke hier für die Deutsche version
Hi

Before I used LXDE I used conky to monitor some system information. Now I have tryed to get conky working with LXDE. But there was some trouble.

To use LXDE with conky you only have to deactivate PCManFM’s desktopmanagementfunction. To do so Just go in PCManFM “Edit->Settings->Desktop->Manage the Desktop and show file icons”. Then Conky should work without problems (conkyrc below).

Now PCManFm also don’t draw a background on the LXDE Desktop. To solve this problem you can use “feh” to set the background.

install “feh”:

pacman -Sy feh

To set a background with “feh” you can use this script:

#!/bin/bash
# set bg
feh --bg-scale ~/pfad/zum/wallpaper.jpg &

This script order “feh” to show the image as a background. Now make the script executable:

chmod +x ./setbg.sh

Now I want to set the background everytime LXDE starts, automatecly. To do so just add the following to your “~/.config/lxsession/LXDE/autostart”:

@/path/to/script/setbg.sh

Here my Conkyrc:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Create own window instead of using desktop (required in nautilus)
#avoid flicker
double_buffer yes
 
# ---
# Create own window instead of using desktop (required in nautilus)
#own_window yes
 
# If own_window is yes, you may use type normal, desktop or overide
#own_window_type desktop
 
# Use pseudo transparency with own_window?
#own_window_transparent yes
 
# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour
 
# If own_window is yes, these window manager hints may be used
#own_window_hints below,skip_pager,sticky,skip_taskbar
 
#own_window_type override
 
# ---
 
#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
 
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
 
#borders
draw_borders no
border_margin 1
 
#shades
draw_shades no
 
#position
gap_x 10
gap_y 30
alignment bottom_left
 
#behaviour
update_interval 2
 
#colour
#default_color  8f8f8f
#default_shade_color 000000
#own_window_colour 262626
 
#font
use_xft yes
xftfont cure:pixelsize=9
 
#to prevent window from moving
use_spacer none
minimum_size 220 0
 
#mpd
#mpd_host localhost
#mpd_port 6600
 
cpu_avg_samples 4
# /var/log/kernel.log
#    Email: ${color 8FEA26}${execi 300 python ~/apps/skripts/conky/gmail.py &} ${color D7D3C5}
 
TEXT
${time %H:%M} ${color 8FEA26}${time %a, }${color 989898}${time %b %d %G} $alignr${color 8FEA26}UP ${color 989898}$uptime
${color 8FEA26}${font OpenLogos}System $font${color 989898}$kernel on $machine ${color a8a8a8}$hr
${color 8FEA26}CORE1${color 989898}                         $alignr${cpu cpu0}%
${color 8FEA26}CORE2${color 989898}                         $alignr${cpu cpu1}%
${color 8FEA26}CORE3${color 989898}                         $alignr${cpu cpu2}%
${color 8FEA26}CORE4${color 989898}                         $alignr${cpu cpu3}%
${color 8FEA26}${cpugraph 8FEA26 8FEA26}
${color 8FEA26}RAM${color 989898}$alignr$mem/$memmax - $memperc%
${color lightgrey}${membar}
${color 8FEA26}SWAP${color 989898}$alignr$swap/$swapmax - $swapperc%
${color lightgrey}${swapbar}
${color 8FEA26}R00T${color 989898}$alignr${fs_used /}/${fs_size /} - ${fs_free_perc /}%
$color${fs_bar /}
${color 8FEA26}HOME${color 989898}$alignr${fs_used /home}/${fs_size /home} - ${fs_free_perc /home}%
$color${fs_bar /home}
 
${color 989898}PROZESSE${color a8a8a8}$hr
${color 8FEA26}Name              $alignr PID    CPU% MEM%
${color lightgrey} ${top name 1} $alignr${top pid 1} ${top cpu 1}  ${top mem 1}
${color lightgrey} ${top name 2} $alignr${top pid 2} ${top cpu 2}  ${top mem 2}
${color lightgrey} ${top name 3} $alignr${top pid 3} ${top cpu 3}  ${top mem 3}
${color lightgrey} ${top name 4} $alignr${top pid 4} ${top cpu 4}  ${top mem 4}
${color lightgrey} ${top name 5} $alignr${top pid 5} ${top cpu 5}  ${top mem 5}
${color lightgrey} ${top name 6} $alignr${top pid 6} ${top cpu 6}  ${top mem 6}
${color 8FEA26}Mem usage
${color lightgrey} ${top_mem name 1} $alignr${top_mem pid 1} ${top_mem cpu 1}  ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} $alignr${top_mem pid 2} ${top_mem cpu 2}  ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} $alignr${top_mem pid 3} ${top_mem cpu 3}  ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} $alignr${top_mem pid 4} ${top_mem cpu 4}  ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} $alignr${top_mem pid 5} ${top_mem cpu 5}  ${top_mem mem 5}
${color lightgrey} ${top_mem name 6} $alignr${top_mem pid 6} ${top_mem cpu 6}  ${top_mem mem 6}
 
${color 989898}NETWORK${color a8a8a8}$hr
${color 8FEA26}down$font${color 989898}$alignr${downspeed eth0}k/s ${color 8FEA26}| $font${color 989898} ${totaldown eth0}
${color 8FEA26}up$font${color 989898}$alignr${upspeed eth0}k/s ${color 8FEA26}| $font${color 989898} ${totalup eth0}
${color #8FEA26}${downspeedgraph eth0 20,125 8FEA26} ${color #8FEA26}${upspeedgraph eth0 20,125 8FEA26}
 
${color 8FEA26}IP${color 989898}$alignr${execi 3600 curl www.whatismyip.org}
${color 8FEA26}IP-local${color 989898}$alignr${addr eth0}
 
${color 989898}PORTS${color a8a8a8}$hr
${color #8FEA26}Port(s)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #8FEA26}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 #8FEA26}Outbound Connection ${alignr} Remote Service/Port$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}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}

The Result:

I hope there will be some more conkys on your LXDE desktops ;) .

maces

Deutsche Version


Hi

Bevor ich LXDE genutzt habe, habe ich immer Conky benutzt, um mir Systeminformationen anzeigen zu lassen. Nun habe ich versucht Conky auch mit LXDE zu nutzen. Leider funktionierten alle Einstellungen nicht zufriedenstellend.

Um Conky nun doch auf den LXDE Desktop zu bekommen, muss man lediglich PCManFM’s Desktopverwaltungsfunktion deaktivieren. Das geht unter “Bearbeiten->Einstellungen->Desktop->Manage the Desktop and show file icons”. Dann funktioniert conky ohne Probleme (conkyrc weiter unten).

Allerdings hat man nun auch abgestellt, das PCManFM einen Hintergrund zeichnet! Um hier Abhilfe zu schaffen, braucht man ein Programm wie “feh”.

“feh” Installieren:

pacman -Sy feh

Um mit feh einen Hintergund zu zeichnen, kann z.B. folgendes Skript benutzen:

#!/bin/bash
# set bg

feh –bg-scale ~/pfad/zum/wallpaper.jpg &

Das Skript weißt “feh” an das Bild als Hintergund auf den desktop zu zeichnen. Nun das Skript noch mit

chmod +x ./setbg.sh

ausführbar machen.

Jetzt möchte man natürlich noch das sein Hintergrund bei jedem Start geladen wird, dazu einfach folgende Zeile in die Datei “~/.config/lxsession/LXDE/autostart” einfügen:

@/pfad/zum/skript/setbg.sh

Hier meine Conkyrc:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# Create own window instead of using desktop (required in nautilus)</code>
 
#avoid flicker
 
double_buffer yes
 
# ---
 
# Create own window instead of using desktop (required in nautilus)
 
#own_window yes
 
# If own_window is yes, you may use type normal, desktop or overide
 
#own_window_type desktop
 
# Use pseudo transparency with own_window?
 
#own_window_transparent yes
 
# If own_window_transparent is set to no, you can set the background colour here
 
#own_window_colour
 
# If own_window is yes, these window manager hints may be used
 
#own_window_hints below,skip_pager,sticky,skip_taskbar
 
#own_window_type override
 
# ---
 
#own window to run simultanious 2 or more conkys
 
own_window  yes
 
own_window_transparent yes
 
#own_window_type override
 
own_window_type desktop
 
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
 
#borders
 
draw_borders no
 
border_margin 1
 
#shades
 
draw_shades no
 
#position
 
gap_x 10
 
gap_y 30
 
alignment bottom_left
 
#behaviour
 
update_interval 2
 
#colour
 
#default_color  8f8f8f
 
#default_shade_color 000000
 
#own_window_colour 262626
 
#font
 
use_xft yes
 
xftfont cure:pixelsize=9
 
#to prevent window from moving
 
use_spacer none
 
minimum_size 220 0
 
#mpd
 
#mpd_host localhost
 
#mpd_port 6600
 
cpu_avg_samples 4
 
# /var/log/kernel.log
 
#    Email: ${color 8FEA26}${execi 300 python ~/apps/skripts/conky/gmail.py &amp;} ${color D7D3C5}
 
TEXT
 
${time %H:%M} ${color 8FEA26}${time %a, }${color 989898}${time %b %d %G} $alignr${color 8FEA26}UP ${color 989898}$uptime
 
${color 8FEA26}${font OpenLogos}System $font${color 989898}$kernel on $machine ${color a8a8a8}$hr
 
${color 8FEA26}CORE1${color 989898}                         $alignr${cpu cpu0}%
 
${color 8FEA26}CORE2${color 989898}                         $alignr${cpu cpu1}%
 
${color 8FEA26}CORE3${color 989898}                         $alignr${cpu cpu2}%
 
${color 8FEA26}CORE4${color 989898}                         $alignr${cpu cpu3}%
 
${color 8FEA26}${cpugraph 8FEA26 8FEA26}
 
${color 8FEA26}RAM${color 989898}$alignr$mem/$memmax - $memperc%
 
${color lightgrey}${membar}
 
${color 8FEA26}SWAP${color 989898}$alignr$swap/$swapmax - $swapperc%
 
${color lightgrey}${swapbar}
 
${color 8FEA26}R00T${color 989898}$alignr${fs_used /}/${fs_size /} - ${fs_free_perc /}%
 
$color${fs_bar /}
 
${color 8FEA26}HOME${color 989898}$alignr${fs_used /home}/${fs_size /home} - ${fs_free_perc /home}%
 
$color${fs_bar /home}
 
${color 989898}PROZESSE${color a8a8a8}$hr
 
${color 8FEA26}Name              $alignr PID    CPU% MEM%
 
${color lightgrey} ${top name 1} $alignr${top pid 1} ${top cpu 1}  ${top mem 1}
 
${color lightgrey} ${top name 2} $alignr${top pid 2} ${top cpu 2}  ${top mem 2}
 
${color lightgrey} ${top name 3} $alignr${top pid 3} ${top cpu 3}  ${top mem 3}
 
${color lightgrey} ${top name 4} $alignr${top pid 4} ${top cpu 4}  ${top mem 4}
 
${color lightgrey} ${top name 5} $alignr${top pid 5} ${top cpu 5}  ${top mem 5}
 
${color lightgrey} ${top name 6} $alignr${top pid 6} ${top cpu 6}  ${top mem 6}
 
${color 8FEA26}Mem usage
 
${color lightgrey} ${top_mem name 1} $alignr${top_mem pid 1} ${top_mem cpu 1}  ${top_mem mem 1}
 
${color lightgrey} ${top_mem name 2} $alignr${top_mem pid 2} ${top_mem cpu 2}  ${top_mem mem 2}
 
${color lightgrey} ${top_mem name 3} $alignr${top_mem pid 3} ${top_mem cpu 3}  ${top_mem mem 3}
 
${color lightgrey} ${top_mem name 4} $alignr${top_mem pid 4} ${top_mem cpu 4}  ${top_mem mem 4}
 
${color lightgrey} ${top_mem name 5} $alignr${top_mem pid 5} ${top_mem cpu 5}  ${top_mem mem 5}
 
${color lightgrey} ${top_mem name 6} $alignr${top_mem pid 6} ${top_mem cpu 6}  ${top_mem mem 6}
 
${color 989898}NETWORK${color a8a8a8}$hr
 
${color 8FEA26}down$font${color 989898}$alignr${downspeed eth0}k/s ${color 8FEA26}| $font${color 989898} ${totaldown eth0}
 
${color 8FEA26}up$font${color 989898}$alignr${upspeed eth0}k/s ${color 8FEA26}| $font${color 989898} ${totalup eth0}
 
${color #8FEA26}${downspeedgraph eth0 20,125 8FEA26} ${color #8FEA26}${upspeedgraph eth0 20,125 8FEA26}
 
${color 8FEA26}IP${color 989898}$alignr${execi 3600 curl www.whatismyip.org}
 
${color 8FEA26}IP-local${color 989898}$alignr${addr eth0}
 
${color 989898}PORTS${color a8a8a8}$hr
 
${color #8FEA26}Port(s)${alignr}#Connections
 
$color Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
 
${color #8FEA26}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 #8FEA26}Outbound Connection ${alignr} Remote Service/Port$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}
 
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
 
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}

Und hier das Ergebnis:

Ich hoffe es gibt demnächst mehr conkys auf euren LXDE Desktops ;)

maces