From 5f54ec79d0d41ec706d01c93c8c24b79404376b1 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 15 Mar 2018 10:42:18 -0400 Subject: [PATCH] Modifications --- i3/config | 4 ++-- i3/run.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/i3/config b/i3/config index 9c8e37d..4417cf3 100644 --- a/i3/config +++ b/i3/config @@ -81,8 +81,8 @@ bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+shift+space floating toggle -#bindsym $mod+space focus mode_toggle -bindsym $mod+space exec "~/.i3/run.sh window" +bindsym $mod+space focus mode_toggle +#bindsym $mod+space exec "~/.i3/run.sh window" bindsym $mod+1 $x_switch 1 bindsym $mod+2 $x_switch 2 bindsym $mod+3 $x_switch 3 diff --git a/i3/run.sh b/i3/run.sh index bd5c25d..8fb49a1 100755 --- a/i3/run.sh +++ b/i3/run.sh @@ -112,7 +112,9 @@ if [ "$1" = "screenshot" ]; then \rm -f ~/last-photo/*(N) sleep .2 #DISPLAY=:0.0 xfce4-screenshooter -r -s ~/last-photo - DISPLAY=:0.0 import "$HOME/last-photo/$(date +'%Y-%m-%d_%T').png" + local FNAME="$HOME/last-photo/$(date +'%Y-%m-%d_%T').png" + DISPLAY=:0.0 import "${FNAME}" + DISPLAY=:0.0 xclip -selection clipboard -t image/png -i "${FNAME}" #DISPLAY=:0.0 scrot -s "$HOME/last-photo/$(date +'%Y-%m-%d_%T').png" \cp ~/last-photo/* ~/Pictures fi