3 #############################################
4 ## installs all paperbenni suckless forks ##
5 ## made for personal use, so be warned ;) ##
6 #############################################
8 echo "installing paperbenni's suckless suite"
10 source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/import.sh)
13 # pinstall dash slop ffmpeg wmctrl
16 git clone --depth=1 https://github.com/paperbenni/"$1".git
20 wget "https://raw.githubusercontent.com/paperbenni/suckless/master/programs/$1"
24 mkdir -p ~/.local/share/fonts
25 cd ~/.local/share/fonts
26 if ! [ -e monaco.ttf ]; then
27 wget https://github.com/todylu/monaco.ttf/raw/master/monaco.ttf
41 if grep -q 'nobody' </etc/groups; then
47 wget https://raw.githubusercontent.com/paperbenni/suckless/master/dwm.desktop
48 sudo mv dwm.desktop /usr/share/xsessions/
52 # shutdown popup that breaks restart loop
53 gprogram sucklessshutdown
56 # deadcenter toggle script
58 # dmenu run but in terminal emulator st
59 # only supported terminal apps (less to search through)
61 curl $LINK/termprograms.txt >~/.cache/termprograms.txt
64 if ! [ -d "$FOLDER" ]; then
65 echo "skipping $FOLDER"
75 # install dotfiles like bash,git and tmux config
76 if ! [ -z "$1" ]; then
77 curl https://raw.githubusercontent.com/paperbenni/dotfiles/master/install.sh | bash
80 LINK="https://raw.githubusercontent.com/paperbenni/suckless/master"
82 if cat /etc/os-release | grep -i 'arch'; then
85 { pacman -iQ "$i" || command -v "$i"; } &>/dev/null && continue
86 sudo pacman -S --noconfirm "$i"
89 echo "setting up arch specific stuff"
91 sudo pacman -Syu --noconfirm
98 if ! command -v panther_launcher; then
99 wget "https://www.rastersoft.com/descargas/panther_launcher/panther_launcher-1.12.0-1-x86_64.pkg.tar.xz"
100 sudo pacman -U --noconfirm panther_launcher*.pkg.tar.xz
101 rm panther_launcher*.pkg.tar.xz
106 # ubuntu specific stuff
107 if grep -iq 'ubuntu' </etc/os-release; then
110 sudo apt-get upgrade -y
119 { dpkg -l "$i" || command -v "$i"; } &>/dev/null && continue
120 sudo apt-get install -y "$i"
124 if ! command -v panther_launcher; then
125 wget "https://www.rastersoft.com/descargas/panther_launcher/panther-launcher-xenial_1.12.0-ubuntu1_amd64.deb"
126 sudo dpkg -i panther-launcher*.deb
127 sudo apt-get install -fy
128 rm panther-launcher*.deb
132 # auto start script with dwm
133 ls ~/.dwm || mkdir ~/.dwm
134 curl $LINK/autostart.sh >~/.dwm/autostart.sh
136 # notification program for deadd-center
137 if ! command -v notify-send.py &>/dev/null; then
138 git clone --depth=2 https://github.com/phuhl/notify-send.py
140 sudo pip2 install notify2
141 sudo python3 setup.py install
143 sudo rm -rf notify-send.py
146 mkdir -p ~/.config/deadd
147 curl $LINK/deadd.conf >~/.config/deadd/deadd.conf
149 # install window switcher
150 curl "$LINK/dswitch" | sudo tee /usr/local/bin/dswitch
151 sudo chmod +x /usr/local/bin/dswitch
153 # install win + a menus for shortcuts like screenshots and shutdown
154 curl https://raw.githubusercontent.com/paperbenni/menus/master/install.sh | bash
156 ## notification center ##
157 # remove faulty installation
158 sudo rm /usr/bin/deadd &>/dev/null
159 sudo rm /usr/bin/deadcenter &>/dev/null
162 echo "installing deadd"
163 wget -q $LINK/bin/deadd.xz
166 sudo mv deadd /usr/bin/deadd
167 sudo chmod +x /usr/bin/deadd
169 mkdir ~/paperbenni &>/dev/null
171 # automatic wallpaper changer
174 mv rwallpaper.py ~/paperbenni/
175 chmod +x wallpaper.sh
176 mv wallpaper.sh ~/paperbenni/
177 sudo pip3 install -r requirements.txt
182 if command -v youtube-dl; then
183 youtube-dl -x --audio-format wav -o ~/paperbenni/boot.wav https://www.youtube.com/watch?v=i9qOJqNjalE
187 if ! grep 'dwm' </etc/profile; then
188 echo "fixing java windows for dwm in /etc/profile"
189 echo '# fix dwm java windows' | sudo tee -a /etc/profile
190 echo 'export _JAVA_AWT_WM_NONREPARENTING=1' | sudo tee -a /etc/profile
192 echo "java workaround already applied"