my suckless programs
## Installation
+
+*recommended*
+
```sh
curl https://raw.githubusercontent.com/paperbenni/suckless/master/install.sh | bash
```
### Installation including config files like .bashrc
+*Currently broken*
+
#### WARNING THIS WILL OVERWRITE ANY EXISTING CONFIGURATION
```sh
curl https://raw.githubusercontent.com/paperbenni/dotfiles/master/install.sh | bash -s c
#!/bin/bash
+
+####################################################
+## script for paperbenni-dwm autostart ##
+####################################################
+
+
while :; do
date="$(date)"
ping -q -c 1 -W 1 8.8.8.8 && date="$date|""🌍"
+
+###################################################
+## dracula theme preconf for paperbenni/suckless ##
+###################################################
+
[notification-center]
marginTop = 0
width = 500
#!/bin/bash
+##############################################
+## dwm popup to choose between open windows ##
+## does not change to respective monitor ##
+##############################################
+
# Date format, for use as the prompt.
date=$(date +"%a %d. %b %R")
# dmenu cannot display more than 30 lines, to avoid screen clutter. Only relevant if you have more than 30 windows open.
height=$(wmctrl -l | wc -l)
-if [[ $height -gt 30 ]]
- then heightfit=30
- else heightfit=$height
+if [[ $height -gt 30 ]]; then
+ heightfit=30
+else
+ heightfit=$height
fi
num=$(wmctrl -l | sed 's/ / /' | cut -d " " -f 4- | nl -w 3 -n rn | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' | dmenu -b -i -p "$date" -l $heightfit | cut -d '-' -f -1)
#!/usr/bin/env bash
+
+#############################################
+## installs all paperbenni suckless forks ##
+## made for personal use, so be warned ;) ##
+#############################################
+
echo "installing paperbenni's suckless suite"
source <(curl -s https://raw.githubusercontent.com/paperbenni/bash/master/import.sh)
#!/bin/bash
+####################################################
+## x session for paperbenni-dwm, use with lightdm ##
+####################################################
+
touch ~/.dwmrunning
while test -e ~/.dwmrunning; do
# Log stderror to a file
- dwm 2> ~/.dwm.log
+ dwm 2>~/.dwm.log
# No error logging
#dwm >/dev/null 2>&1
done
#!/bin/bash
+
+#############################################
+## shut down pc and break dwm restart loop ##
+#############################################
+
answer=$(echo " " | dmenu -p "do you want to shut down?")
if [ "$answer" = "y" ]; then
rm ~/.dwmrunning