nix-files/hosts/common/programs/splatmoji.nix

25 lines
1003 B
Nix
Raw Normal View History

2022-12-16 07:46:06 +00:00
# borrows from:
# - default config: <https://github.com/cspeterson/splatmoji/blob/master/splatmoji.config>
# - wayland: <https://github.com/cspeterson/splatmoji/issues/32#issuecomment-830862566>
{ pkgs, ... }:
2022-12-16 07:46:06 +00:00
{
sane.programs.splatmoji = {
2024-01-23 16:01:27 +00:00
sandbox.method = "bwrap";
sandbox.wrapperType = "wrappedDerivation";
sandbox.whitelistWayland = true; # it calls into `fuzzel`.
persist.byStore.plaintext = [ ".local/state/splatmoji" ];
fs.".config/splatmoji/splatmoji.config".symlink.text = ''
# XXX doesn't seem to understand ~ as shorthand for `$HOME`
history_file=/home/colin/.local/state/splatmoji/history
history_length=5
2023-07-14 22:09:43 +00:00
paste_command=${pkgs.wtype}/bin/wtype -M Ctrl -k v
# rofi_command=${pkgs.wofi}/bin/wofi --dmenu --insensitive --cache-file /dev/null
rofi_command=${pkgs.fuzzel}/bin/fuzzel -d -i -w 60
xdotool_command=${pkgs.wtype}/bin/wtype
2023-07-14 22:09:43 +00:00
xsel_command=${pkgs.findutils}/bin/xargs ${pkgs.wl-clipboard}/bin/wl-copy
'';
};
2022-12-16 07:46:06 +00:00
}