Compare commits
4 Commits
3676e4e447
...
678ec38e9c
Author | SHA1 | Date |
---|---|---|
Nise Void | 678ec38e9c | |
Nise Void | 192ba24829 | |
Nise Void | 9daed8c324 | |
Nise Void | ac175c332d |
22
bin/screenie
22
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 <u>not</u> 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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;
|
|
@ -0,0 +1,45 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer><family>Noto Serif</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer><family>Noto Sans</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer><family>Noto Sans</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>Hack</family></prefer>
|
||||
</alias>
|
||||
|
||||
<match>
|
||||
<test name="family"><string>Arial</string></test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Verdana</string></test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Tahoma</string></test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="family"><string>Helvetica</string></test>
|
||||
<edit name="family" mode="assign" binding="strong">
|
||||
<string>Noto Sans</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
|
@ -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
|
||||
|
|
4
kshrc
4
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
|
||||
|
|
Loading…
Reference in New Issue