From 713d0476c69c06d6baad9568c0d4def8c1e9fae9 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 25 Feb 2022 06:42:48 -0800 Subject: sway: re-organize the modules Rename 'sway' to 'wm' to make it more generic; rename some of the other modules (e.g. 'wofi' to 'launcher'), for the same reason. --- users/fcuny/desktop/wm/launcher.nix | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 users/fcuny/desktop/wm/launcher.nix (limited to 'users/fcuny/desktop/wm/launcher.nix') diff --git a/users/fcuny/desktop/wm/launcher.nix b/users/fcuny/desktop/wm/launcher.nix new file mode 100644 index 0000000..bc69e0d --- /dev/null +++ b/users/fcuny/desktop/wm/launcher.nix @@ -0,0 +1,77 @@ +{ pkgs, config, ... }: + +{ + home.packages = with pkgs; [ + wofi + ]; + + xdg.configFile."wofi/config".text = '' + 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; + } + + #text:selected { + background-color: #414868; + font-weight: normal; + } + ''; +} -- cgit v1.2.3