Replace rofi with fuzzel

Sway: disable shadows
This commit is contained in:
Evie Litherland-Smith 2024-05-27 14:41:34 +01:00
parent 52235b6bbe
commit 54d4ff1487
2 changed files with 49 additions and 5 deletions

View file

@ -9,7 +9,7 @@
imports = [ imports = [
./alacritty/default.nix ./alacritty/default.nix
./avizo/default.nix ./avizo/default.nix
./rofi/default.nix ./fuzzel/default.nix
./swaylock/default.nix ./swaylock/default.nix
./swayidle/default.nix ./swayidle/default.nix
./swaync/default.nix ./swaync/default.nix
@ -56,7 +56,7 @@
}; };
modifier = "Mod4"; modifier = "Mod4";
terminal = "${config.programs.alacritty.package}/bin/alacritty"; terminal = "${config.programs.alacritty.package}/bin/alacritty";
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun"; menu = "${config.programs.fuzzel.package}/bin/fuzzel";
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
bars = []; bars = [];
gaps = { gaps = {
@ -173,12 +173,12 @@
blur_passes 3 blur_passes 3
blur_radius 5 blur_radius 5
corner_radius 10 corner_radius 10
shadows enable shadows disable
shadow_blur_radius 4 shadow_blur_radius 0
layer_effects "system-menu" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "system-menu" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "gtk-layer-shell" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "gtk-layer-shell" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "launcher" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "rofi" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "avizo" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "avizo" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows disable
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows disable layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows disable

View file

@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
fonts,
accentColour ? "base07",
...
}: {
programs.fuzzel = {
enable = true;
settings = {
main = {
dpi-aware = false;
font = "${fonts.monospace.name}:size=${toString fonts.sizes.applications}";
icon-theme = config.gtk.iconTheme.name;
icons-enabled = true;
fields = "filename,name,generic,categories";
fuzzy = true;
terminal = with config.programs; "${
if alacritty.enable
then alacritty.package
else pkgs.alacritty
}/bin/alacritty -e";
lines = 40;
width = 80;
tabs = 4;
layer = "overlay";
};
colors = with config.scheme; {
background = "${base00}5A"; # 90% opacity
text = "${base05}FF";
match = "${red}FF";
selection = "${base01}FF";
selection-text = "${base05}FF";
selection-match = "${red}FF";
border = "${config.scheme.${accentColour}}FF";
};
border = {
width = 1;
radius = 10;
};
};
};
}