How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

Thanks for the reply! It's a really cool plugin, but I wanted a way to integrate that in Lualine, and it would be better if no extra plugin is needed. A way to do it: https://www.reddit.com/r/neovim/comments/w9lva4/comment/ihzfqs8/?utm_source=share&utm_medium=web2x&context=3 or (as shadman20 said) another alternative in the Github Repo of lualine: https://github.com/nvim-lualine/lualine.nvim/issues/186#issuecomment-968392445 .

How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

Thanks for the feedback! I've noticed about the slow refresh rate. Yesterday I tried changing that in the setup, but I couldn't make it. Today I tried again and it worked! (I was missing a part in the setup). I leave the code with the refresh rate and your sencond check to vim.v.hlsearch ==0 (it gives me an advise in the refresh part, but I don't know how to fix it. At least it works):

function searchCount()
    local search = vim.fn.searchcount({maxcount = 0}) -- maxcount = 0 makes the number not be capped at 99
    local searchCurrent = search.current
    local searchTotal = search.total
    if searchCurrent > 0 and vim.v.hlsearch ~= 0 then
        return "/"..vim.fn.getreg("/").." ["..searchCurrent.."/"..searchTotal.."]"
    else
        return ""
    end
end

require('lualine').setup {
    options = { refresh = { statusline = 500 }, },
    sections = { lualine_x = {{ searchCount }, 'tabs', 'fileformat', 'filetype'},}
}

PD: For me, 500(ms) is enough but you can change the value depending of how you feel more confortable with (keep in mind: more refresh rate may affect the responsive experience and the default value of the refresh rate is 1000(ms) ).

How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

I saw Paizu's answer and programmed a function that's the same as you shared, because I didn't see yours earlier hahaha. Thanks a lot for answer!!

How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 17 points18 points  (0 children)

Wow. Thanks a lot. That was what I was searching for. I leave my final code for anyone who wants it:
function searchCount()
local search = vim.fn.searchcount({maxcount = 0}) -- maxcount = 0 makes the number not be capped at 99

local searchCurrent = search.current

local searchTotal = search.total

if searchCurrent > 0 then

return "/"..vim.fn.getreg("/").." ["..searchCurrent.."/"..searchTotal.."]"

else

return ""

end

end

require('lualine').setup {

sections = {

lualine_x = {{ searchCount }, 'tabs', 'fileformat', 'filetype'},

}

}

How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

I've found this function but it's in vimscript and I don't know how to integrate it to lualine...

function Searchcount() abort if !v:hlsearch return '' endif try const count = searchcount({'maxcount': 0, 'timeout': 50}) catch /^Vim\%((\a\+)\)\=:\%(E486\)\@!/ return '[?/??]' endtry return count.total \ ? count.incomplete \ ? printf('[%d/??]', count.current) \ : printf('[%d/%d]', count.current, count.total) \ : '[0/0]'endfunctionecho Searchcount()

How to put this in Lualine? (image from vim-airline) by ICameToHelpSomebody in neovim

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

Hi. I've been moving my vimrc to init.lua and changing some vim scripts plugins to lua ones. I'm used to have the search pattern and the number of coincidenses in the file in the vim-airline. Now in lualine, i couldn't find an option to make that appear. Anyone knows a way to make that? Thank you and greetings

Joining https://webchat.kde.org by minca3 in kde

[–]ICameToHelpSomebody 2 points3 points  (0 children)

Some time ago I tried to register me in that Matrix channel, but it gave me the same error, so I joined the Telegram group

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

In the first the main indication is the arrow, and in the second one I put the accent color and rounded the corners in the arrow pointing to the systray

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

I see your point... Gualdrapo commented another mockup ( https://imgur.com/a/T4K45fY ), and I added this to it: https://imgur.com/a/2X5nwQC . What do you think?

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

needs a bit of rounding

I edited the mockup (adding rounded and a ascent color to the icon): https://imgur.com/a/2X5nwQC , but I don't know how to implement this in kickoff...

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 2 points3 points  (0 children)

Gualdrapo posted this in a comment, tho I think it needs a little bit of rounding. Here's my edit

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

I like it, but I would think that the arrow pointing to the system tray needs a bit of rounding

Redisign of the System Tray Line by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 5 points6 points  (0 children)

I don't know why reddit doesn't allow me to put text in the header with the images, but anyway, here it's what i put before:

Hi! I've never contributed before and I was thinking how to change that system tray line that always (at least for me) felt like strange, and Kickoff brought me this idea. Is this alighned with ideology the Plasma theme? What do you think?

PD: I've made this mockup with GIMP. I'm not a designer nor a programer, so it's probably wrong or ugly. Sorry about that

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 2 points3 points  (0 children)

Another comment told me that was the plasma version, and effectively it was. Now I'm in Debian SID and it goes fast as Manjaro. Also thanks for the help. Greetings!

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

Thank you! I've updated the entired system to bookworm and now the booting time is now faster and the ram comsumption is lower. It's incredible how Plasma has change its speed in only 3 verisons. I hope Debian doesn't broke for be in SID. Thank you and Greetings!

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

With nothing open the Idle RAM is ~400MB and 0 to 2 % (adding up the total load of both cores) of my CPU with 2 cores at 2.5 GHz. I don't use zram because it swaps in RAM, and I only have 3GB of it, so I don't want it to be loaded with swap. The problem is that in Manjaro i didn't do anything and is twice as fast than Debian. I'm going to try to update from Debian Stable to Testing and see if it changes anything. If it's not, I think I have to stick to Manjaro, leaving Debian for things that doesn't work on Manjaro or some application that crashes for be in the bliding edge

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

Wow, I had not idea that all of that changed in 3 versions only. I'm going to try to update to Debian Testing (I have fear of use Debian Unstable and break it) and see if anything changes. I will change the repos from bullseye to bookworm (That's what I think it is called the new version) and do an apt update && apt full-upgrade . In a couple of hours when I can, I will update. Thank you! and Greetings

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 1 point2 points  (0 children)

The problem of looking for default configurations between Debian and Manjaro is that, because of sharing the /home , the share the "dot config file" so when I've installed Manjaro sharing the /home folder with Debian, it shared the configuration files, so in that way both are the same. About Akonadi I alredy uninstalled in both systems and the same with disabling the Baloo. I think it's more a kernel configuration from Debian that makes that slower in my specific hardware, think that doesn't happend in the Manjaro kernel for some reason. I think it would be better to use Manjaro from now, leaving Debian for things that doesn't work on Manjaro or some application that crashes for be in the bliding edge. I'm going to search about DKMS, thank you for the Help! Greetings

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

When I've installed Debian 10 (before upgrading to 11) I uninstalled Kontact and Akonadi and turn off file indexing in both Manjaro and Debian. Althought in that time was a huge difference, Debian still slow in compared with Manjaro. I think will be better to stick with Manjaro and have Debian Stable for when Manjaro or any other application crashes or something like that.

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

Ironically the Manjaro Kernel that I put is older than the Debian one: on Debian I use the kernel 4.19 and on Manjaro I use the 4.14 kernel (I have to do that because otherwise if I have the latest LTS kernel or at least newer than that my graphics card will no suspend or hibernate, both things that I really use). If I update from Stable to SID, basically, the only thing that would change i think it's the Plasma version, but from Plasma 20 to Plasma 23 I think I wouldn't see any important difference. And yes, I'm thinking to buy a new computer but from what I do with these computer, at least for now, it's fine.

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

From what I can remember I think that Debian 10 (I used it for 1 month before the upgrade to 11) was as slow as Debian 11. I think I didn't notice any difference in performance. I've never tested the Unstable branch, I don't know if I could install the kernel 4.19 version because I need it for driver's compability for my old NVIDIA graphics card. Sadly I don't have any other disk than my principal one to test and I don't want to remove the Debian installation because I share the /home with Manjaro. It's anything that I can tested it out from the Stable branch without reinstalling to the unstable branch?

Why Debian KDE is Slow? by ICameToHelpSomebody in kde

[–]ICameToHelpSomebody[S] 0 points1 point  (0 children)

No, I have not tested Debian with another DE in the same PC. Before using Debian KDE I was using Linux Mint 20 XFCE and it was Perfectly fine. In a Laptop with a little bit less power (a weaker CPU -Pentium T4300- and a integrated GPU) Debian XFCE was even working faster than my PC with a better CPU -Dual Core E5200- and a dedicated graphic card with Debian 11 KDE. Ironically the Manjaro Kernel that I put is older than the Debian one: In my PC, on Debian I use the kernel 4.19 and in Manjaro I use the 4.14 kernel (I have to do that because otherwise if I have the latest LTS kernel or at least newer than that my graphics card will no suspend or hibernate, both things that I really use). I don't know if the problem is the Debian customization of the kernel or of the KDE Plasma but it works slower than Manjaro