Browse Source

add all stuff

siduck76 4 years ago
parent
commit
3f357e585c
9 changed files with 65 additions and 0 deletions
  1. 20 0
      .dwm/autostart
  2. 10 0
      .dwm/bar
  3. 8 0
      bar_scripts/dwm-xbps
  4. 3 0
      bar_scripts/nbat
  5. 5 0
      bar_scripts/nclock
  6. 3 0
      bar_scripts/nmem
  7. 6 0
      bar_scripts/nwlan
  8. 9 0
      bar_scripts/xbps-updates
  9. 1 0
      dwm

+ 20 - 0
.dwm/autostart

@@ -0,0 +1,20 @@
+#!/bin/sh
+
+feh --bg-fill ~/Pictures/wall/comfy.jpg &
+xrdb merge ~/Public/xresources/nord/.Xresources &
+
+picom & 
+
+cp -r ~/Public/theme\ and\ icons/flux/.gtkrc-2.0 ~/ &
+cp -r ~/Public/theme\ and\ icons/flux/settings.ini  ~/.config/gtk-3.0/ &
+
+cp -r ~/Public/rofi/dwm_nord/rofi/ ~/.config/ &
+
+xbacklight -set 10 &
+~/.dwm/bar &
+
+xmodmap ~/.xmodmap-sid &
+
+while true; do
+    dwm 2> ~/.dwm.log
+done

+ 10 - 0
.dwm/bar

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+interval=0
+
+while true; do
+    [ $interval == 0 ] || [ $(($interval%3600)) == 0 ] && updates=$(xbps-updates)
+    interval=$((interval + 1))
+
+    sleep 1 && xsetroot -name "$(dwm-xbps) $updates $(nbat)$(nback)$(nmem) $(nwlan) $(nclock)"
+done

+ 8 - 0
bar_scripts/dwm-xbps

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+icon=""
+
+printf "^c#94af7d^ $icon ^d^%s"
+printf "^c#94af7d^"
+
+exit 0

+ 3 - 0
bar_scripts/nbat

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+printf "^c#81A1C1^ 󰠠 ^d^%s" "$(acpi | sed "s/,//g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n") "

+ 5 - 0
bar_scripts/nclock

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+printf "^c#2E3440^ ^b#828dd1^ 󱑆 ^d^%s %s\n" "^c#2E3440^^b#6c77bb^ $(date '+%a, %I:%M %p')" "$( )"
+
+

+ 3 - 0
bar_scripts/nmem

@@ -0,0 +1,3 @@
+#!/bin/bash
+ 
+printf " ^c#7797b7^^b#363c48^   ^d^%s" "^c#7797b7^^b#414753^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"

+ 6 - 0
bar_scripts/nwlan

@@ -0,0 +1,6 @@
+#!/bin/bash
+
+case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
+  up) printf "^c#3b414d^ ^b#7681c5^ 󰤨 ^d^%s" " ^c#828dd1^Connected";;
+  down) printf "^c#3b414d^ ^b#7681c5^ 󰤨 ^d^%s" " ^c#828dd1^Disconnected";;
+esac

+ 9 - 0
bar_scripts/xbps-updates

@@ -0,0 +1,9 @@
+#!/bin/bash
+
+updates=$(xbps-install  -un | cut -d' ' -f2 | sort | uniq -c | xargs)
+
+if [ -z "$updates" ]; then
+    echo "Fully Updated"
+else
+    echo "$updates""s"
+fi

+ 1 - 0
dwm

@@ -0,0 +1 @@
+Subproject commit 138b405f0c8aa24d8a040cc1a1cf6e3eb5a0ebc7