From b956df48799c69721d881297af051ba8b16f2cd3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 17 Feb 2022 09:03:42 -0800 Subject: wofi: improve the readability of the window --- users/fcuny/desktop/sway/wofi.nix | 70 +++++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 6 deletions(-) (limited to 'users/fcuny/desktop/sway') diff --git a/users/fcuny/desktop/sway/wofi.nix b/users/fcuny/desktop/sway/wofi.nix index 6368a7a..bc69e0d 100644 --- a/users/fcuny/desktop/sway/wofi.nix +++ b/users/fcuny/desktop/sway/wofi.nix @@ -6,14 +6,72 @@ ]; xdg.configFile."wofi/config".text = '' - image_size=48 - columns=3 - allow_images=true + xoffset=710 + yoffset=275 + show=drun + width=500 + height=500 + always_parse_args=true + show_all=true + print_command=true + layer=overlay insensitive=true + prompt= term=${config.wayland.windowManager.sway.config.terminal} + ''; + + xdg.configFile."wofi/style.css".text = '' + window { + margin: 0px; + border: 2px solid #414868; + border-radius: 5px; + background-color: #24283b; + font-family: monospace; + font-size: 12px; + } + + #input { + margin: 5px; + border: 1px solid #24283b; + color: #c0caf5; + background-color: #24283b; + } + + #input image { + color: #c0caf5; + } + + #inner-box { + margin: 5px; + border: none; + background-color: #24283b; + } + + #outer-box { + margin: 5px; + border: none; + background-color: #24283b; + } + + #scroll { + margin: 0px; + border: none; + } + + #text { + margin: 5px; + border: none; + color: #c0caf5; + } + + #entry:selected { + background-color: #414868; + font-weight: normal; + } - run-always_parse_args=true - run-cache_file=/dev/null - run-exec_search=true + #text:selected { + background-color: #414868; + font-weight: normal; + } ''; } -- cgit 1.4.1