-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapps.sh
executable file
·108 lines (97 loc) · 4.21 KB
/
apps.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/bin/bash
# Run from this directory
if [[ ! $(dirname "$PWD") =~ "/linux_pkgs" ]]; then
echo "Please run this script from within the \`linux_pkgs\` directory"
exit 1
fi
# Other apps I use
sudo dnf -y install dconf-editor duplicity openrgb steam virt-manager pandoc qalculate
sudo dnf -y swap ffmpeg-free ffmpeg --allowerasing
uv tool install 'trash-cli[completion]'
for cmd in trash-empty trash-list trash-restore trash-put trash; do
$cmd --print-completion bash | tee "$XDG_DATA_HOME/bash-completion/completions/$cmd";
done
yes | cargo install cargo-update cargo-expand evcxr_repl cargo-audit cynic-cli cargo-msrv
go install github.com/maksimov/epoch@latest
# Setup flathub-beta, prioritize default Flathub repo
sudo flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
sudo flatpak remote-modify flathub --prio=2
# Extensions:
# - NotificationCounter@coolllsk
# gsettings modifications for RK84 keyboard and dev tool shortcuts
gsettings set org.gnome.desktop.wm.keybindings activate-window-menu "['<Shift><Super>F10']"
gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Super>Down']"
gsettings set org.gnome.desktop.wm.keybindings toggle-maximized "['']"
gsettings set org.gnome.settings-daemon.plugins.media-keys mic-mute "['AudioStop']"
gsettings set org.gnome.settings-daemon.plugins.media-keys stop-static "['']"
gsettings set org.gnome.software packaging-format-preference "['flatpak:flathub', 'flatpak:flathub-beta', 'flatpak:fedora', 'flatpak:fedora-testing', 'rpm']"
# Flatpaks (slight brace expansion abuse)
sudo flatpak install \
cc.arduino.IDE2 \
com.authy.Authy \
com.belmoussaoui.Decoder \
com.calibre_ebook.calibre \
com.discordapp.Discord \
com.github.finefindus.eyedropper \
com.github.flxzt.rnote \
com.github.jeromerobert.pdfarranger \
com.github.liferooter.textpieces \
com.github.maoschanz.drawing \
com.github.tchx84.Flatseal \
com.obsproject.Studio \
com.slack.Slack \
com.spotify.Client \
de.philippun1.turtle \
io.github.Qalculate \
io.github.trigg.discover_overlay \
md.obsidian.Obsidian \
org.gimp.GIMP{,.Plugin.{BIMP,Fourier,Lensfun,LiquidRescale,Resynthesizer}} \
org.gnome.seahorse.Application \
org.gnome.design.IconLibrary \
org.gnome.Evolution \
org.kde.kwrite \
org.kde.okular \
org.prismlauncher.PrismLauncher
sudo flatpak install flathub-beta org.signal.Signal
# Setup KWrite
mkdir -p "$HOME/.var/app/org.kde.kwrite/config/KDE"
cp ../kwrite/kwriterc "$HOME/.var/app/org.kde.kwrite/config/kwriterc"
cp ../kwrite/KDE/Sonnet.conf "$HOME/.var/app/org.kde.kwrite/config/KDE/Sonnet.conf"
# Systemd updaters
mkdir -p "$XDG_CONFIG_HOME/systemd/user/"
cp ../systemd/* \
localrepos/multiviewer/multiviewer-repo.service localrepos/multiviewer/multiviewer-repo.timer \
"$XDG_CONFIG_HOME/systemd/user/"
cp localrepos/python_scripts/update_repo.py ~/scripts/
for systemd_file in $(fd '\.service$' "$XDG_CONFIG_HOME/systemd/user/"
); do
sed -i "s/<USER>/$(id -un)/" "$systemd_file"
done
systemctl --user daemon-reload
systemctl --user enable --now \
# Multiviewer
mkdir -p "$XDG_DATA_HOME/localrepos/multiviewer/x86_64/"
cp localrepos/python_scripts/multiviewer_repo.py ~/scripts
systemctl --user enable --now multiviewer-repo.timer
sleep 10
sudo cp localrepos/multiviewer/multiviewer.repo /etc/yum.repos.d/
sudo sed -i "s/<USER>/$(id -un)/" /etc/yum.repos.d/multiviewer.repo
sudo dnf makecache
# shellcheck disable=SC2016
printf 'When you'\''re ready, run %s\n' '`dnf install multiviewer-for-f1`'
# Turtle (Git in file manager)
sudo dnf -y install python-pygit2 nautilus-python meld
git clone https://gitlab.gnome.org/philippun1/turtle.git "$HOME/Documents/turtle"
pushd "$HOME/Documents/turtle" || exit
sudo python install.py install --flatpak
popd || exit
# Add support for Stadia controller
sudo cp ./70-stadiacontroller-flash.rules /etc/udev/rules.d
sudo udevadm control --reload-rules && sudo udevadm trigger