-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvoid-bspwm.sh
executable file
·45 lines (36 loc) · 1.38 KB
/
void-bspwm.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
#!/bin/bash
# Exit immediately if a command exits with a non-zero exit status
set -e
clear
echo ''
echo '############################################'
echo '######## Dotfiles Installer - BSPWM ########'
echo '############################################'
# Declare constants and variables
# UPDATETYPE='-Sy' # If GenuineIntel update local repository, change the next one to only '-y'
# Settings
PKG_LIST='xorg-minimal terminus-font freefont-ttf xset alsa-utils bspwm sxhkd st'
FIREWALL=0 # 1=Install, 0=Do not install (install only if running some server daemon)
# If Firewall is 1
[ $FIREWALL -eq 1 ] && PKG_LIST+=' ufw'
# Install packages
sudo xbps-install -y $PKG_LIST
# Configure bspwm and sxhkd start (disable after customize dotfiles for bspwm and sxhkd)
mkdir -p ~/.config/{bspwm,sxhkd}
cp /usr/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm
cp /usr/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd
chmod +x ~/.config/bspwm/bspwmrc
sed -i 's/urxvt/st/' ~/.config/sxhkd/sxhkdrc
echo 'exec bspwm' > ~/.xinitrc
# Configure bspwm and sxhkd end
# Configure Firewall if 1
if [ $FIREWALL -eq 1 ]; then
sudo xbps-reconfigure ufw
sudo ufw enable
sudo ln -s /etc/sv/ufw /var/service
fi
clear
echo ''
echo '############################################################'
echo '######## Dotfiles for BSPWM Installed Successfully! ########'
echo '############################################################'