[dev] [dmenu] clipmenu with dmenu problem hig cpu usage

From: C Schu <kristoferus75_AT_gmail.com>
Date: Fri, 6 Nov 2020 20:12:28 +0100

Hi !

a problem with dmenu and clipmenu (with rofi no problem)

testet with this version of dmenu without patches:

dmenu 4.8
dmenu 4.9
dmenu 5.0

Please look at :

https://github.com/cdown/clipmenu/issues/145

if i press the keys to open clipboard again a delay since dmenu open
-> and also i see high cpu usage !

if i clear clipboard -> it work again a time period without problem
and then again this issue !


if i start this command i see all lines immediately

bash -x clipmenu



: dmenu
: /home/user/.cache
: 8
major_version=6
shopt -s nullglob
cache_dir=/home/user/.cache/clipmenu.6.user
cache_file=/home/user/.cache/clipmenu.6.user/line_cache
[[ '' == --help ]]
[[ '' == -h ]]
launcher_args=(-l "${CM_HISTLENGTH}")
[[ dmenu == fzf ]]
[[ dmenu == rofi ]]
[[ dmenu == rofi-script ]]
++ list_clips
++ dmenu -l 8
++ LC_ALL=C
++ sort -rnk 1
++ cut '-d ' -f2-
++ awk '!seen[$0]++'

and also i see dmenu immediately but cpu usage is very high and it is
slow if i scroll in dmenu


the problem is since i copy lines from libreoffice table like this:


xxxxxxxxxxxxx 20.20.20.20 192.168.29 /24 xxxxx-8P 10.9.68 10.91.68
10.92.68 10.191.68 10.192.68 10.193.68 10.99.68 172.23.68 172.24.68
172.33.68 172.34.68

regards
Received on Fri Nov 06 2020 - 20:12:28 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 06 2020 - 20:24:07 CET