You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
Fish
38 lines
1.6 KiB
Fish
xinput set-prop "Atmel maXTouch Touchpad" 260 {1} 2>/dev/null
|
|
xinput set-prop "Atmel maXTouch Touchpad" 262 {0} 2>/dev/null
|
|
xinput set-prop "Atmel maXTouch Touchpad" 280 {0.2} 2>/dev/null
|
|
alias brightness 'sudo nano /sys/class/backlight/backlight/brightness'
|
|
function battery
|
|
set y (cat /sys/class/power_supply/sbs-9-000b/charge_full)
|
|
set x (cat /sys/class/power_supply/sbs-9-000b/charge_now)
|
|
math -s2 "$x/$y * 100"
|
|
end
|
|
set -x TZ 'America/Chicago'
|
|
alias vpn 'sudo openvpn --config /home/cole/Downloads/us-chicago.ovpn --auth-user-pass /home/cole/Downloads/pass'
|
|
set touchpadEnabled 1
|
|
alias arduino /home/cole/Downloads/arduino-nightly/arduino
|
|
alias ppu 'sudo pacman -Sy; and pp -Su --noconfirm; and yay -Su; and yay -Scc'
|
|
alias pp 'sudo powerpill'
|
|
alias add 'git add .config/fish/config.fish .config/pulse/3cfb1915dbe54ca3a921435cb523fa90-device-volumes.tdb .config/pulse/3cfb1915dbe54ca3a921435cb523fa90-stream-volumes.tdb .config/termite/config .local/share/applications/*'
|
|
sudo rfkill block bluetooth
|
|
|
|
function fish_prompt
|
|
/usr/bin/powerline-go -error $status -shell bare -modules nix-shell,venv,user,host,ssh,cwd,perms,git,hg,root,vgo
|
|
end
|
|
|
|
function ss
|
|
sleep $argv > /dev/null 2>&1
|
|
set timesave (date +'SCRSHOT_%m-%d_%I:%M:%S_%p.png')
|
|
gnome-screenshot -a -f ~/$timesave > /dev/null 2>&1
|
|
echo 'Screenshot saved at ~/'$timesave
|
|
end
|
|
|
|
function getvol
|
|
set vol (pactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
|
|
if [ $vol -gt '100' ]
|
|
set vol 100
|
|
pactl set-sink-volume 0 100%
|
|
end
|
|
twmnc --remote hide
|
|
twmnc -t "Volume: $vol"
|
|
end |