add splatmoji package and sway config
This commit is contained in:
@@ -96,6 +96,8 @@ in
|
||||
# - <https://www.youtube.com/watch?v=d_11QaTlf1I>
|
||||
snip-file = ./snippets.txt;
|
||||
snip-cmd = "${wtype} $(cat ${snip-file} | ${fuzzel} -d -i)";
|
||||
# TODO: next splatmoji release should allow `-s none` to disable skin tones
|
||||
emoji-cmd = "${pkgs.splatmoji}/bin/splatmoji -s medium-light type";
|
||||
in rec {
|
||||
terminal = kitty;
|
||||
window = {
|
||||
@@ -131,6 +133,7 @@ in
|
||||
"${modifier}+d" = "exec ${menu}";
|
||||
"${modifier}+s" = "exec ${snip-cmd}";
|
||||
"${modifier}+l" = "exec ${lock-cmd}";
|
||||
"${modifier}+slash" = "exec ${emoji-cmd}";
|
||||
|
||||
# "${modifier}+${left}" = "focus left";
|
||||
# "${modifier}+${down}" = "focus down";
|
||||
|
@@ -26,6 +26,7 @@ in
|
||||
./mpv.nix
|
||||
./nb.nix
|
||||
./neovim.nix
|
||||
./splatmoji.nix
|
||||
./ssh.nix
|
||||
./sublime-music.nix
|
||||
./vlc.nix
|
||||
|
20
modules/home-manager/splatmoji.nix
Normal file
20
modules/home-manager/splatmoji.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
# borrows from:
|
||||
# - default config: <https://github.com/cspeterson/splatmoji/blob/master/splatmoji.config>
|
||||
# - wayland: <https://github.com/cspeterson/splatmoji/issues/32#issuecomment-830862566>
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.colin = {
|
||||
xdg.configFile."splatmoji/splatmoji.config".text = ''
|
||||
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 80
|
||||
xdotool_command=${pkgs.wtype}/bin/wtype
|
||||
# TODO: wayland equiv
|
||||
xsel_command=xsel -b -i
|
||||
'';
|
||||
};
|
||||
}
|
@@ -45,6 +45,7 @@
|
||||
browserpass-extension = prev.callPackage ./browserpass-extension { };
|
||||
gopass-native-messaging-host = prev.callPackage ./gopass-native-messaging-host { };
|
||||
tokodon = prev.libsForQt5.callPackage ./tokodon { };
|
||||
splatmoji = prev.callPackage ./splatmoji { };
|
||||
# trust-dns = prev.callPackage ./trust-dns { };
|
||||
# kaiteki = prev.kaiteki;
|
||||
})
|
||||
|
37
pkgs/splatmoji/default.nix
Normal file
37
pkgs/splatmoji/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "splatmoji";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cspeterson";
|
||||
repo = "splatmoji";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-fsZ8FhLP3vAalRJWUEi/0fe0DlwAz5zZeRZqAuwgv/U=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# TODO: generate a wrapper so that bin/lib, bin/data aren't linked into the environment?
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp splatmoji $out/bin
|
||||
cp -R lib $out/bin/lib
|
||||
cp -R data $out/bin/data
|
||||
cp splatmoji.config $out/bin
|
||||
|
||||
patchShebangs $out/bin/splatmoji
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quickly look up and input emoji and/or emoticons/kaomoji on your GNU/Linux desktop via pop-up menu";
|
||||
homepage = "https://github.com/cspeterson/splatmoji";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ colinsane ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user