Skip to content

Instantly share code, notes, and snippets.

@ntorga
Last active May 16, 2025 17:57
Show Gist options
  • Save ntorga/d071282fa11f95f220962c81434802e0 to your computer and use it in GitHub Desktop.
Save ntorga/d071282fa11f95f220962c81434802e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo rpm-ostree update
sudo rpm-ostree install autossh flameshot htop libvirt-daemon-config-network libvirt-daemon-kvm nmap qemu-kvm sshpass telnet traceroute vim virt-install virt-manager virt-viewer wireguard-tools wtype make
systemctl reboot
sudo systemctl enable libvirtd --now
flatpak install flathub app.devsuite.Ptyxis
flatpak install flathub app.zen_browser.zen
xdg-settings set default-web-browser app.zen_browser.zen.desktop
flatpak install flathub com.google.Chrome
flatpak install flathub org.filezillaproject.Filezilla
flatpak install flathub com.mastermindzh.tidal-hifi
flatpak install flathub org.gnome.Shotwell
flatpak install flathub org.gnome.Papers
flatpak install flathub org.gnome.Calculator
curl -f https://zed.dev/install.sh | sh
#vscode
flatpak install flathub com.visualstudio.code
flatpak --command=bash run com.visualstudio.code <<EOF
extensions=( "ms-vscode.test-adapter-converter" "foxundermoon.shell-format" "timonwong.shellcheck" "hbenl.vscode-test-explorer" "a-h.templ" "Augment.vscode-augment" "bradlc.vscode-tailwindcss" "esbenp.prettier-vscode" "golang.go" "streetsidesoftware.code-spell-checker" "Trapfether.tailwind-raw-reorder" "yy0931.vscode-sqlite3-editor" )
for ext in \${extensions[*]}; do code --install-extension "\${ext}"; done
EOF
flatpak install runtime/org.freedesktop.Sdk.Extension.golang/x86_64/24.08
sudo flatpak override --env=FLATPAK_ENABLE_SDK_EXT=golang com.visualstudio.code
# configure git
git config --global user.name "ntorga"
git config --global user.email [email protected]
# swaywm
mkdir -p ~/.config/sway/config.d/
cp /etc/sway/config ~/.config/sway/
cat >"~/.config/sway/config.d/99_video.conf" <<EOF
output HDMI-A-1 scale 2
for_window [app_id="zen"] resize set width 55 ppt, mark Browser
smart_borders on
default_border none
default_floating_border none
font pango:monospace 0.001
titlebar_padding 1
titlebar_border_thickness 0
EOF
cat >"~/.config/sway/config.d/99_keyboard.conf" <<EOF
input * {
xkb_layout br,us
xkb_numlock enable
left_handed enabled
}
bindsym --no-warn \$mod+Return exec 'flatpak run app.devsuite.Ptyxis'
bindsym Shift+KP_Divide exec wtype -k backslash
bindsym Ctrl+Shift+KP_Divide exec wtype -k bar
bindsym Ctrl+Shift+M exec wtype '[email protected]'
bindsym Ctrl+Shift+L exec wtype "$(cat ~/.ssh/lp)"
bindsym \$mod+Shift+BackSpace exec swaylock
bindsym --no-warn Print exec "/usr/bin/flameshot gui"
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0
EOF
# zed
cat >"~/.config/zed/settings.json" <<EOF
{
"ssh_connections": [
{
"host": "192.168.122.28",
"username": "root",
"args": ["-i", "~/.ssh/ntorga_infinite"],
"projects": [
{
"paths": ["/root/ez"]
}
]
}
],
"ui_font_size": 10,
"buffer_font_size": 10,
"theme": {
"mode": "system",
"light": "Gruvbox Dark",
"dark": "Gruvbox Dark Hard"
},
"tab_bar": {
"show": true,
"show_nav_history_buttons": false
},
"tabs": {
"file_icons": true,
"git_status": true
},
"project_panel": {
"indent_size": 14
},
"tab_size": 2,
"features": {
"edit_prediction_provider": "copilot"
}
}
EOF
# disable ipv6
nmcli connection modify eno1 ipv6.method "disabled"
nmcli connection up eno1
# install go
curl -kL https://go.dev/dl/go1.24.3.linux-amd64.tar.gz -o go.tar.gz
sudo tar -C /usr/local -xzf go.tar.gz
rm -f go.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin:~/go/bin' >> ~/.bashrc
go install golang.org/x/tools/gopls@latest
go install github.com/air-verse/air@latest
go install github.com/a-h/templ/cmd/templ@latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment