Browse Source

feat: replace status with dwmblocks

master
Tovi Jaeschke-Rogers 2 days ago
parent
commit
0e7910549d
10 changed files with 32 additions and 1 deletions
  1. +1
    -1
      .local/bin/dwm-autostart
  2. +3
    -0
      .local/bin/git-fucked
  3. +3
    -0
      .local/bin/status-battery
  4. +3
    -0
      .local/bin/status-datetime
  5. +3
    -0
      .local/bin/status-disk-usage
  6. +3
    -0
      .local/bin/status-docker
  7. +3
    -0
      .local/bin/status-internet
  8. +3
    -0
      .local/bin/status-memory
  9. +7
    -0
      .local/bin/status-pkgs
  10. +3
    -0
      .local/bin/status-temperature

+ 1
- 1
.local/bin/dwm-autostart View File

@ -7,4 +7,4 @@ xsetroot -solid "#1A1A22"
# ~/.local/bin/setbg
# nohup /usr/lib/kdeconnectd >/dev/null 2>&1 &
~/.local/bin/dwm-sss &
dwmblocks &

+ 3
- 0
.local/bin/git-fucked View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "You fucking bozo"

+ 3
- 0
.local/bin/status-battery View File

@ -0,0 +1,3 @@
#!/bin/bash
echo $(cat /sys/class/power_supply/BAT1/capacity)%

+ 3
- 0
.local/bin/status-datetime View File

@ -0,0 +1,3 @@
#!/bin/bash
date '+%a %b %d, %H:%M'

+ 3
- 0
.local/bin/status-disk-usage View File

@ -0,0 +1,3 @@
#!/bin/bash
df -h / | tail -n 1 | awk '{ print $4 }'

+ 3
- 0
.local/bin/status-docker View File

@ -0,0 +1,3 @@
#!/bin/bash
docker ps -q | wc -l

+ 3
- 0
.local/bin/status-internet View File

@ -0,0 +1,3 @@
#!/bin/bash
cat /sys/class/net/wlp170s0/operstate

+ 3
- 0
.local/bin/status-memory View File

@ -0,0 +1,3 @@
#!/bin/bash
free -h | awk '/^Mem/ { print $3""$2 }' | sed s/i//g

+ 7
- 0
.local/bin/status-pkgs View File

@ -0,0 +1,7 @@
#!/bin/bash
UPDATE_PKGS=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
ALL_PKGS=$(pacman -Q | wc -l)
echo "${UPDATE_PKGS}/${ALL_PKGS}"

+ 3
- 0
.local/bin/status-temperature View File

@ -0,0 +1,3 @@
#!/bin/bash
echo $(cat /sys/class/thermal/thermal_zone0/temp | cut -b -2)°C

Loading…
Cancel
Save