wofi -> rofi

This commit is contained in:
Casper V. Kristensen 2023-11-07 00:34:26 +01:00
parent cf32b1e4a3
commit 95dad0d419
5 changed files with 27 additions and 22 deletions

View file

@ -2,7 +2,7 @@
# Clipboard manager. It can help persist clipboard contents after closing an
# application - which otherwise isn't supported in Wayland - but that breaks
# rich content copying in general. Therefore, we only use it for clipboard
# history with wofi as a frontend.
# history with rofi as a frontend.
# https://github.com/yory8/clipman
home-manager.users.caspervk = {

View file

@ -10,6 +10,6 @@
./ssh.nix
./sway.nix
./virtd.nix
./wofi.nix
./rofi.nix
];
}

22
modules/desktop/rofi.nix Normal file
View file

@ -0,0 +1,22 @@
{ home-manager, pkgs, ... }: {
# A window switcher, application launcher and dmenu replacement. Used to open
# programs, view the clipboard history, and select emojis.
# https://github.com/davatorium/rofi
# https://github.com/lbonn/rofi (wayland fork)
# https://wiki.archlinux.org/title/rofi
home-manager.users.caspervk = {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
theme = "android_notification";
extraConfig = {
modes = "drun,emoji";
show-icons = true;
};
plugins = with pkgs; [
rofi-emoji
];
};
};
}

View file

@ -32,8 +32,9 @@
modifier = "Mod4"; # super
keybindings = lib.mkOptionDefault {
# Menu
"Mod4+backspace" = "exec wofi";
"Mod4+p" = "exec clipman pick -t wofi";
"Mod4+backspace" = "exec rofi -show drun";
"Mod4+p" = "exec clipman pick -t rofi";
"Mod4+o" = "exec rofi -show emoji";
# Lock
"Mod4+Escape" = "exec loginctl lock-session";

View file

@ -1,18 +0,0 @@
{ home-manager, ... }: {
# Rofi-inspired menu program for Wayland.
# Used to open programs and view the clipman clipboard history.
# https://hg.sr.ht/~scoopta/wofi
home-manager.users.caspervk = {
programs.wofi = {
enable = true;
settings = {
show = "drun";
allow_images = true; # show icons
gtk_dark = true;
insensitive = true;
prompt = ""; # hides 'drun' text from the search bar
};
};
};
}