From 80ae6d8af2d35b28324b01911c03373284405eca Mon Sep 17 00:00:00 2001 From: rocketcamel Date: Thu, 3 Jul 2025 18:04:03 -0700 Subject: [PATCH] fix!: migrate to wofi --- custom/wofi/config | 12 ++++++++++ custom/wofi/style.css | 52 +++++++++++++++++++++++++++++++++++++++++ nix/modules/default.nix | 2 +- nix/modules/desktop.nix | 5 ++-- nix/modules/i3.nix | 2 +- nix/modules/rofi.nix | 20 ---------------- nix/modules/wofi.nix | 20 ++++++++++++++++ 7 files changed, 88 insertions(+), 25 deletions(-) create mode 100644 custom/wofi/config create mode 100644 custom/wofi/style.css delete mode 100644 nix/modules/rofi.nix create mode 100644 nix/modules/wofi.nix diff --git a/custom/wofi/config b/custom/wofi/config new file mode 100644 index 0000000..c96fb11 --- /dev/null +++ b/custom/wofi/config @@ -0,0 +1,12 @@ +style=$HOME/.config/wofi/style.css +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= diff --git a/custom/wofi/style.css b/custom/wofi/style.css new file mode 100644 index 0000000..134c9f2 --- /dev/null +++ b/custom/wofi/style.css @@ -0,0 +1,52 @@ +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; +} diff --git a/nix/modules/default.nix b/nix/modules/default.nix index e16ab4e..cf1dd5d 100644 --- a/nix/modules/default.nix +++ b/nix/modules/default.nix @@ -12,7 +12,7 @@ ./kanata.nix ./pipewire.nix ./keys.nix - ./rofi.nix + ./wofi.nix ./desktop.nix ./zed-editor.nix ]; diff --git a/nix/modules/desktop.nix b/nix/modules/desktop.nix index 5bd093b..2fc39a6 100644 --- a/nix/modules/desktop.nix +++ b/nix/modules/desktop.nix @@ -28,7 +28,6 @@ prismlauncher feh dconf - rofi papirus-icon-theme pa_applet libnotify @@ -50,7 +49,7 @@ enable = true; wayland = true; }; - rofi.enable = true; + wofi.enable = true; services.upower.enable = true; zed.enable = true; @@ -135,7 +134,7 @@ settings = { "$mod" = "SUPER"; "$terminal" = "ghostty"; - "$menu" = "rofi -show drun -theme ~/.config/rofi/launcher.rasi"; + "$menu" = "wofi -show drun"; bind = [ "$mod, Return, exec, $terminal" diff --git a/nix/modules/i3.nix b/nix/modules/i3.nix index 8c540b7..fb89ca4 100644 --- a/nix/modules/i3.nix +++ b/nix/modules/i3.nix @@ -55,7 +55,7 @@ ]; programs.thunar.enable = true; services.tumbler.enable = true; - rofi.enable = true; + # rofi.enable = true; home-manager.users.luca = { programs = { diff --git a/nix/modules/rofi.nix b/nix/modules/rofi.nix deleted file mode 100644 index 77ab907..0000000 --- a/nix/modules/rofi.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: -{ - options.rofi = { - enable = lib.mkEnableOption "enable rofi"; - }; - - config = lib.mkIf config.rofi.enable { - home-manager.users.luca = { - - xdg.configFile = { - rofi.source = ../../custom/rofi; - }; - }; - }; -} diff --git a/nix/modules/wofi.nix b/nix/modules/wofi.nix new file mode 100644 index 0000000..cc0c0c4 --- /dev/null +++ b/nix/modules/wofi.nix @@ -0,0 +1,20 @@ +{ + pkgs, + lib, + config, + ... +}: +{ + options.wofi = { + enable = lib.mkEnableOption "enable wofi"; + }; + + config = lib.mkIf config.wofi.enable { + environment.systemPackages = with pkgs; [ wofi ]; + home-manager.users.luca = { + xdg.configFile = { + wofi.source = ../../custom/wofi; + }; + }; + }; +}