Explorar el Código

mshot now has sound, mupload copies URL to clipboard before the file has been uploaded

master
mort hace 9 años
padre
commit
6f9c79df98
Se han modificado 5 ficheros con 8 adiciones y 2 borrados
  1. BIN
      assets/sounds/camera-shutter.mp3
  2. 1
    0
      bin/mshot
  3. 1
    1
      bin/mupload
  4. 1
    1
      dotfiles/profile
  5. 5
    0
      setup.sh

BIN
assets/sounds/camera-shutter.mp3 Ver fichero


+ 1
- 0
bin/mshot Ver fichero

@@ -7,5 +7,6 @@ fi
sleep 0.1
DIR=`mktemp -d`
scrot "$DIR/pic.png"
mplayer -nogui "$HOME/assets/sounds/camera-shutter.mp3" </dev/null >/dev/null 2>&1 &

mupload "$DIR/pic.png" "img/${1}.png"

+ 1
- 1
bin/mupload Ver fichero

@@ -5,7 +5,7 @@ if [ ! -f "$1" ] || [ "$2" == "" ]; then
exit 1
fi

scp "$1" "martin@serve.mort.coffee:/var/www/mort.coffee/d/public/$2"
URL="http://d.mort.coffee/$2"
echo $URL | xsel -ib
scp "$1" "martin@serve.mort.coffee:/var/www/mort.coffee/d/public/$2"
echo $URL

+ 1
- 1
dotfiles/profile Ver fichero

@@ -3,7 +3,7 @@ export XDG_CONFIG_HOME="$HOME/.config"

xset r rate 200 60
setxkbmap dvorak -option "ctrl:nocaps"
compton --config ~/.comptonrc --backend glx --vsync opengl-swc --paint-on-overlay -b
compton --config ~/.comptonrc --backend glx --vsync opengl-swc --paint-on-overlay &
feh --bg-scale ~/background.jpg
xmodmap .Xmodmaprc


+ 5
- 0
setup.sh Ver fichero

@@ -73,6 +73,11 @@ done
cd ..
echo "Done."

echo "Copying assets..."
rm -r "$HOME/assets"
cp -r assets "$HOME/assets"
echo "Done."

while getopts :m option; do
case "$option" in
m)

Cargando…
Cancelar
Guardar