Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
d8f5f0af39
1 changed files with 5 additions and 2 deletions
  1. 5 2
      README.md

+ 5 - 2
README.md

@@ -1,8 +1,10 @@
 # bash-battery-suspend
 # bash-battery-suspend
+
 Simple Linux daemon for suspending OS on some battery charge level. It's a crap, when my Ubuntu at 0%-2% battery level are shutdown without hibernation or without suspending. This small daemon, writted on bash, solve this issue and suspend OS when battery level at 15% (can be configured inside script). Actually at 20% we will recive alert message and at 15% - OS suspending. My laptop can keep all, in suspend mode, about 24 hours on 10% battery charge. Then I can plug battery charger and safty wakeup my laptop and continue working with all tmux sessions and all etc...
 Simple Linux daemon for suspending OS on some battery charge level. It's a crap, when my Ubuntu at 0%-2% battery level are shutdown without hibernation or without suspending. This small daemon, writted on bash, solve this issue and suspend OS when battery level at 15% (can be configured inside script). Actually at 20% we will recive alert message and at 15% - OS suspending. My laptop can keep all, in suspend mode, about 24 hours on 10% battery charge. Then I can plug battery charger and safty wakeup my laptop and continue working with all tmux sessions and all etc...
 
 
 ## Configuration
 ## Configuration
-```
+
+```sh
 # Floor of battery charge percentage for alert message
 # Floor of battery charge percentage for alert message
 BAT_SUSPEND_MSG_PERC="20"
 BAT_SUSPEND_MSG_PERC="20"
 
 
@@ -11,7 +13,8 @@ BAT_SUSPEND_ACT_PERC="15"
 ```
 ```
 
 
 ## Installation/Usage
 ## Installation/Usage
-```
+
+```sh
 sudo wget -O /bin/battery-suspend https://github.com/vladimirok5959/bash-battery-suspend/releases/download/latest/bash-battery-suspend.sh
 sudo wget -O /bin/battery-suspend https://github.com/vladimirok5959/bash-battery-suspend/releases/download/latest/bash-battery-suspend.sh
 sudo chmod +x /bin/battery-suspend
 sudo chmod +x /bin/battery-suspend