add batman beyond config
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user