-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
welcome-after
executable file
·32 lines (28 loc) · 1.32 KB
/
welcome-after
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/env bash
DIR=/usr/local/share/tcet-welcome
TERM=""
case $XDG_CURRENT_DESKTOP in "GNOME") TERM=kgx;;
"XFCE") TERM=xfce4-terminal;;
*) yad --image="dialog-question" --title "Alert" --text "Can't recongnize desktop environment" --button="yad-ok:0";;
esac
yad --title "Welcome" \
--form \
--window-icon=$DIR/assets/tcetlinux-logo.png \
--columns=2\
--rows=5 \
--width=640 \
--height=380 \
--fixed \
--no-escape \
--image=$DIR/assets/Tcet_Linux.png \
--field="<b>Update PC</b>":fbtn "bash -c '$DIR/scripts/update.sh'" \
--field="<b>Fix Screen Resolution</b>":fbtn "bash -c '$DIR/scripts/resolution.sh'" \
--field="<b>Arch User Repository (AUR)</b>":fbtn "bash -c '$DIR/scripts/aur.sh'" \
--field="<b>Join our discord Server</b>":fbtn "bash -c '$DIR/scripts/discord.sh'" \
--field="<b>Toggle Autostart</b>":fbtn "$TERM -e '$DIR/scripts/autostart.sh'"\
--field="<b>Update Mirrors</b>":fbtn "$TERM -e '$DIR/scripts/mirror.sh'" \
--field="<b>Application Installer (BETA)</b>":fbtn "bash -c '$DIR/scripts/py-installer.sh'" \
--field="<b>Arch Wiki</b>":fbtn "bash -c '$DIR/scripts/archwiki.sh'" \
--field="<b>Contribute to TCET Linux</b>":fbtn "bash -c '$DIR/scripts/github.sh'" \
--field="<b>About US</b>":fbtn "bash -c '$DIR/scripts/py-about.sh'" \
--button=Exit:1 \