Files
Hyprland-Config/scripts/systemmenu.sh

30 lines
875 B
Bash
Executable File

#!/bin/bash
choice=$(printf "󰍛 System Monitor\n󰑐 Disk Usage\n󰒋 Processes\n󰈆 Restart Waybar\n󰅶 Restart Dunst\n󰑐 Reload Hyprland\n󰋊 Check Updates" | wofi --dmenu --prompt "System")
case "$choice" in
"󰍛 System Monitor")
gnome-system-monitor
;;
"󰑐 Disk Usage")
kitty -e bash -lc 'df -h; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
"󰒋 Processes")
kitty -e btop
;;
"󰈆 Restart Waybar")
pkill waybar
waybar >/dev/null 2>&1 &
;;
"󰅶 Restart Dunst")
pkill dunst
dunst >/dev/null 2>&1 &
;;
"󰑐 Reload Hyprland")
hyprctl reload
;;
"󰋊 Check Updates")
kitty -e bash -lc 'pkexec pacman -Sy; pacman -Qu; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
esac