zaneyos/config/scripts/rofi-launcher.nix

11 lines
180 B
Nix
Raw Normal View History

{ pkgs }:
pkgs.writeShellScriptBin "rofi-launcher" ''
if pgrep -x "rofi" > /dev/null; then
# Rofi is running, kill it
pkill -x rofi
exit 0
fi
rofi -show drun
''