clipman + wofi
This commit is contained in:
parent
0ea8a43135
commit
db2b707ef4
3 changed files with 29 additions and 14 deletions
18
modules/desktop/clipman.nix
Normal file
18
modules/desktop/clipman.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ home-manager, lib, pkgs, ... }: {
|
||||||
|
# https://github.com/yory8/clipman
|
||||||
|
|
||||||
|
home-manager.users.caspervk = {
|
||||||
|
services.clipman = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# The home manager module doesn't use --no-persist, but it is required if you want to copy images
|
||||||
|
# https://github.com/yory8/clipman/issues/59
|
||||||
|
# https://github.com/nix-community/home-manager/blob/master/modules/services/clipman.nix
|
||||||
|
systemd.user.services.clipman = {
|
||||||
|
Service = {
|
||||||
|
ExecStart = lib.mkForce "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store --no-persist";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
|
./clipman.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
|
|
|
@ -36,7 +36,8 @@
|
||||||
modifier = "Mod4"; # super
|
modifier = "Mod4"; # super
|
||||||
keybindings = lib.mkOptionDefault {
|
keybindings = lib.mkOptionDefault {
|
||||||
# Menu
|
# Menu
|
||||||
"Mod4+backspace" = "exec rofi -show combi";
|
"Mod4+backspace" = "exec wofi";
|
||||||
|
"Mod4+p" = "exec clipman pick -t wofi";
|
||||||
|
|
||||||
# Lock
|
# Lock
|
||||||
"Mod4+Escape" = "exec loginctl lock-session";
|
"Mod4+Escape" = "exec loginctl lock-session";
|
||||||
|
@ -184,20 +185,15 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/davatorium/rofi
|
# https://hg.sr.ht/~scoopta/wofi
|
||||||
# https://github.com/lbonn/rofi (wayland fork)
|
programs.wofi = {
|
||||||
# https://wiki.archlinux.org/title/rofi
|
|
||||||
programs.rofi = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi-wayland;
|
settings = {
|
||||||
plugins = with pkgs; [
|
show = "drun";
|
||||||
rofi-emoji
|
allow_images = true;
|
||||||
];
|
gtk_dark = true;
|
||||||
theme = "glue_pro_blue";
|
insensitive = true;
|
||||||
extraConfig = {
|
prompt = ""; # hides 'drun' from the search bar
|
||||||
modi = "combi";
|
|
||||||
combi-modi = "window,drun,emoji";
|
|
||||||
show-icons = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue