Optimized i3 setup: clipboard manager, scratchpad terminal, workspace assignments, media keys with dunstify, thunar, autotiling, system info notification

This commit is contained in:
2026-02-15 10:30:28 +01:00
parent 464339629a
commit 25d3169728
9 changed files with 168 additions and 19 deletions

View 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}"