This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
dotfiles
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
feat: replace status with dwmblocks
master
Tovi Jaeschke-Rogers
2 days ago
parent
747771e5fc
commit
0e7910549d
10 changed files
with
32 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
.local/bin/dwm-autostart
+3
-0
.local/bin/git-fucked
+3
-0
.local/bin/status-battery
+3
-0
.local/bin/status-datetime
+3
-0
.local/bin/status-disk-usage
+3
-0
.local/bin/status-docker
+3
-0
.local/bin/status-internet
+3
-0
.local/bin/status-memory
+7
-0
.local/bin/status-pkgs
+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-ss
s &
dwmblock
s &
+ 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
Write
Preview
Loading…
Cancel
Save