From de929892e147779fd53d94a4bcaba28c2beb975c Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Sat, 29 Mar 2025 12:23:04 +0500 Subject: [PATCH] added tofi config --- .config/tofi/config | 19 +++++++++++++++++++ .config/tofi/powermenu.sh | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .config/tofi/config create mode 100755 .config/tofi/powermenu.sh diff --git a/.config/tofi/config b/.config/tofi/config new file mode 100644 index 0000000..d9671fb --- /dev/null +++ b/.config/tofi/config @@ -0,0 +1,19 @@ +anchor = top +width = 100% +height = 30 +horizontal = true +font-size = 12 +prompt-text = " run: " +font = Input Mono +outline-width = 0 +border-width = 0 +background-color = #000000 +min-input-width = 120 +result-spacing = 15 +padding-top = 0 +padding-bottom = 0 +padding-left = 0 +padding-right = 0 + + +selection-color = #7bc6e2 diff --git a/.config/tofi/powermenu.sh b/.config/tofi/powermenu.sh new file mode 100755 index 0000000..d0a3828 --- /dev/null +++ b/.config/tofi/powermenu.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +op=$( echo -e " Shutdown\n Reboot\n Suspend\n" | tofi | awk '{print tolower($2)}' ) + +case $op in + shutdown) + shutdown now + ;; + reboot) + shutdown -r now + ;; + suspend) + systemctl suspend + ;; +esac