Optimized i3 setup: clipboard manager, scratchpad terminal, workspace assignments, media keys with dunstify, thunar, autotiling, system info notification
This commit is contained in:
15
files/configs/misc-scripts/sysinfo-notify
Normal file
15
files/configs/misc-scripts/sysinfo-notify
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Show system info notification on login
|
||||
|
||||
sleep 3
|
||||
|
||||
IP=$(ip route get 1.1.1.1 2>/dev/null | grep -o 'src [0-9.]*' | awk '{print $2}')
|
||||
MEM_TOTAL=$(free -h | grep Mem | awk '{print $2}')
|
||||
MEM_AVAIL=$(free -h | grep Mem | awk '{print $7}')
|
||||
DISK_AVAIL=$(df -h / | tail -1 | awk '{print $4}')
|
||||
BATTERY=$(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo "N/A")
|
||||
UPTIME=$(uptime -p | sed 's/up //')
|
||||
|
||||
dunstify -a "sysinfo" -u normal -r 9997 -t 8000 \
|
||||
"System Info" \
|
||||
"IP: ${IP:-nicht verbunden}\nRAM frei: ${MEM_AVAIL}/${MEM_TOTAL}\nDisk frei: ${DISK_AVAIL}\nAkku: ${BATTERY}%\nUptime: ${UPTIME}"
|
||||
Reference in New Issue
Block a user