brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Conky disappears while hovering mouse over it #774

Closed DanyGee closed 5 years ago

DanyGee commented 5 years ago

Issue

Conky disappears while hovering the mouse over it, when in panel/desktop window mode+above hint and other app has maximized window. Here is a video showing what I mean exactly: https://mega.nz/#!HAtDWK4b!Ns5ftsCjoUJSiwVeEfVgqcSkysUPuYKkyAN815hXT24

Would like to force it to stay on top ALWAYS.

Information

OS OS: elementary OS 5.0 Juno x86_64 Kernel: 4.15.0-43-generic Shell: bash 4.4.19 Resolution: 3840x2160 DE: Pantheon WM: Mutter(Gala) Theme: elementary [GTK3] Icons: elementary [GTK3] Terminal: io.elementary.t CPU: Intel i7-6700K (8) @ 4.300GHz GPU: NVIDIA GeForce GTX 1080 Memory: 3905MiB / 32101MiB

Hardware System: Host: elementary-os Kernel: 4.15.0-43-generic x86_64 bits: 64 gcc: 7.3.0 Desktop: Gnome (Gtk 3.22.30) Distro: elementary OS 5.0 Juno Machine: Device: desktop Mobo: ASUSTeK model: Z170-DELUXE v: Rev 1.xx serial: N/A UEFI [Legacy]: American Megatrends v: 3504 date: 06/29/2017 CPU: Quad core Intel Core i7-6700K (-MT-MCP-) arch: Skylake-S rev.3 cache: 8192 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 32064 clock speeds: max: 4300 MHz 1: 4173 MHz 2: 4154 MHz 3: 4189 MHz 4: 4284 MHz 5: 4171 MHz 6: 4147 MHz 7: 4108 MHz 8: 4150 MHz Graphics: Card: NVIDIA GP104 [GeForce GTX 1080] bus-ID: 01:00.0 Display Server: x11 (X.Org 1.19.6 ) driver: nvidia Resolution: 3840x2160@60.00hz OpenGL: renderer: GeForce GTX 1080/PCIe/SSE2 version: 4.6.0 NVIDIA 410.78 Direct Render: Yes Audio: Card-1 NVIDIA GP104 High Definition Audio Controller driver: snd_hda_intel bus-ID: 01:00.1 Card-2 Intel Sunrise Point-H HD Audio driver: snd_hda_intel bus-ID: 00:1f.3 Sound: Advanced Linux Sound Architecture v: k4.15.0-43-generic Network: Card-1: Intel Ethernet Connection (2) I219-V driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6 IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: Card-2: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter driver: bcma-pci-bridge bus-ID: 07:00.0 IF: N/A state: N/A mac: N/A Card-3: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: c000 bus-ID: 0b:00.0 IF: enp11s0 state: down mac: Drives: HDD Total Size: 2570.6GB (3.5% used) ID-1: /dev/sda model: Samsung_SSD_850 size: 256.1GB ID-2: /dev/sdb model: Samsung_SSD_850 size: 1024.2GB ID-3: /dev/sdc model: Crucial_CT1050MX size: 1050.2GB ID-4: /dev/sdd model: KINGSTON_SH100S3 size: 120.0GB ID-5: /dev/sde model: KINGSTON_SV300S3 size: 120.0GB Partition: ID-1: / size: 110G used: 85G (81%) fs: ext4 dev: /dev/sde1 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 40.0C mobo: N/A gpu: 0.0:54C Fan Speeds (in rpm): cpu: 0 Info: Processes: 276 Uptime: 5:54 Memory: 3521.4/32101.8MB Init: systemd runlevel: 5 Gcc sys: 7.3.0 Client: Shell (bash 4.4.191) inxi: 2.3.56

Conky conky 1.11.2_pre compiled Wed Jan 23 08:50:28 CET 2019 for Linux 4.15.0-43-generic x86_64

Compiled in features: System config file: /etc/conky/conky.conf Package library path: /usr/local/lib/conky

General:

config

# ========================================================================================= #
#     conky eOS = code Daniel Grochala aka Dany Gee = Telegram >> https://t.me/DanyGee      #
#========================================================================================== #
# - SETTINGS - #
update_interval 2
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0

# — WINDOW — #
own_window yes
own_window_type panel    # desktop, dock, panel - to place it even under the taskbars # normal - to place it on the user's desktop area 
own_window_class conky
own_window_transparent yes
#own_window_argb_value 10 #value glass 0-250 full
own_window_argb_visual yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,above
background no

# — BORDER — #
border_inner_margin 1
border_outer_margin 1
border_width 1

# — SIZE — #
minimum_size 3100
maximum_width 3100
#default_bar_size 240 8

# — ALIGNMENT — #
alignment tm
#alignment tl
#alignment tr
gap_x -100
gap_y 16

# — GRAPHIC — #
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
#default_shade_color
#default_outline_color 909090
#own_window_colour 808080

# — TEXT — #
use_xft yes
xftfont Dejavu Sans:size=8
xftalpha 1.0
uppercase no
override_utf8_locale yes
#default_color 666
#default_color 3ed3d5

# — Colors — #
#color1 404040 #gray

TEXT
lasers commented 5 years ago

Can you try this on other WM/DE too to rule out Pantheon?

I wonder the solution is to muck around with ~/.config/gtk-3.0/gtk.css because of... ...becomes opaque when a maximized window occupies your screen..

Wingpanel could have something to make it fully opaque when you hover over the maximized panel.

DanyGee commented 5 years ago

Yeah, thought that too :thinking: Already disabled wingpanel BG...maybe I need to disable another section of the code. Will try it. As to testing on another distro - don't know of any that has a panel acting like wingpanel.

lasers commented 5 years ago

https://github.com/elementary/stylesheet/blob/master/elementary/gtk-3.0/apps.css

Try:

.panel.maximized {
    background-color: transparent;
}
.panel.translucent {
    background-color: transparent;
}

EDIT: I think you just told me you did that.

DanyGee commented 5 years ago

Tried this earlier - it removes the BG completely (same as commenting this whole section). There must be some "hover" code implemented elsewhere... Linux WM/DE's are full of nasty tricks :wink:

lasers commented 5 years ago

If you don't find a solution, ask elementary/stylesheet -- They should be able to help you out. :-)

lasers commented 5 years ago

I see your issue. I take it wingpanel is covering up the panel for UX reasons rather than conky disappearing. I will go ahead and close this.

P.S. You can convert your configs to 1.10 syntax too. [link]

DanyGee commented 5 years ago

I have a really hard time running that freakin lua script :angry: What am I doing wrong? :thinking:

lua -v
Lua 5.2.4  Copyright (C) 1994-2015 Lua.org, PUC-Rio
convert.lua conky_eOS conky_eOS_new
convert.lua: command not found
./convert.lua conky_eOS conky_eOS_new
./convert.lua: line 4: local: can only be used in a function
./convert.lua: line 5: Usage:: command not found
./convert.lua: line 6: Tries: command not found
./convert.lua: line 7: Keep: command not found
./convert.lua: line 8: with: command not found
./convert.lua: line 9: should: command not found
./convert.lua: line 10: Although: command not found
./convert.lua: line 22: unexpected EOF while looking for matching `"'
./convert.lua: line 157: syntax error: unexpected end of file
lua convert.lua conky_eOS conky_eOS_new
lua: convert.lua:2: unexpected symbol near '#'
lasers commented 5 years ago

Can you paste the config? I'll try it from my side.

DanyGee commented 5 years ago

Sure, catch:

# - SETTINGS - #
update_interval 2
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0

# — WINDOW — #
own_window yes
own_window_type panel     # desktop, dock, panel - to place it even under the taskbars # normal - to place it on the user's desktop area 
own_window_class conky
own_window_transparent yes
#own_window_argb_value 10 #value glass 0-250 full
own_window_argb_visual yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,above
background no

# — BORDER — #
border_inner_margin 1
border_outer_margin 1
border_width 1

# — SIZE — #
minimum_size 3100
maximum_width 3100
#default_bar_size 240 8

# — ALIGNMENT — #
alignment tm
#alignment tl
#alignment tr
gap_x -100
gap_y 16

# — GRAPHIC — #
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
#default_shade_color
#default_outline_color 909090
#own_window_colour 808080

# — TEXT — #
use_xft yes
xftfont Dejavu Sans:size=8
xftalpha 1.0
uppercase no
override_utf8_locale yes
#default_color 666
#default_color 3ed3d5

# — Colors — #
#color1 FFFFFF #white
#color1 404040 #gray

#image placement example
#${image /home/USER/.conky/Conky-Horizontal-1/img/deepin_logo_day.png -p 1110,25 -s 80x80}

TEXT
#========================Memory section =====================================================================================
$color1${voffset -14}${goto 70}${font Poky:size=15}M${goto 120}${voffset -10}${font :size=8:condensed:bold}${memperc}${goto 155}%
#======================= Drive Section =======================================================================================
${voffset -42}${goto 200}${font Poky:size=15}y$font${goto 250}${voffset -10}${font :size=8:condensed:bold}${fs_used_perc /} %${goto 320}${diskiograph 20,40}
#======================= Distro Section =======================================================================================
${goto 380}${voffset -30}${font LogoGlyphs:size=14}e${goto 430}${voffset -18}${font micra:size=5}Elementary OS >> JUNO ${font}
${goto 590}${voffset -22}${font :size=4}${kernel}
#==================== Network Section ========================================================================================
${goto 710}${voffset -35}${font PizzaDude Bullets:size=15}S${font}${goto 760}${voffset -15}${font :size=7}${downspeed enp0s31f6}
${goto 760}${voffset -3}${font Dejavu Sans:size=7:condensed:bold}${totaldown enp0s31f6}$font${goto 845}${voffset -10} ${downspeedgraph enp0s31f6 20,40}
${goto 900}${voffset -35}${font PizzaDude Bullets:size=15}M${font}${goto 950}${voffset -15}${font :size=7}${upspeed enp0s31f6}
${goto 950}${voffset -3}${font Dejavu Sans:size=7:condensed:bold}${totalup enp0s31f6}$font${goto 1032}${voffset -10} ${upspeedgraph enp0s31f6 20,40}
#=================== Processor Section ======================================================================================
${goto 1810}${voffset -49}${font Poky:size=15}P$font${goto 1865}${voffset -10}${font :size=8:condensed:bold}${cpu cpu0}${goto 1900}%${goto 1930}${exec sensors |grep Package | cut -c17-18}°C
${voffset -24}${goto 2000}${cpugraph 20,40}
#=================== GPU Section ======================================================================================
${goto 2055}${voffset -45}${font Poky:size=15}N$font${goto 2115}${voffset -10}${font :size=8:condensed:bold}${exec nvidia-smi |grep %  | cut -c3-8}${goto 2180}${exec nvidia-smi |grep %  | cut -c9-10}°C
#=================== Weather Section ======================================================================================
${goto 2260}${voffset -28}${font ConkyWeather:size=15}g${font}
${font Dejavu Sans:size=6:condensed}${voffset -47}${goto 2310}Current conditions » ${goto 2320}${execi 1800 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'Currently in ' | sed 's/<description>//' | sed 's/Currently in //' | sed 's/"//g' | sed 's/&#176;/°/' | sed 's/.$//'}
${voffset -2}${goto 2310}Tomorrow's forecast » ${goto 2340}${execi 1800 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'High: ' | sed 's/High: //' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/^\(.\{80\}\).*/\1/' | sed 's/ C/ °C/g' | sed '1!d' | sed 's/&.*$//'}
${voffset -398}
# ---- THE END CODE ------ #
lasers commented 5 years ago
conky.config = {
-- ========================================================================================= #
--        conky eOS
--========================================================================================== #
-- - SETTINGS - #
    update_interval = 2,
    cpu_avg_samples = 2,
    net_avg_samples = 2,
    double_buffer = true,
    no_buffers = true,
    text_buffer_size = 1024,
    imlib_cache_size = 0,

-- — WINDOW — #
    own_window = true,
    own_window_type = 'panel',-- desktop, dock, panel - to place it even under the taskbars # normal - to place it on the user's desktop area 
    own_window_class = 'conky',
    own_window_transparent = true,
--own_window_argb_value 10 #value glass 0-250 full
    own_window_argb_visual = true,
    own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,above',
    background = false,

-- — BORDER — #
    border_inner_margin = 1,
    border_outer_margin = 1,
    border_width = 1,

-- — SIZE — #
    minimum_width = 3100,
    maximum_width = 3100,
--default_bar_size 240 8

-- — ALIGNMENT — #
    alignment = 'top_middle',
--alignment tl
--alignment tr
    gap_x = -100,
    gap_y = 16,

-- — GRAPHIC — #
    draw_shades = true,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
--default_shade_color
--default_outline_color 909090
--own_window_colour 808080

-- — TEXT — #
    use_xft = true,
    font = 'Dejavu Sans:size=8',
    xftalpha = 1.0,
    uppercase = false,
    override_utf8_locale = true,
--default_color 666
--default_color 3ed3d5

-- — Colors — #
--color1 FFFFFF #white
--color1 404040 #gray

--image placement example
--${image /home/USER/.conky/Conky-Horizontal-1/img/deepin_logo_day.png -p 1110,25 -s 80x80}

};

conky.text = [[
#========================Memory section =====================================================================================
$color1${voffset -14}${goto 70}${font Poky:size=15}M${goto 120}${voffset -10}${font :size=8:condensed:bold}${memperc}${goto 155}%
#======================= Drive Section =======================================================================================
${voffset -42}${goto 200}${font Poky:size=15}y$font${goto 250}${voffset -10}${font :size=8:condensed:bold}${fs_used_perc /} %${goto 320}${diskiograph 20,40}
#======================= Distro Section =======================================================================================
${goto 380}${voffset -30}${font LogoGlyphs:size=14}e${goto 430}${voffset -18}${font micra:size=5}Elementary OS >> JUNO ${font}
${goto 590}${voffset -22}${font :size=4}${kernel}
#==================== Network Section ========================================================================================
${goto 710}${voffset -35}${font PizzaDude Bullets:size=15}S${font}${goto 760}${voffset -15}${font :size=7}${downspeed enp0s31f6}
${goto 760}${voffset -3}${font Dejavu Sans:size=7:condensed:bold}${totaldown enp0s31f6}$font${goto 845}${voffset -10} ${downspeedgraph enp0s31f6 20,40}
${goto 900}${voffset -35}${font PizzaDude Bullets:size=15}M${font}${goto 950}${voffset -15}${font :size=7}${upspeed enp0s31f6}
${goto 950}${voffset -3}${font Dejavu Sans:size=7:condensed:bold}${totalup enp0s31f6}$font${goto 1032}${voffset -10} ${upspeedgraph enp0s31f6 20,40}
#=================== Processor Section ======================================================================================
${goto 1810}${voffset -49}${font Poky:size=15}P$font${goto 1865}${voffset -10}${font :size=8:condensed:bold}${cpu cpu0}${goto 1900}%${goto 1930}${exec sensors |grep Package | cut -c17-18}°C
${voffset -24}${goto 2000}${cpugraph 20,40}
#=================== GPU Section ======================================================================================
${goto 2055}${voffset -45}${font Poky:size=15}N$font${goto 2115}${voffset -10}${font :size=8:condensed:bold}${exec nvidia-smi |grep %  | cut -c3-8}${goto 2180}${exec nvidia-smi |grep %  | cut -c9-10}°C
#=================== Weather Section ======================================================================================
${goto 2260}${voffset -28}${font ConkyWeather:size=15}g${font}
${font Dejavu Sans:size=6:condensed}${voffset -47}${goto 2310}Current conditions » ${goto 2320}${execi 1800 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'Currently in ' | sed 's/<description>//' | sed 's/Currently in //' | sed 's/"//g' | sed 's/&#176;/°/' | sed 's/.$//'}
${voffset -2}${goto 2310}Tomorrow's forecast » ${goto 2340}${execi 1800 curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|PL|PL002|BYDGOSZCZ" | grep 'High: ' | sed 's/High: //' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | sed -e 's/^\(.\{80\}\).*/\1/' | sed 's/ C/ °C/g' | sed '1!d' | sed 's/&.*$//'}
${voffset -398}
# ---- THE END CODE ------ #
]];
DanyGee commented 5 years ago

Damn :eyes: Thanks!

lasers commented 5 years ago

Should I remove your email or leave it as-is? :eyes:

DanyGee commented 5 years ago

Yeah, remove the whole contact section just like I did :smile: