Modernize i3 setup: alacritty, dunst, rofi, i3blocks, blurlock, picom updates
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
MEM_STAT=$(free -m | grep Mem | awk '{print $2,$3}')
|
||||
MEM_TOTAL_MB=${MEM_STAT%% *}
|
||||
MEM_USED_MB=${MEM_STAT##* }
|
||||
MEM_USED_GB=$(echo "scale=2;$MEM_USED_MB/1024" | bc -l)
|
||||
echo "$MEM_USED_GB GB"
|
||||
MEM_TOTAL_GB=$(echo "scale=1;$MEM_TOTAL_MB/1024" | bc -l)
|
||||
MEM_USED_GB=$(echo "scale=1;$MEM_USED_MB/1024" | bc -l)
|
||||
echo "${MEM_USED_GB}/${MEM_TOTAL_GB} GB"
|
||||
|
||||
Reference in New Issue
Block a user