~yotam/gnome-dotfiles

gnome-dotfiles/install.sh -rwxr-xr-x 4.5 KiB
ed3bf419 — Yotam Nachum Add advance wc command 3 months ago
                                                                                
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
#!/usr/bin/env bash

echo "Adding Flathub repository"
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo > /dev/null
echo "Adding RPMFusion repository"
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm > /dev/null

echo "Installing development dependencies"
sudo dnf install -y go python3-devel > /dev/null

echo "Install and configuring Neovim"
sudo dnf install -y neovim python3-neovim > /dev/null
ln -s $(pwd)/Neovim ~/.config/nvim > /dev/null

echo "Installing Python Language Server"
pip install --user 'python-language-server[all]'
pip install --user pyls-mypy pyls-black pyls-isort

echo "Installing terminal tools"
sudo dnf install -y git tmux fzf the_silver_searcher jq > /dev/null
ln -s $(pwd)/Git/.gitconfig ~/.gitconfig > /dev/null
mkdir -p ~/.config/tmux
ln -s $(pwd)/Tmux/.tmux.conf ~/.config/tmux/tmux.conf > /dev/null
ln -s $(pwd)/Sqlite/.sqliterc ~/.sqliterc > /dev/null

echo "Configuring GTK"
ln -s $(pwd)/GTK3/gtk.css ~/.config/gtk-3.0/gtk.css > /dev/null

echo "Installing and configuring Fish"
ln -s $(pwd)/Fish ~/.config/fish > /dev/null
sudo dnf install -y fish util-linux-user > /dev/null
chsh -s $(which fish) > /dev/null

echo "Installing multimedia packages"
sudo dnf groupinstall -y multimedia > /dev/null

echo "Installing codecs for Pulseaudio"
sudo dnf install pulseaudio-module-bluetooth-freeworld --allowerasing
pulseaudio -k

echo "Installing and removing desktop applications"
sudo dnf remove -y gnome-photos rhythmbox gnome-clocks libreoffice-core > /dev/null
sudo dnf install -y lollypop fragments youtube-dl ffmpeg gnome-tweaks gnome-passwordsafe polari celluloid > /dev/null

echo "Installing GSConnect"
sudo dnf install gnome-shell-extensions-gsconnect nautilus-gsconnect

echo "Downloading Vim Plug"
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim > /dev/null

echo "Configuring GNOME Settings"
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true > /dev/null

echo "Configuring keyboard shortcuts"
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/']"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding "<Primary><Alt>t"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command "gnome-terminal"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name "Launch Terminal"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding "<Primary><Shift>Escape"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command "gnome-system-monitor"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name "Launch System Monitor"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ binding "<Primary>e"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ command "nautilus"
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/ name "Launch File Explorer"

echo "Configuring DNF to be faster"
sudo bash -c 'echo "max_parallel_downloads=10" >> /etc/dnf/dnf.conf'
sudo bash -c 'echo "metadata_expire=86400" >> /etc/dnf/dnf.conf'
sudo ln -s $(pwd)/DNF/dnf-check-update.service /etc/systemd/system/dnf-check-update.service > /dev/null
sudo ln -s $(pwd)/DNF/dnf-check-update.timer /etc/systemd/system/dnf-check-update.timer > /dev/null
sudo systemctl enable dnf-check-update.timer
sudo systemctl start dnf-check-update.timer