diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 49f8bfe..cb39c3b 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -3,16 +3,26 @@ 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" + 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 sudo powerpill -Su --noconfirm' +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 diff --git a/.xbindkeysrc b/.xbindkeysrc new file mode 100644 index 0000000..2b251b8 --- /dev/null +++ b/.xbindkeysrc @@ -0,0 +1,14 @@ +"fish -c 'ss 0'" + m:0x0 + c:191 + XF86Tools + + +"fish -c 'math (cat /sys/class/backlight/backlight/brightness)-2000 > /sys/class/backlight/backlight/brightness'" + m:0x40 + c:72 + Mod4 + F6 + + +"fish -c 'math (cat /sys/class/backlight/backlight/brightness)+2000 > /sys/class/backlight/backlight/brightness'" + m:0x40 + c:73 + Mod4 + F7 + diff --git a/.xinitrc b/.xinitrc index d1295f5..48e7e1b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -8,15 +8,7 @@ sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then - - - - - - - xrdb -merge $sysresources - fi if [ -f $sysmodmap ]; then @@ -24,15 +16,7 @@ if [ -f $sysmodmap ]; then fi if [ -f "$userresources" ]; then - - - - - - - xrdb -merge "$userresources" - fi if [ -f "$usermodmap" ]; then @@ -50,7 +34,4 @@ fi xbindkeys ~/.fehbg & i3 -#xinput set-prop "Atmel maXTouch Touchpad" 266 {1} -#xinput set-prop "Atmel maXTouch Touchpad" 268 {0} -#compton