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"
25 mkdir -p ~/.local/share/fonts
27 pushd ~/.local/share/fonts
28 if ! [ -e monaco.ttf ]; then
29 wget https://github.com/todylu/monaco.ttf/raw/master/monaco.ttf
43 wget https://raw.githubusercontent.com/paperbenni/suckless/master/dwm.desktop
44 sudo mv dwm.desktop /usr/share/xsessions/
47 gprogram sucklessshutdown
50 if ! [ -d "$FOLDER" ]; then
51 echo "skipping $FOLDER"
61 if ! [ -z "$1" ]; then
62 curl https://raw.githubusercontent.com/paperbenni/dotfiles/master/install.sh | bash
65 # install window switcher
66 LINK="https://raw.githubusercontent.com/paperbenni/suckless/master"
68 if cat /etc/os-release | grep -i 'arch'; then
69 echo "setting up arch specific stuff"
70 # auto start script with dwm
71 ls ~/.dwm || mkdir ~/.dwm
72 curl $LINK/autostart.sh >~/.dwm/autostart.sh
73 if ! command -v compton; then
74 sudo pacman --noconfirm -S compton
77 # install notification-center
78 if ! command -v deadd; then
79 wget $LINK/bin/deadd.xz
81 sudo mv deadd /usr/bin/deadd
82 sudo chmod +x /usr/bin/deadd
87 # notification program for deadd-center
88 git clone https://github.com/phuhl/notify-send.py
90 sudo pip install notify2
91 sudo python setup.py install
95 mkdir -p ~/.config/deadd
96 curl $LINK/deadd.conf >~/.config/deadd/deadd.conf
98 curl "$LINK/dswitch" | sudo tee /usr/local/bin/dswitch
99 sudo chmod +x /usr/local/bin/dswitch
101 # install win + a menus for screenshots
102 curl https://raw.githubusercontent.com/paperbenni/menus/master/install.sh | bash