From fdec6ed81ce662e9784644a7ab3f0a7657da0b88 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 16 Oct 2024 00:40:40 +0200 Subject: [PATCH] add tofi commandw --- docs/TODO.md | 1 - home/scripts/system/default.nix | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/TODO.md b/docs/TODO.md index c7fd002..4afe8e1 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -8,5 +8,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md)) - [ ] neotest golang - [ ] nvim dap -- [ ] Tofi configuration - [ ] OS Hardening with nix-mineral diff --git a/home/scripts/system/default.nix b/home/scripts/system/default.nix index 49b9862..f6436dc 100644 --- a/home/scripts/system/default.nix +++ b/home/scripts/system/default.nix @@ -16,6 +16,11 @@ let else wofi --show drun fi + # if pgrep tofi; then + # pkill tofi + # else + # hyprctl dispatch exec $(tofi-drun) + # fi ''; powermenu = pkgs.writeShellScriptBin "powermenu" @@ -23,6 +28,8 @@ let '' if pgrep wofi; then pkill wofi + # if pgrep tofi; then + # pkill tofi else options=( "󰌾 Lock" @@ -33,6 +40,7 @@ let ) selected=$(printf '%s\n' "''${options[@]}" | wofi --dmenu) + # selected=$(printf '%s\n' "''${options[@]}" | tofi --prompt-text "> ") selected=''${selected:2} case $selected in