#!/bin/bash

# archypr:summary=Select and set the system timezone
# archypr:requires-sudo=true

timezone=$(timedatectl list-timezones | gum filter --height 20 --header "Set timezone") || exit 1
sudo timedatectl set-timezone "$timezone"
echo "Timezone is now set to $timezone"
archypr-estart-waybar
