summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-12-22 15:59:47 +0100
committerPatrick Simianer <pks@pks.rocks>2018-12-22 15:59:47 +0100
commit2f30c7844636cdbaa2d546d963702258f82646a3 (patch)
tree3e4ec18889dbaa40fbab5a036c78b8a696ea0d88
parentc000411674c8eb01f3ec1de6077094f85b5f77a6 (diff)
parent6bd0502feb9a0cb1accede4f35c777a0166879b3 (diff)
Merge branch 'master' of ssh://github.com/pks/bin
-rwxr-xr-xautostart2
-rwxr-xr-xrename-pix-by-time-and-cam4
2 files changed, 5 insertions, 1 deletions
diff --git a/autostart b/autostart
index 3a55f36..e332498 100755
--- a/autostart
+++ b/autostart
@@ -36,7 +36,7 @@ if [[ $(hostname) == "bogues" ]]; then
fi
if [[ $(hostname) == "bryant" ]]; then
- exec xrandr --output HDMI2 --rotate right &
+ exec xrandr --output HDMI-2 --rotate right &
#exec xrandr --output DP-7 --rotate right &
#exec sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" &
fi
diff --git a/rename-pix-by-time-and-cam b/rename-pix-by-time-and-cam
index 592e432..0dee002 100755
--- a/rename-pix-by-time-and-cam
+++ b/rename-pix-by-time-and-cam
@@ -32,6 +32,10 @@ ids.each do |i|
elsif j.start_with? "Date/Time Original"
timestamp = j
elsif j.start_with? "File Modification Date/Time"
+ if not timestamp_bak
+ timestamp_bak = j
+ end
+ elsif j.start_with? "Creation Date"
timestamp_bak = j
else
next