sway: snippets: port from fuzzel -> rofi

This commit is contained in:
2024-02-28 01:26:22 +00:00
parent 409a4db232
commit 4c6c470c86
2 changed files with 2 additions and 3 deletions

View File

@@ -109,7 +109,6 @@ in
"brightnessctl"
"conky" # for a nice background
"fontconfig"
"fuzzel"
# "gnome.gnome-bluetooth" # XXX(2023/05/14): broken
# "gnome.gnome-control-center" # XXX(2023/06/28): depends on webkitgtk4_1
"pipewire"

View File

@@ -11,13 +11,13 @@ let
snip_cmd_pkg = writeShellApplication {
name = "type-snippet";
runtimeInputs = [
prog.fuzzel.package
prog.rofi.package
prog.gnused.package
prog.wtype.package
];
text = ''
snippet=$(cat ${./snippets.txt} ~/.config/sane-sway/snippets.txt | \
fuzzel -d -i -w 60 | \
rofi -dmenu | \
sed 's/ #.*$//')
wtype "$snippet"
'';