too many things
This commit is contained in:
11
.config/fish/functions/battery_capacity.fish
Normal file
11
.config/fish/functions/battery_capacity.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
function battery_capacity
|
||||
cd /sys/class/power_supply/
|
||||
for dir in ( ls | rg BAT | cut -d" " -f1)
|
||||
cd $dir &&
|
||||
cat energy_full | read x &&
|
||||
cat energy_full_design | read y &&
|
||||
echo "capacity % of $dir compared to design capacity"
|
||||
kalker $x/$y &&
|
||||
cd ..
|
||||
end
|
||||
end
|
||||
@@ -1,4 +1,4 @@
|
||||
function restart --argument x
|
||||
|
||||
pkill $x && $x &>/dev/null& && sleep 0.2 && jobs | disown
|
||||
pkill $x; $x &>/dev/null&; sleep 0.2; jobs | disown
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function setscreenb --argument x
|
||||
|
||||
for i in (seq 1 2)
|
||||
sudo ddcutil setvcp 10 $x -d $i
|
||||
end
|
||||
for i in (seq 1 2)
|
||||
ddcutil setvcp 10 $x -d $i
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user