mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-07-21 16:00:55 +00:00
updated a bunch
This commit is contained in:
@@ -4,7 +4,7 @@ set -euo pipefail
|
||||
IMG_PATH="${XDG_RUNTIME_DIR:-/tmp}/lock.png"
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 30 "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\"" \
|
||||
timeout 600 'swaymsg "output * power off"' \
|
||||
timeout 4800 "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\"" \
|
||||
timeout 4810 'swaymsg "output * power off"' \
|
||||
resume 'swaymsg "output * power on"' \
|
||||
before-sleep "grim -t png \"$IMG_PATH\" && magick \"$IMG_PATH\" -blur 0x12 \"$IMG_PATH\" && swaylock -f -i \"$IMG_PATH\""
|
||||
|
||||
@@ -17,11 +17,11 @@ TIME=$(date "+%d.%m %H:%M")
|
||||
|
||||
#BRIGHT=$(echo "$(brightnessctl get) / 4.2" | bc)
|
||||
|
||||
VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo UP || echo DOWN)
|
||||
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo UP || echo DOWN )
|
||||
#VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo U || echo D)
|
||||
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo U || echo D )
|
||||
|
||||
UPTIME=$(awk '{t=int($1); d=t/86400; h=(t%86400)/3600; m=(t%3600)/60; if(d>0) printf "%dd %02d:%02dh\n", d,h,m; else printf "%02d:%02dh\n", h,m}' /proc/uptime)
|
||||
|
||||
POWER=$(powerprofilesctl get | tr '[:lower:]' '[:upper:]')
|
||||
|
||||
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | VPN: $VPN_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "
|
||||
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "
|
||||
|
||||
Reference in New Issue
Block a user