-
Notifications
You must be signed in to change notification settings - Fork 1
/
cbpp-include.cfg
255 lines (224 loc) · 12.6 KB
/
cbpp-include.cfg
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
#!/usr/bin/env bash
# cbpp-include.cfg - Variables and functions commonly used in custom scripts for
# CrunchBang GNU/Linux <http://crunchbanglinux.org/>.
# Ported to #!++ <https://crunchbangplusplus.org>
# by Ben Young <[email protected]>
menuStart() {
echo ' <openbox_pipe_menu>'
}
# Usage: menuItem label command
menuItem() {
echo " <item label=\"$1\">"
echo ' <action name="Execute">'
echo ' <command>'
echo " $2"
echo ' </command>'
echo ' </action>'
echo ' </item>'
}
# Usage: menuSeparator [label]
menuSeparator() {
if [[ $1 ]]; then
echo " <separator label=\"$1\"/>"
else
echo ' <separator/>'
fi
}
# Usage menuSubmenu id label # http://openbox.org/wiki/Help:Menus
menuSubmenu() {
echo " <menu id=\"$1\" label=\"$2\">"
}
menuSubmenuEnd() {
echo ' </menu>'
}
menuEnd() {
echo ' </openbox_pipe_menu>'
}
# Usage: Call postinstall command
postinstall() {
codename=$(curl -s https://www.debian.org/releases/stable/ | grep -P 'Debian “' | cut -d ";" -f2 | cut -d "&" -f1 | head -n 1)
release=$(curl -s https://www.debian.org/releases/stable/ | grep -oP 'Debian [0-9]+' | cut -d " " -f2 | head -n 1)
sudo rm -rfd /var/lib/apt/lists/*
sudo sed -i -e 's/bullseye/'$codename'/' /etc/apt/sources.list
sudo sed -i -e 's/bullseye/'$codename'/' /etc/apt/sources.list.d/cbpp.list
wget -qO - https://packages.crunchbangplusplus.org/cbpp$release.key | sudo apt-key add -
sudo apt update &&
sudo apt-get install -f --assume-yes
clear
say "Wanna upgrade the system? Highly recommended ($(apt-get dist-upgrade -s | grep '[0-9] upgraded' | grep -o '[0-9]' | head -n1) packages upgradeable)"
read -p $'yes/no >_: ' noc
if [[ "$noc" == "yes" ]]; then
sudo DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -yy upgrade --without-new-pkgs
sleep 10s
sudo DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -yy dist-upgrade
sudo shutdown -rf && read r && sudo $r
else
say "Not upgrading"
fi
say "Purge unneccasary packages"
sudo apt-get remove -yy --purge apport* mailutils clipit compton ed at avahi* gimp hexchat dovecot nfs-kernel-server sshfs autofs tasksel tasksel-data \
evolution galculator geary nfs-common rsh-client rsh-redone-client snmp talk* telnet* inetutils-telnetd zeitgeist-core zeitgeist-datahub zeitgeist \
ldap-utils minetest pure-ftpd file-roller xinetd catfish obconf *plymouth* terminator thunar thunar-data xfce4-power-manager udiskie xfce4-notifyd \
docbook* nitrogen samba* gstreamer1.0-fluendo-mp3 rhythmbox rpcbind shotwell thunderbird xfce4-screenshooter cpufrequtils xfconf mousepad nis yelp \
gnumeric* ibus* libreoffice libreoffice-core libreoffice-base-core mate-* obsession engrampa xfce4-goodies xscreensaver dictionaries-common gigolo \
apache2 beep bind9* blueman htop manpages* pastebinit pasystray pavucontrol popularity-contest pulseaudio* rsyslog sendmail* sntp texinfo yp-tools \
auditd* *bluez-* *geany* empathy* *nscd gnome-icon-theme gnome-user-docs libestr* evince* obapps parcellite pulsemixer tumbler-plugins-extra xmotd \
conky* *exim* gsimplecal *kde* libmbim-* console-setup console-setup-linux distro-info installation-report install-info opensc* picom strace tint2 \
abiword aspell* atril cron* libgphoto2-l10n ntp tftp* synaptic* os-prober policykit-1-gnome ppp vim-tiny vlc-l10n vpnc qttranslations5-l10n xfburn \
cbpp-configs cbpp-exit cbpp-icon-theme cbpp-ui-theme cbpp-pipemenus cbpp-wallpapers cbpp-welcome *-doc mlocate *logrotate* update-inetd xwallpaper \
apparmor deja-dup gettext hunspell* *i18n* liblog* lximage-qt lxqt-config lxqt-notificationd lxqt-session lxqt-qtplugin tnftp *webkit*
sudo apt-get remove -yy --purge raspi-firmware
sudo dpkg --configure -a
sudo apt-mark hold apparmor
sudo apt-mark hold apport
sudo apt-mark hold apache2
sudo apt-mark hold avahi-daemon
sudo apt-mark hold cbpp-configs cbpp-exit cbpp-icon-theme cbpp-lxdm-theme cbpp-metapackage cbpp-pipemenus cbpp-ui-theme cbpp-wallpapers cbpp-welcome
sudo apt-mark hold dictionaries-common
sudo apt-mark hold seccomp
sudo apt-mark hold libpam-runtime
sudo apt install -f --assume-yes git libc-dev-bin libc++-dev libwayland* mesa* pipewire-audio* procps psmisc wget xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-all
PKGS=(
# --- Packages
'arandr' # Provide a simple visual front end for XRandR
'brightness-udev' # Control backlight brightness - udev rules
'brightnessctl' # Control backlight brightness
'dunst' # Customizable and lightweight notification-daemon
'featherpad' # Lightweight Qt plain text editor
'flatpak' # Linux application sandboxing and distribution framework
'gmrun' # A lightweight application launcher
'kitty' # A fast, featureful, GPU based terminal emulator
'lxappearance' # Set System Themes
'lxpolkit' # LXDE PolicyKit authentication agent
'lxdm' # A lightweight display manager
'mksh' # MirBSD Korn Shell
'oneko' # A cat chases around the screen
'openbox' # A lightweight, powerful, and highly configurable stacking window manager
'papirus-icon-theme' # A simple and modern icon and cursor theme
'pcmanfm-qt' # The LXQt file manager
'polybar' # A fast and easy-to-use status bar
'ranger' # A file manager with vi key bindings written in python but with an interface that rocks
'scrot' # Simple command-line screenshot utility
'simplescreenrecorder' # A feature-rich screen recorder that supports X11 and OpenGL
'suckless-tools' # Simple commands for minimalistic window managers
'vim' # Vi IMproved - enhanced vi editor
'xarchiver' # A frontend to various command line archivers
'xdotool' # Command-line X11 automation tool
'xvkbd' # A virtual (graphical) keyboard program for X Window System
# --- Network
'bluez' # Daemons for the bluetooth protocol stack
'filezilla' # Fast and reliable FTP, FTPS and SFTP client
'irssi' # Text Based IRC
'newsboat' # An RSS/Atom feed reader for the text console
'openssh-server' # Premier connectivity tool for remote login with the SSH protocol
'putty' # A terminal integrated SSH/Telnet client
'transmission-gtk' # BitTorrent client
'xtightvncviewer' # Virtual network computing client software for X
# GENERAL UTILITIES ---------------------------------------------------
'and' # The auto nice daemon activates itself in certain intervals and renices jobs according to their priority and CPU usage
'fgetty' # A small, efficient, console-only getty for Linux
'gvfs-backends' # An userspace virtual filesystem where mounts run as separate processes
'playerctl' # Utility to control media players via MPRIS
'preload' # Makes applications run faster by prefetching binaries and shared objects
'thermald' # A Linux daemon for monitoring and controlling platform temperatures
# DEVELOPMENT ---------------------------------------------------------
'python3-pip' # A tool for installing Python packages
# TERMINAL UTILITIES --------------------------------------------------
'fish' # The Friendly Interactive Shell
# GRAPHICS, VIDEO AND DESIGN ------------------------------------------
'viewnior' # A simple, fast and elegant image viewer
'vlc' # A free and open source cross-platform multimedia player and framework
# PRINTING ------------------------------------------------------------
'cups' # The CUPS Printing System - daemon package
'printer-driver-cups-pdf' # Printer driver for PDF writing via CUPS
'system-config-printer' # A CUPS printer configuration tool and status applet
# FONTS ---------------------------------------------------------------
'fonts-crosextra-caladea' # Chrome OS Extra fonts featuring Caladea (Cambria clone)
'fonts-crosextra-carlito' # Chrome OS Extra fonts featuring Carlito (Calibri clone)
'fonts-liberation2' # Fonts with the same metrics as Times, Arial and Courier (v2)
)
for PKG in "${PKGS[@]}"; do
say "INSTALLING: ${PKG}"
sudo apt install -f --assume-yes --no-install-recommends "$PKG"
done
say "Done!"
say "Disable cups daemon(opt-out)"
sudo systemctl disable --now cups.service
release=$(curl -s https://www.debian.org/releases/stable/ | grep -oP 'Debian [0-9]+' | cut -d " " -f2 | head -n 1)
# Import .config files
cd /tmp
git clone --branch $release https://github.com/CBPP/cbpp-ui-theme.git
sudo rm -rfd /usr/share/themes/CBPP*
sudo rm -rfd cbpp-ui-theme/cbpp-ui-theme/data/usr/share/themes/CBPP*/xf*
sudo cp -rfd cbpp-ui-theme/cbpp-ui-theme/data/usr/share/themes/* /usr/share/themes
sudo rm -rfd /usr/share/backgrounds
sudo mkdir -p /usr/share/backgrounds
sudo rm -rfd .config*
git clone https://github.com/YurinDoctrine/.config.git
sudo rm -rfd $HOME/.*
sudo rm -rfd /etc/skel/.*
sudo rm -rfd /root/.*
sudo rmdir -p $HOME/*
sudo rmdir -p /etc/skel/*
sudo rmdir -p /root/*
sudo mkdir -p $HOME/.config
sudo mkdir -p /etc/skel/.config
sudo mkdir -p /root/.config
sudo mkdir -p $HOME/.local
sudo mkdir -p /etc/skel/.local
sudo mkdir -p /root/.local
sudo cp -rfd .config/.gmrunrc $HOME
sudo cp -rfd .config/.gtkrc-2.0 $HOME/.gtkrc-2.0
sudo cp -rfd .config/.fonts.conf $HOME
sudo cp -rfd .config/.gtk-bookmarks $HOME
sudo cp -rfd .config/.vimrc $HOME
sudo cp -rfd .config/.Xresources $HOME
sudo cp -rfd .config/.nanorc $HOME
sudo cp -rfd .config/.gmrunrc /etc/skel
sudo cp -rfd .config/.gtkrc-2.0 /etc/skel/.gtkrc-2.0
sudo cp -rfd .config/.fonts.conf /etc/skel
sudo cp -rfd .config/.gtk-bookmarks /etc/skel
sudo cp -rfd .config/.vimrc /etc/skel
sudo cp -rfd .config/.Xresources /etc/skel
sudo cp -rfd .config/.nanorc /etc/skel
sudo mv .config/.gmrunrc /root
sudo mv .config/.gtkrc-2.0 /root/.gtkrc-2.0
sudo mv .config/.fonts.conf /root
sudo mv .config/.gtk-bookmarks /root
sudo mv .config/.vimrc /root
sudo mv .config/.Xresources /root
sudo mv .config/.nanorc /root
sudo mv .config/default-tile.png /usr/share/backgrounds/default-tile.png
sudo rm -rfd /usr/share/lxdm/themes
sudo cp -rfd .config/themes /usr/share/lxdm
sudo rm -rfd /usr/share/icons/CBPP*
sudo cp -rfd .config/CBPP /usr/share/icons
sudo cp -rfd .config/openbox-3 /usr/share/themes/CBPP
sudo mkdir -p /usr/share/icons/default
sudo cp -rfd .config/CBPP/index.theme /usr/share/icons/default
sudo cp -rfd .config/.newsboat $HOME/.newsboat
sudo cp -rfd .config/.newsboat /etc/skel/.newsboat
sudo cp -rfd .config/.newsboat /root/.newsboat
sudo cp -rfd .config/.local/* $HOME/.local
sudo cp -rfd .config/.local/* /etc/skel/.local
sudo cp -rfd .config/.local/* /root/.local
sudo cp -rfd .config/* $HOME/.config
sudo cp -rfd .config/* /etc/skel/.config
sudo cp -rfd .config/* /root/.config
sudo chown -hR $USER:$USER /home/$USER/.*
sudo chown -hR $USER:$USER /home/$USER/*
sudo find $HOME/.config/ | grep '\CBPP' | xargs sudo rm -rfd
sudo find /etc/skel/.config/ | grep '\CBPP' | xargs sudo rm -rfd
sudo find /root/.config/ | grep '\CBPP' | xargs sudo rm -rfd
sudo find $HOME/.config/ | grep '\themes' | xargs sudo rm -rfd
sudo find /etc/skel/.config/ | grep '\themes' | xargs sudo rm -rfd
sudo find /root/.config/ | grep '\themes' | xargs sudo rm -rfd
sudo find $HOME/.config/ | grep '\openbox-3' | xargs sudo rm -rfd
sudo find /etc/skel/.config/ | grep '\openbox-3' | xargs sudo rm -rfd
sudo find /root/.config/ | grep '\openbox-3' | xargs sudo rm -rfd
sudo find $HOME/.config/ | grep '\cbpp' | xargs sudo rm -f
sudo find /root/.config/ | grep '\cbpp' | xargs sudo rm -f
sudo find /usr/bin/ | grep '\cbpp' | xargs sudo rm -f
sudo find /usr/bin/ | grep '\conkywonky' | xargs sudo rm -f
sudo find /usr/bin/ | grep '\tint2restart' | xargs sudo rm -f
}