mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 23:46:13 +01:00
thinkpad adjustments
This commit is contained in:
@@ -62,12 +62,12 @@ cpu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
battery() {
|
battery() {
|
||||||
# capacity_0="$(cat /sys/class/power_supply/BAT0/capacity)"
|
capacity_0="$(cat /sys/class/power_supply/BAT0/capacity)"
|
||||||
# capacity_1="$(cat /sys/class/power_supply/BAT1/capacity)"
|
capacity_1="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||||
|
|
||||||
|
capacity="$capacity_0+$capacity_1"
|
||||||
# capacity=$(((capacity_0 + capacity_1) / 2))
|
# capacity=$(((capacity_0 + capacity_1) / 2))
|
||||||
capacity=100
|
|
||||||
|
|
||||||
printf " B$capacity%% "
|
printf " B$capacity%% "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Magic Sysrq key enabler
|
|
||||||
|
|
||||||
Wants=network.target
|
|
||||||
After=default.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/magic-sysrq-enable
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
KillMode=process
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Thinkpad Trackpoint sensitivity fix
|
|
||||||
|
|
||||||
Wants=network.target
|
|
||||||
After=default.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/set-trackpoint-sensitivity
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
KillMode=process
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
Reference in New Issue
Block a user