Commit 9b7e10f6 by Fred Smith

i3 changes

parent 87992913
#! /usr/bin/env bash
icon="$HOME/Pictures/lock.png"
tmpbg='/tmp/screen.png'
(( $# )) && { icon=$1; }
scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock -i "$tmpbg"
#! /usr/bin/env bash
set -x
MONITORS=$(xrandr | grep ' connected' | cut -f 1 -d ' ');
MONITOR_COUNT=$(echo "$MONITORS" | wc -l);
if [[ $MONITOR_COUNT -eq "3" ]]; then
xrandr --output DP-2-1 --left-of eDP-1 --auto --primary --output DP-2-2 --left-of DP-2-1 --auto --output eDP-1 --auto
notify-send "setting up 3 displays" -i preferences-desktop-display
elif [[ $MONITOR_COUNT -eq "2" ]]; then
xrandr --output eDP-1 --auto --primary --output HDMI-2 --left-of eDP-1 --auto --output DP-2-1 --off --output DP-2-2 --off
notify-send "setting up 2 display" -i preferences-desktop-display
elif [[ $MONITOR_COUNT -eq "1" ]]; then
xrandr --output eDP-1 --auto --primary --output DP-2-1 --off --output DP-2-2 --off
notify-send "setting up 1 display" -i preferences-desktop-display
fi
#! /usr/bin/env bash
scrot -e '~/bin/screenshot_upload $f; mv $f ~/Dropbox/Screenshots'
hostname=$(hostname -s)
scrot "$hostname-%Y-%m-%d-%H-%M-%S-\$wx\$h.png" -e '~/bin/screenshot_upload $f; mv $f ~/Pictures/Screenshots'
#! /usr/bin/env bash
hostname=$(hostname -s)
sleep .3
scrot -s -b -e '~/bin/screenshot_upload $f; mv $f ~/Dropbox/Screenshots'
#scrot "$hostname-%Y-%m-%d-%H-%M-%S-\$wx\$h.png" -s -b -e '~/bin/screenshot_upload $f; mv $f ~/Pictures/Screenshots'
filename=~/Pictures/Screenshots/$hostname-$(date +'%Y-%m-%d-%H-%M-%S').png
maim -s -c 1,0,0,0.6 -p 10 $filename
~/bin/screenshot_upload $filename
#! /usr/bin/env bash
scp $1 mimas:derf.us/screenshots/
echo "http://derf.us/screenshots/$1" | xclip -selection clipboard
scp $1 pandora:/var/www/files.derf.us/
file_basename=$(basename $1)
echo "https://files.derf.us/$file_basename" | xclip -selection clipboard
sleep .5
#! /usr/bin/env bash
hostname=$(hostname -s)
sleep .3
scrot -s -b -e '~/bin/screenshot_upload $f; mv $f ~/Dropbox/Screenshots'
scrot "$hostname-%Y-%m-%d-%H-%M-%S-\$wx\$h.png" -s -b -e '~/bin/screenshot_upload $f; mv $f ~/Pictures/Screenshots'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment