-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_packages.py
153 lines (146 loc) · 3.81 KB
/
install_packages.py
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# /usr/bin/env python
"""Script to install system packages and initalize environment."""
import platform
if platform.freedesktop_os_release()["ID"] not in ("arch",):
err_msg = "Error: Your linux distribution is not supported by this script."
raise SystemExit(err_msg)
# Arch Linux
arch_groups = {
"base-devel",
"texlive",
}
arch_extra = {
"alacritty", # Terminal emulator
"mpv", # Media player
"mpv-mpris",
"zathura", # Document Viewer
"zathura-pdf-mupdf",
"polkit-gnome",
"greetd",
"greetd-tuigreet",
"niri",
"hyprland",
"xdg-desktop-portal-hyprland",
"xdg-desktop-portal-gtk",
"waybar",
"hypridle",
"hyprlock",
"grim", # Screenshot utility
"slurp", # Select a region in a Wayland
"swaync",
"ttf-0xproto-nerd",
"ttf-ubuntu-nerd",
"papirus-icon-theme",
"kvantum", # Theme Engine for Qt6
"git-delta", # Syntax-highlighting pager for git, diff, and grep output
"onefetch", # Git Repo Summary
"tokei", # Statistics about your code
"nvtop", # GPUs Monitoring
"just", # Command runner
"hyperfine", # command-line benchmarking tool
"less",
"jless",
"bat",
"fd", # `find` alternative
"zoxide", # `cd` alternative
"eza", # `ls` alternative
"skim", # fuzzy finder
"fish",
"neovim",
"ripgrep",
"dysk",
"broot",
"opendoas",
"texlab",
"vscode-css-languageserver",
"vscode-html-languageserver",
"lua-language-server",
"vscode-json-languageserver",
"yaml-language-server",
"flawfinder",
"mold",
"deno",
"swayimg", # Image viewer
"pcmanfm-qt", # File Manager
"gvfs",
"fuzzel", # Launcher
# "system-config-printer",
"lsof", # Check for /dev/video* usage with (fuser)
"network-manager-applet",
"gnome-keyring",
"noto-fonts",
"noto-fonts-cjk",
"noto-fonts-extra",
"cantarell-fonts",
"adwaita-icon-theme",
"libadwaita",
"git",
"pastel",
"htop", # System Monitoring
"bandwhich", # Network Bandwidth Monitoring
"imagemagick",
"shfmt",
"rustup",
"cargo-outdated",
"cargo-bloat",
"cargo-nextest",
"cargo-show-asm",
"cargo-depgraph",
"cargo-supply-chain",
"cargo-deny",
"cargo-sort",
"clang",
"uv",
"python-lsp-server",
"ruff",
"mypy",
"go",
"gopls",
"go-tools",
"texlive-langarabic",
"texlive-langother",
"jdk-openjdk",
"gradle",
}
arch_core = {
"dash",
"python",
}
arch_user_repo = {
"foxmarks",
"xwayland-satellite",
"uwsm",
"hyprpicker",
"wl-gammarelay-rs",
"satty",
"ianny-git", # Periodically informes user to take breaks
"ttf-dejavu-ib", # Better Arabic Fonts in UI
"ttf-amiri",
"ripdrag-git", # CLI-GUI drag-and-drop source/target
"fish-tide-git",
"nodejs-emmet-ls",
"jdtls",
}
flathub = {
"org.gnome.dspy", # D-Bus connections explorer
"com.github.wwmm.easyeffects", # Audio Manipulation
"org.pipewire.Helvum", # D-Bus connections explorer
"io.github.Qalculate", # Qalculate! GTK+ UI
"app.drey.Dialect", # Translating Text
"org.gnome.seahorse.Application", # Frontend for gnome-keyring
"org.gnome.TextEditor", # For writing in Arabic smoothly
"org.gnome.Gtranslator", # Gettext po file editor
"io.github.finefindus.Hieroglyphic", # Find LaTeX symbols
"org.sqlitebrowser.sqlitebrowser",
}
print(
"sudo pacman -S --needed "
+ " ".join(arch_core.union(arch_extra).union(arch_groups)),
"yay -Sa --needed " + " ".join(arch_user_repo),
"flatpak install flathub " + " ".join(flathub),
sep="\n\n",
)
# TODO: Install yay or paru if not existing.
# TODO: Install flatpak if not existing.
# TODO: Auto install pacman and AUR packages.
# TODO: Autorun other commands to setup things.