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

21 lines
820 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, sane-lib, ... }:
2022-12-16 07:46:06 +00:00
{
sane.user.persist.plaintext = [ ".local/state/splatmoji" ];
2023-01-30 09:27:19 +00:00
sane.user.fs.".config/splatmoji/splatmoji.config" = sane-lib.fs.wantedText ''
2023-03-10 05:30:01 +00:00
# XXX doesn't seem to understand ~ as shorthand for `$HOME`
history_file=/home/colin/.local/state/splatmoji/history
history_length=5
# TODO: wayland equiv
paste_command=xdotool key ctrl+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
# TODO: wayland equiv
xsel_command=xsel -b -i
'';
2022-12-16 07:46:06 +00:00
}