mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-25 16:13:09 +01:00
11 lines
180 B
Nix
11 lines
180 B
Nix
{ 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
|
|
''
|