add batman beyond config

This commit is contained in:
2026-05-16 13:01:39 -04:00
parent 2bd06da3ed
commit 1b3849ccd3
38 changed files with 3077 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/fish
function m50x
set -l mac "00:0A:45:44:82:12"
set -l conn $( bluetoothctl devices Connected )
if test -z $conn
if bluetoothctl connect $mac > /dev/null
echo "Connection successful"
end
else
if bluetoothctl disconnect > /dev/null
echo "Disconnection successful"
end
end
end
@@ -0,0 +1,15 @@
#!/bin/fish
function dec_brightness
brightnessctl -q set 5%-
set -f cur ( brightnessctl get )
set -f max ( brightnessctl max )
set -f ret ( math -s0 "100 * $cur / $max" )
#echo $ret > /tmp/xobpipe
echo $ret
end
+15
View File
@@ -0,0 +1,15 @@
#!/bin/fish
function get_volume
if string match --regex '\[off\]' $(amixer sset Master toggle) 1>/dev/null
set -f ret $( pamixer --get-volume | sed 's/$/!/' )
else
set -f ret $( pamixer --get-volume )
end
#echo $ret > /tmp/xobpipe
echo $ret
end
@@ -0,0 +1,15 @@
#!/bin/fish
function inc_brightness
brightnessctl -q set +5%
set -f cur ( brightnessctl get )
set -f max ( brightnessctl max )
set -f ret ( math -s0 "100 * $cur / $max" )
#echo $ret > /tmp/xobpipe
echo $ret
end
+9
View File
@@ -0,0 +1,9 @@
#!/bin/fish
function qd
set -l x ( pgrep -i "discord" | head -n1 )
if test $status -eq 0
kill $x
end
end