Browse Source

Add support for dwm

Frans Bergman 5 years ago
parent
commit
85139d6783
3 changed files with 24 additions and 2 deletions
  1. 12 0
      .dwm/autostart.sh
  2. 10 0
      .scripts/dwm_status.sh
  3. 2 2
      .scripts/screenshot.sh

+ 12 - 0
.dwm/autostart.sh

@@ -0,0 +1,12 @@
+#!/bin/sh
+# dwm autostart script
+
+wal -R
+setxkbmap -layout se
+
+pkill compton; compton &
+pkill sxhkd; sxhkd &
+pkill dwm_status.sh; ~/.scripts/dwm_status.sh &
+discord &
+pgrep redshift-gtk || redshift-gtk &
+pgrep ckb-next || ckb-next -b &

+ 10 - 0
.scripts/dwm_status.sh

@@ -0,0 +1,10 @@
+#!/bin/sh
+
+while true; do
+    MEM="$(free -h | awk '(NR==2){ print $3 }')"
+    VOL="$(amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }')"
+    TEMP="$(sensors | awk '/Package/{print $4}')"
+    DATE="$(date)"
+    xsetroot -name " $VOL | $MEM | $TEMP | $DATE"
+    sleep 5
+done

+ 2 - 2
.scripts/screenshot.sh

@@ -1,9 +1,9 @@
 #!/bin/sh
-maim -us screenshot.png
+maim -us ~/screenshot.png
 
 UUID=$(uuidgen)
 UUID="${UUID[*]:0:5}"
 
-scp screenshot.png "frans@tankernn.eu:/srv/www/scr/$UUID.png"
+scp ~/screenshot.png "frans@tankernn.eu:/srv/www/scr/$UUID.png"
 
 echo "http://scr.tankernn.eu/$UUID.png" | xsel --clipboard