diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-15 22:55:19 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-15 22:55:19 +0530 |
commit | 7eebb7e7577fa1531726e04b0b810986a26835ba (patch) | |
tree | 9fe47b4b17bc9d8a713a6b962e71336e3108bfe2 | |
parent | 593c41b67d71b21ed8907bb56668ee27671bde25 (diff) |
added scfripts to check battery and fixed play-webcam.sh
-rwxr-xr-x | .scripts/battery_status.sh | 2 | ||||
-rwxr-xr-x | .scripts/notify_battery_status.sh | 2 | ||||
-rwxr-xr-x | .scripts/play-webcam.sh | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/.scripts/battery_status.sh b/.scripts/battery_status.sh new file mode 100755 index 0000000..a66bd70 --- /dev/null +++ b/.scripts/battery_status.sh @@ -0,0 +1,2 @@ +#!/bin/sh +acpi -b | awk '{print substr($4, 0, length($2) + 1) ", " substr($3, 0, length($3) - 1)}' diff --git a/.scripts/notify_battery_status.sh b/.scripts/notify_battery_status.sh new file mode 100755 index 0000000..a9ccee4 --- /dev/null +++ b/.scripts/notify_battery_status.sh @@ -0,0 +1,2 @@ +#!/bin/sh +notify-send "Battery:" "$(battery_status.sh)" diff --git a/.scripts/play-webcam.sh b/.scripts/play-webcam.sh index 0bc71ca..002d2f7 100755 --- a/.scripts/play-webcam.sh +++ b/.scripts/play-webcam.sh @@ -1 +1,2 @@ +#!/bin/sh mpv av://v4l2:/dev/video0 --profile=low-latency --untimed |