diff --git a/bin/screenie b/bin/screenie index f44c111..21cf76b 100755 --- a/bin/screenie +++ b/bin/screenie @@ -2,25 +2,17 @@ NAME="ss-$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c${1:-32};)" -maim -m 1 -s /tmp/$NAME.png -c 1,0.25,0.25,0.6 --hidecursor -if [ $? -ne 0 ] -then - notify-send 'Screenshot canceled' -u low +maim -m 10 -s /tmp/$NAME.jpg -c 1,0.25,0.25,0.6 --hidecursor +if [ $? -ne 0 ]; then exit fi -if [ ! -e /tmp/$NAME.png ] -then - notify-send 'Screenshot failed' 'File does not exist' -u critical +if [ ! -e /tmp/$NAME.jpg ]; then exit fi -scp /tmp/$NAME.png ss:ss -if [ $? -eq 0 ] -then - echo -n 'https://ss.fuyu.moe/nisevoid/'$NAME'.png' | xclip -selection "clip-board" - notify-send 'Screenshot uploaded' -u low -else - notify-send 'Screenshot failed' 'Could not upload image' -u critical +scp /tmp/$NAME.jpg ss:ss +if [ $? -eq 0 ]; then + echo -n 'https://ss.fuyu.moe/nisevoid/'$NAME'.jpg' | xclip -selection "clip-board" fi -rm /tmp/$NAME.png +rm /tmp/$NAME.jpg diff --git a/bin/uniqueString b/bin/uniqueString new file mode 100755 index 0000000..fba6876 --- /dev/null +++ b/bin/uniqueString @@ -0,0 +1,2 @@ +#!/bin/sh +cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo; diff --git a/fonts.conf b/fonts.conf new file mode 100644 index 0000000..77ec8e4 --- /dev/null +++ b/fonts.conf @@ -0,0 +1,45 @@ + + + + + serif + Noto Serif + + + sans-serif + Noto Sans + + + sans + Noto Sans + + + monospace + Hack + + + + Arial + + Noto Sans + + + + Verdana + + Noto Sans + + + + Tahoma + + Noto Sans + + + + Helvetica + + Noto Sans + + + diff --git a/install.sh b/install.sh index ec6bf8d..d975a75 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #! /bin/bash -# Dependancies: feh maim slop mpv youtube-dl i3lock xset imagemagick dmenu neovim (lo)ksh mpd mpc fzf xsetroot +# Dependancies: feh maim slop mpv youtube-dl i3lock xset imagemagick dmenu neovim (lo)ksh mpd mpc fzf xsetroot NotoSans/Serif Hack # Build: dwm st ln -s ~/.LinuxConfig/profile ~/.profile @@ -12,5 +12,8 @@ fi mkdir ~/.config/mpv ln -s ~/.LinuxConfig/mpv.conf ~/.config/mpv/ +mkdir ~/.config/fontconfig +ln -s ~/.LinuxConfig/fonts.conf ~/.config/fontconfig/fonts.conf + ln -s ~/.LinuxConfig/xinitrc ~/.xinitrc ln -s ~/.LinuxConfig/picom.conf ~/.config/picom.conf diff --git a/kshrc b/kshrc index 0bce918..3a31094 100755 --- a/kshrc +++ b/kshrc @@ -5,8 +5,8 @@ alias vim=nvim alias uwpass='PASSWORD_STORE_DIR=~/.pass/uw pass' alias gca='git commit --amend --no-edit' alias gpf='git push --force-with-lease' -alias gs='git show --color-words' -alias gd='git diff --color-words' +alias gs='git show' +alias gd='git diff' alias openvpn='sudo openvpn --config *.ovpn' if [ -e "$HOME/.kshrc_private" ]; then