use wofi for wanland
This commit is contained in:
parent
864f855598
commit
9b0ed58123
3 changed files with 18 additions and 3 deletions
|
@ -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" = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue