power menu, redshift, polybar
This commit is contained in:
20
.config/polybar/scripts/info-dualshock4/README.md
Normal file
20
.config/polybar/scripts/info-dualshock4/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Script: info-dualshock4
|
||||
|
||||
A shell script that shows the battery level of a DualShock 4 Controller.
|
||||
|
||||

|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The Icon is from [Font Awesome 5](https://fontawesome.com/icons/playstation?style=brands).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-dualshock4]
|
||||
type= custom/script
|
||||
exec = ~/polybar-scripts/info-dualshock4.sh
|
||||
interval = 10
|
||||
```
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
for i in /sys/class/power_supply/sony_controller_battery_*/capacity; do
|
||||
echo "# $(cat /sys/class/power_supply/sony_controller_battery_"$i"/capacity)%"
|
||||
done
|
||||
BIN
.config/polybar/scripts/info-dualshock4/screenshots/1.png
Normal file
BIN
.config/polybar/scripts/info-dualshock4/screenshots/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Reference in New Issue
Block a user