-
Notifications
You must be signed in to change notification settings - Fork 2
/
desktop-packages.sh
executable file
·82 lines (68 loc) · 2.24 KB
/
desktop-packages.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/bash
set ${SET_X:+-x} -eou pipefail
# Ublue Staging
dnf5 -y copr enable ublue-os/staging
# OBS-VKcapture
dnf5 -y copr enable kylegospo/obs-vkcapture
# Bazzite Repos
dnf5 -y copr enable kylegospo/bazzite
dnf5 -y copr enable kylegospo/bazzite-multilib
dnf5 -y copr enable kylegospo/LatencyFleX
# VSCode because it's still better for a lot of things
tee /etc/yum.repos.d/vscode.repo <<'EOF'
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
# Sunshine
dnf5 -y copr enable lizardbyte/beta
# Webapp Manager
dnf5 -y copr enable kylegospo/webapp-manager
# Layered Applications
LAYERED_PACKAGES=(
adw-gtk3-theme
breeze-cursor-theme
cascadia-fonts-all
code
devpod
emacs
ghostty
git-credential-libsecret
git-credential-oauth
spice-gtk-tools
sunshine
webapp-manager
)
if [[ "${IMAGE}" =~ aurora ]]; then
LAYERED_PACKAGES+=(krdp)
fi
if [[ "${IMAGE}" =~ bluefin ]]; then
LAYERED_PACKAGES+=(
gnome-shell-extension-compiz-windows-effect
gnome-shell-extension-just-perfection
gnome-shell-extension-hotedge
)
fi
dnf5 install -y "${LAYERED_PACKAGES[@]}"
# Zed because why not?
curl -Lo /tmp/zed.tar.gz \
https://zed.dev/api/releases/stable/latest/zed-linux-x86_64.tar.gz
mkdir -p /usr/lib/zed.app/
tar -xvf /tmp/zed.tar.gz -C /usr/lib/zed.app/ --strip-components=1
chown 0:0 -R /usr/lib/zed.app
ln -s /usr/lib/zed.app/bin/zed /usr/bin/zed-cli
cp /usr/lib/zed.app/share/applications/zed.desktop /usr/share/applications/dev.zed.Zed.desktop
mkdir -p /usr/share/icons/hicolor/1024x1024/apps
cp {/usr/lib/zed.app,/usr}/share/icons/hicolor/512x512/apps/zed.png
cp {/usr/lib/zed.app,/usr}/share/icons/hicolor/1024x1024/apps/zed.png
sed -i "s@Exec=zed@Exec=/usr/lib/zed.app/libexec/zed-editor@g" /usr/share/applications/dev.zed.Zed.desktop
# Emacs LSP Booster
EMACS_LSP_BOOSTER="$(curl -L https://api.github.com/repos/blahgeek/emacs-lsp-booster/releases/latest | jq -r '.assets[].browser_download_url' | grep musl.zip$)"
curl -Lo /tmp/emacs-lsp-booster.zip "$EMACS_LSP_BOOSTER"
unzip -d /usr/bin/ /tmp/emacs-lsp-booster.zip
# Call other Scripts
/ctx/desktop-defaults.sh
/ctx/flatpak.sh