Small adjustments on other scripts
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
dir="/media/hdd/backup/$(date +%Y)/$(date +%m)-$(date +%d)"
|
dir="$HOME/Backup/$(date +%Y)/$(date +%m)-$(date +%d)"
|
||||||
folders="$HOME/Dotfiles $HOME/Downloads $HOME/Media $HOME/Pictures $HOME/Projects $HOME/Text"
|
folders="$HOME/Dotfiles $HOME/Downloads $HOME/Pictures $HOME/Projects $HOME/Text"
|
||||||
|
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
script=""
|
script=""
|
||||||
choices="Date\nBattery\nBrightness\nBluetooth\nMedia\nNetwork\nVolume\nTemperature\nMemory\nUptime"
|
choices="Date\nBattery\nBrightness\nBluetooth\nMedia\nNetwork\nVolume\nTemperature\nMemory\nUptime"
|
||||||
choice=$(printf $choices | dmenu -i -p "Select: ")
|
|
||||||
|
|
||||||
case $choice in
|
case $(printf $choices | dmenu -i -p "Select: ") in
|
||||||
"Date") script="datetime" ;;
|
"Date") script="datetime" ;;
|
||||||
"Battery") script="battery" ;;
|
"Battery") script="battery" ;;
|
||||||
"Brightness") script="brightness" ;;
|
"Brightness") script="brightness" ;;
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "⏲ $(date +'%a %d/%m %R')"
|
echo "⏲ $(date +'%a %d/%m %T')"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
line=$(free -m | sed -n 2p);
|
line=$(free -m | tail -2);
|
||||||
used=$(echo $line | awk '{print $3}');
|
used=$(echo $line | awk '{print $3}');
|
||||||
available=$(echo $line | awk '{print $2}');
|
available=$(echo $line | awk '{print $2}');
|
||||||
value=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1)
|
percentage=$(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1)
|
||||||
|
|
||||||
echo "㊎ $(printf "%dMB" $used) $value%"
|
echo "㊎ $(printf "%dMB" $used) $percentage%"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
echo $(uptime --pretty | sed 's/up//;s/ //')
|
echo " $(uptime -p | sed 's/^up //g')"
|
||||||
|
|||||||
Reference in New Issue
Block a user