add the window picker

This commit is contained in:
Michael Flossmann 2024-09-11 10:45:51 +02:00
parent 2e7086dc22
commit 9b81cc6cb4
3 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{lib, pkgs, ...}:{
extra = {
packages = [
(import ./package.nix { inherit lib pkgs; })
];
config = /*Lua*/ ''
require('window-picker').setup({
hint = 'statusline-winbar', --alternative: 'floating-big-letter',
picker_config = {
statusline_winbar_picker = {
selection_display = function(char, windowid)
return table.concat({'%=', '=== ', char, ' ===', '%='})
end
},
},
highlights = {
statusline = {
focused = {
fg = '#E67e80',
bg = '#2e383c',
bold = true,
},
unfocused = {
fg = '#a7c080',
bg = '#2e383c',
bold = true,
},
},
winbar = {
focused = {
fg = '#E67e80',
bg = '#2e383c',
bold = true,
},
unfocused = {
fg = '#a7c080',
bg = '#2e383c',
bold = true,
},
},
}
})
'';
};
}