small thunar and greetd changes and some refactoring

This commit is contained in:
cnst
2024-11-10 13:54:04 +01:00
parent dbba176430
commit df33d941cb
22 changed files with 77 additions and 202 deletions

11
scripts/bin/calcurse-toggle.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
if pgrep -f "foot --title floatcal" >/dev/null; then
# If a process with "foot --title floatcal" is found, kill it
pkill -f "foot --title floatcal"
else
# Otherwise, launch it via hyprctl
if ! hyprctl dispatch exec 'foot --title floatcal calcurse'; then
echo "Failed to launch calcurse in foot terminal"
exit 1
fi
fi