Configure the window manager to do `polybar-msg cmd toggle` when going
in and out of fullscreen.
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,25 @@ |
| 1 |
+[ "$(command -v polybar)" ] || return 0 |
|
| 2 |
+ |
|
| 3 |
+# export BATTERY_ADAPTER="$( |
|
| 4 |
+# grep -E -l 'Mains' '/sys/class/power_supply/'*'/type' \ |
|
| 5 |
+# | head -n 1 \ |
|
| 6 |
+# | sed 's|.*/\(.\+\)/type$|\1|' |
|
| 7 |
+# )" |
|
| 8 |
+# export BATTERY_BATTERY="$( |
|
| 9 |
+# grep -E -l 'Battery' '/sys/class/power_supply/'*'/type' \ |
|
| 10 |
+# | head -n 1 \ |
|
| 11 |
+# | sed 's|.*/\(.\+\)/type$|\1|' |
|
| 12 |
+# )" |
|
| 13 |
+export TEMPERATURE_THERMAL_ZONE="$( |
|
| 14 |
+ grep -E -l 'cpu|x86' '/sys/class/thermal/thermal_zone'*'/type' 2> /dev/null \ |
|
| 15 |
+ | head -n 1 \ |
|
| 16 |
+ | sed 's|.*\([0-9]\+\)/type$|\1|' |
|
| 17 |
+)" |
|
| 18 |
+export BACKLIGHT_CARD="$( |
|
| 19 |
+ grep -E -l 'raw' '/sys/class/backlight/'*'/type' 2> /dev/null \ |
|
| 20 |
+ | head -n 1 \ |
|
| 21 |
+ | sed 's|.*/\(.\+\)/type$|\1|' |
|
| 22 |
+)" |
|
| 23 |
+ |
|
| 24 |
+polybar --quiet --reload top-noshadow & |
|
| 25 |
+polybar --quiet --reload bottom-noshadow & |