projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed jira to handle branch names that are just numbers
[clearscm.git]
/
bin
/
capture-window.sh
diff --git
a/bin/capture-window.sh
b/bin/capture-window.sh
index
4a859c2
..
21270cf
100755
(executable)
--- a/
bin/capture-window.sh
+++ b/
bin/capture-window.sh
@@
-1,4
+1,6
@@
#!/bin/bash
#!/bin/bash
+#
+# Apparently using png screws up sometimes so let's try using good old jpg
timeout=10
screenshot_directory=/tmp
timeout=10
screenshot_directory=/tmp
@@
-8,11
+10,13
@@
function yesno {
zenity --question --text "$question" --width=300 --timeout=$timeout 2> /dev/null
}
zenity --question --text "$question" --width=300 --timeout=$timeout 2> /dev/null
}
-mate-screenshot -wc
+sleep 1
+
+gnome-screenshot --window --clipboard
aplay ~/Conf/CameraClick.wav
aplay ~/Conf/CameraClick.wav
-file="$screenshot_directory/$(date +%F@%T).
pn
g"
+file="$screenshot_directory/$(date +%F@%T).
jp
g"
if yesno "Save screenshot as $file?"; then
if yesno "Save screenshot as $file?"; then
- xclip -selection clipboard -t image/
pn
g -o > $file
+ xclip -selection clipboard -t image/
jpe
g -o > $file
fi
fi