use wofi for wanland

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-10-18 17:04:22 -05:00
parent 864f855598
commit 9b0ed58123
3 changed files with 18 additions and 3 deletions

View file

@ -15,6 +15,7 @@
shell_common.enable = true;
# de_cosmic.enable = true;
de_gnome_xorg.enable = true;
# de_gnome_wayland.enable = true;
audio_pulse.enable = true;
neovim.enable = true;
tty_caps_esc.enable = true;

View file

@ -61,7 +61,13 @@ with lib.hm.gvariant;
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
binding = "<Super>Space";
command = "rofi -show";
command =
if nixConfig.mods.de_gnome_xorg.enable then
"rofi -show"
else if nixConfig.mods.de_gnome_wayland.enable then
"wofi --show drun"
else
""; # fallback in case neither is enabled
name = "Launcher";
};
"org/gnome/desktop/wm/keybindings" = {

View file

@ -1,6 +1,11 @@
{ pkgs, ... }:
{
programs.rofi = {
pkgs,
nixConfig,
lib,
...
}:
{
programs.rofi = lib.mkIf nixConfig.mods.de_gnome_xorg.enable {
enable = true;
plugins = with pkgs; [ rofi-calc ];
extraConfig = {
@ -9,4 +14,7 @@
};
theme = "glue_pro_blue";
};
programs.wofi = lib.mkIf nixConfig.mods.de_gnome_wayland.enable {
enable = true;
};
}