OSDN Git Service

comment headers
authorpaperbenni <paperbenni@gmail.com>
Wed, 16 Oct 2019 20:09:05 +0000 (22:09 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 16 Oct 2019 20:09:05 +0000 (22:09 +0200)
README.md
autostart.sh
deadd.conf
dswitch
install.sh
programs/startdwm
programs/sucklessshutdown

index 81ad55c..332f362 100644 (file)
--- a/README.md
+++ b/README.md
@@ -2,11 +2,16 @@
 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
index 139492a..4b32879 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/bash
+
+####################################################
+## script for paperbenni-dwm autostart            ##
+####################################################
+
+
 while :; do
        date="$(date)"
        ping -q -c 1 -W 1 8.8.8.8 && date="$date|""🌍"
index a48658f..c26b16a 100644 (file)
@@ -1,3 +1,8 @@
+
+###################################################
+## dracula theme preconf for paperbenni/suckless ##
+###################################################
+
 [notification-center]
 marginTop = 0
 width = 500
diff --git a/dswitch b/dswitch
index 7213095..f1b2ebe 100755 (executable)
--- a/dswitch
+++ b/dswitch
@@ -1,13 +1,19 @@
 #!/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)
index bd2bcdd..034ecb8 100644 (file)
@@ -1,4 +1,10 @@
 #!/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)
index ecf6e48..a075aa3 100644 (file)
@@ -1,10 +1,14 @@
 #!/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
index fe3ed5a..f26a8ee 100644 (file)
@@ -1,4 +1,9 @@
 #!/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