diff options
| author | Shubham Saini <shubham6405@protonmail.com> | 2020-06-03 14:45:32 +0000 |
|---|---|---|
| committer | Shubham Saini <shubham6405@protonmail.com> | 2020-06-03 14:45:32 +0000 |
| commit | 916b481d86e36ea8f3b151b1b5cc508cbc128466 (patch) | |
| tree | ceb22d9b6b7f8b41e0e20aab343b7a47596e0507 | |
| parent | f967b69520737b4bf011427ecff6be070bc1369d (diff) | |
updates
| -rwxr-xr-x | bin/.local/bin/bat_check.sh | 2 | ||||
| -rw-r--r-- | git/.gitconfig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/.local/bin/bat_check.sh b/bin/.local/bin/bat_check.sh index 453d129..547b976 100755 --- a/bin/.local/bin/bat_check.sh +++ b/bin/.local/bin/bat_check.sh | |||
| @@ -3,7 +3,7 @@ while true | |||
| 3 | do | 3 | do |
| 4 | battery_level=$(cat /sys/class/power_supply/BAT0/capacity) | 4 | battery_level=$(cat /sys/class/power_supply/BAT0/capacity) |
| 5 | state=$(cat /sys/class/power_supply/BAT0/status) | 5 | state=$(cat /sys/class/power_supply/BAT0/status) |
| 6 | if [ $battery_level -ge 95 ] && [ $state == "Charging" ]; then | 6 | if [ $battery_level -ge 90 ] && [ $state == "Charging" ]; then |
| 7 | notify-send 'Pull the plug!' $battery_level% | 7 | notify-send 'Pull the plug!' $battery_level% |
| 8 | elif [ $battery_level -le 30 -a $battery_level -ge 20 ] && [ $state == "Discharging" ]; then | 8 | elif [ $battery_level -le 30 -a $battery_level -ge 20 ] && [ $state == "Discharging" ]; then |
| 9 | notify-send 'Plug me!' $battery_level% | 9 | notify-send 'Plug me!' $battery_level% |
diff --git a/git/.gitconfig b/git/.gitconfig index 0cadb04..33f6a73 100644 --- a/git/.gitconfig +++ b/git/.gitconfig | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | [user] | 1 | [user] |
| 2 | email = shubham6405@gmail.com | 2 | email = shubham6405@protonmail.com |
| 3 | name = Shubham Saini | 3 | name = Shubham Saini |
