diff --git a/i3/config b/i3/config index 44ec353..afaf738 100644 --- a/i3/config +++ b/i3/config @@ -66,7 +66,7 @@ bindsym $mod+Ctrl+x --release exec --no-startup-id xkill bindsym $mod+n --release exec --no-startup-id terminator -e nnn bindsym Insert exec --no-startup-id maim -s ~/Pictures/$(date +%Y-%m-%d-%s).png #i3-scrot --select '%Y-%m-%d_$wx$h.png' # Selection -- CHange cursor? -bindsym $mod+Insert --release exec --no-startup-id maim -i $(xdotool getactivewindow) ~/Pictures/$(date +%Y-%m-%d-%s).png #i3-scrot -w '%Y-%m-%d_$wx$h.png' # Window +bindsym $mod+Insert exec --no-startup-id ~/.i3/screenshotter.sh #i3-scrot -w '%Y-%m-%d_$wx$h.png' # Window bindsym $mod+Shift+Insert --release exec --no-startup-id maim ~/Pictures/$(date +%Y-%m-%d).png #i3-scrot -d '%Y-%m-%d_$wx$h.png' # Fullscreen bindsym $mod+Ctrl+Insert exec --no-startup-id maim -s ~/Pictures/$(date +%Y-%m-%d).png&& pinta ~/Pictures/$(date +%Y-%m-%d-%s).png # screenshot and edit diff --git a/i3/screenshotter.sh b/i3/screenshotter.sh new file mode 100755 index 0000000..180511b --- /dev/null +++ b/i3/screenshotter.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +DATE=$(date +%Y-%m-%d-%s).png +FILENAME=~/Pictures/$DATE + +maim -s $FILENAME& +wait $! + +notify-send "Uploading Screenshot" +scp $FILENAME web.foxnet.space:/var/www/c0de.link/pics& +wait $! + +echo https://i.c0de.link/$DATE | xclip -selection clipboard +notify-send "Link copied to Clipboard" diff --git a/install.sh b/install.sh index 97d5318..431e6ba 100755 --- a/install.sh +++ b/install.sh @@ -107,7 +107,8 @@ mkdir -p $HOME/.config/i3 mkdir -p $HOME/.i3 symlink $basedir/i3/config $HOME/.config/i3/config symlink $basedir/i3/i3blocks.conf $HOME/.i3/i3blocks.conf -symlink $basedir/i3/wallpaper.sh $Home/.i3/wallpaper.sh +symlink $basedir/i3/wallpaper.sh $HOME/.i3/wallpaper.sh +symlink $basedir/i3/screenshotter.sh $HOME/.i3/screenshotter.sh symlink $basedir/i3/compton.conf $HOME/.compton.conf if [ -e "$postinst" ]; then