#!/usr/bin/bash # This script will open a little menu with different options # Dependencies: Bemenu, emoji-font, systemd screenshot () { case "$(echo -e "πŸ–§ ...von allen Bildschirmen πŸ—” ...vom aktiven Fenster βŒ— ...von Auswahl πŸ–΅ ...vom Bildschirm" | wofi --dmenu --lines 5 --prompt "Foto" -c ~/.config/sway/wofi)" in "πŸ–§ ...von allen Bildschirmen") exec .config/sway/screenshot.sh all ;; "πŸ—” ...vom aktiven Fenster") exec .config/sway/screenshot.sh focus ;; "βŒ— ...von Auswahl") exec .config/sway/screenshot.sh choice ;; "πŸ–΅ ...vom Bildschirm") exec .config/sway/screenshot.sh ;; esac exit 0 } case "$(echo -e "πŸ–Ό Bildschirmfoto... 🌘 gammastep umschalten πŸ”’ ausloggen ⏻ Herunterfahren ↻ Neustarten ⏾ Standby" | wofi --dmenu --lines 7 --prompt "MenΓΌ" -c ~/.config/sway/wofi)" in "πŸ–Ό Bildschirmfoto...") screenshot "$@";; "🌘 gammastep umschalten") exec ~/.config/sway/toggle_gammastep.sh ;; "πŸ”’ ausloggen") loginctl terminate-user $USER ;; "⏻ Herunterfahren") shutdown now ;; "↻ Neustarten") reboot ;; "⏾ Standby") systemctl suspend ;; esac exit 0