wofi -> rofi
This commit is contained in:
parent
cf32b1e4a3
commit
95dad0d419
|
@ -2,7 +2,7 @@
|
||||||
# Clipboard manager. It can help persist clipboard contents after closing an
|
# Clipboard manager. It can help persist clipboard contents after closing an
|
||||||
# application - which otherwise isn't supported in Wayland - but that breaks
|
# application - which otherwise isn't supported in Wayland - but that breaks
|
||||||
# rich content copying in general. Therefore, we only use it for clipboard
|
# 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
|
# https://github.com/yory8/clipman
|
||||||
|
|
||||||
home-manager.users.caspervk = {
|
home-manager.users.caspervk = {
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./virtd.nix
|
./virtd.nix
|
||||||
./wofi.nix
|
./rofi.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
22
modules/desktop/rofi.nix
Normal file
22
modules/desktop/rofi.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -32,8 +32,9 @@
|
||||||
modifier = "Mod4"; # super
|
modifier = "Mod4"; # super
|
||||||
keybindings = lib.mkOptionDefault {
|
keybindings = lib.mkOptionDefault {
|
||||||
# Menu
|
# Menu
|
||||||
"Mod4+backspace" = "exec wofi";
|
"Mod4+backspace" = "exec rofi -show drun";
|
||||||
"Mod4+p" = "exec clipman pick -t wofi";
|
"Mod4+p" = "exec clipman pick -t rofi";
|
||||||
|
"Mod4+o" = "exec rofi -show emoji";
|
||||||
|
|
||||||
# Lock
|
# Lock
|
||||||
"Mod4+Escape" = "exec loginctl lock-session";
|
"Mod4+Escape" = "exec loginctl lock-session";
|
||||||
|
|
|
@ -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
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue