init (podpierdolenie)
This commit is contained in:
9
scripts/rofi-launcher.nix
Normal file
9
scripts/rofi-launcher.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{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
|
||||
''
|
||||
Reference in New Issue
Block a user