Commit 225363fd by Javi Fontan

Add bin utils

parent c1bd0fd9
echo $1 |sudo tee /sys/class/backlight/intel_backlight/brightness
#!/bin/bash
sound_card=$1
if [ -z "$sound_card" ]; then
echo "A sound card must be specified"
exit -1
fi
sink_name=$( pactl list sinks | grep -E '^\s+Name:' | cut -d' ' -f2 | \
grep "$sound_card" | head -n 1 )
if [ -z "$sink_name" ]; then
echo "Sink name not found"
exit -1
fi
pacmd set-default-sink "$sink_name"
clients=$(pacmd list-sink-inputs | grep -E "^\s+index:" | awk '{print $2}')
for client in $clients; do
pacmd move-sink-input "$client" "$sink_name"
done
#!/bin/bash
# exit 0
# ~/bin/base16-oceanicnext.sh
# ~/bin/base16-flat.dark.sh
# cursor color
echo -ne '\e]12;#5555ee\a'
#xinput disable "SYNAPTICS Synaptics Large Touch Screen"
xinput disable "ELAN Touchscreen"
synclient TouchpadOff=1
#synclient ClickPad=0
synclient TouchpadOff=0
#synclient ClickPad=1
echo 500 |sudo tee /sys/class/backlight/intel_backlight/brightness
#!/bin/bash
# touch_id=12
# touch_id=14
touch_id="pointer:DLL075B:01 06CB:76AF Touchpad"
# xinput --set-prop "$touch_id" 279 1
# xinput --set-prop "$touch_id" 299 1
xinput --set-prop "$touch_id" "libinput Tapping Enabled" 1
xinput --set-prop "$touch_id" "libinput Middle Emulation Enabled" 1
# xinput --set-prop $touch_id 297 1
# xinput --set-prop $touch_id 289 1
pactl unload-module module-loopback
pactl load-module module-loopback
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment