diff --git a/i3/config b/i3/config index bffd720b92de67267687e631f1c827ba2396f0c0..2f078d4275949b02b1a0662c9e8c4a5e0c7eba68 100644 --- a/i3/config +++ b/i3/config @@ -268,6 +268,8 @@ mode "System modifikator" bindsym Print exec gnome-screenshot -w bindsym Shift+Print exec gnome-screenshot bindsym Control+Print exec gnome-screenshot -i + bindsym $mod+Print exec printscreengimp + exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & diff --git a/i3/init.sh b/i3/init.sh index 4909dc0e77c0bc3971e75093e82bce705b4fa4ea..b5fe9b702af1062b2c766cba03e64995e2deb9ee 100644 --- a/i3/init.sh +++ b/i3/init.sh @@ -1,7 +1,10 @@ #!/bin/bash -cd "$(dirname "$0")"ZZ +cd "$(dirname "$0")" if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi apt install numlockx apt install jq cp config ~/.config/i3/config cp toggle-border ~/.config/i3/i3-toggle-border +cp printscreengimp /usr/bin/ + +chmod o+x /usr/bin/printscreengimp diff --git a/i3/printscreengimp b/i3/printscreengimp new file mode 100644 index 0000000000000000000000000000000000000000..8335a6599b3f525024e1534d46d38eb4342ab92e --- /dev/null +++ b/i3/printscreengimp @@ -0,0 +1,3 @@ +#!/bin/bash +gnome-screenshot -f ~/screenshot.png; +sleep .2;i3-msg "workspace 10; exec gimp ~/screenshot.png"