use wofi for wanland
This commit is contained in:
parent
864f855598
commit
9b0ed58123
3 changed files with 18 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
||||||
shell_common.enable = true;
|
shell_common.enable = true;
|
||||||
# de_cosmic.enable = true;
|
# de_cosmic.enable = true;
|
||||||
de_gnome_xorg.enable = true;
|
de_gnome_xorg.enable = true;
|
||||||
|
# de_gnome_wayland.enable = true;
|
||||||
audio_pulse.enable = true;
|
audio_pulse.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
tty_caps_esc.enable = true;
|
tty_caps_esc.enable = true;
|
||||||
|
|
|
@ -61,7 +61,13 @@ with lib.hm.gvariant;
|
||||||
};
|
};
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||||
binding = "<Super>Space";
|
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";
|
name = "Launcher";
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/wm/keybindings" = {
|
"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;
|
enable = true;
|
||||||
plugins = with pkgs; [ rofi-calc ];
|
plugins = with pkgs; [ rofi-calc ];
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
@ -9,4 +14,7 @@
|
||||||
};
|
};
|
||||||
theme = "glue_pro_blue";
|
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