summaryrefslogtreecommitdiffstats
path: root/.fluxbox
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2025-03-19 05:26:21 (EDT)
committer P. J. McDermott <pj@pehjota.net>2025-03-19 05:26:21 (EDT)
commit6005211d3b2fdf945f98d1df6dbfff286f4053c9 (patch)
tree2f24752af150a23c24972471aa8fdb8cdf7356c1 /.fluxbox
parent1c54a3427fd4f309c01b1fa945c5d5bc3f74d0a5 (diff)
downloadfluxbox-6005211d3b2fdf945f98d1df6dbfff286f4053c9.zip
fluxbox-6005211d3b2fdf945f98d1df6dbfff286f4053c9.tar.gz
fluxbox-6005211d3b2fdf945f98d1df6dbfff286f4053c9.tar.bz2
.fluxbox/keys: Organize shots in date directories
With tens of thousands of files in one directory, things like GPicView's ImageList functions get very slow.
Diffstat (limited to '.fluxbox')
-rw-r--r--.fluxbox/keys8
1 files changed, 4 insertions, 4 deletions
diff --git a/.fluxbox/keys b/.fluxbox/keys
index 3a8fa22..8c22574 100644
--- a/.fluxbox/keys
+++ b/.fluxbox/keys
@@ -179,10 +179,10 @@ Shift XF86AudioNext :Exec mpc -h music seek +00:00:05
Shift XF86AudioPrev :Exec mpc -h music seek -00:00:05
# PrtSc
- Print :Exec mkdir -p ~/shots/ && scrot -z ~/shots/%Y-%m-%d_%H:%M:%S.png
- Shift Print :Exec mkdir -p ~/shots/ && scrot -z -u -b ~/shots/%Y-%m-%d_%H:%M:%S.png
-Mod1 Print :Exec mkdir -p ~/shots/ && scrot -z -p ~/shots/%Y-%m-%d_%H:%M:%S.png
-Mod1 Shift Print :Exec mkdir -p ~/shots/ && scrot -z -u -b -p ~/shots/%Y-%m-%d_%H:%M:%S.png
+ Print :Exec mkdir -p ~/shots/$(date '+%Y/%m/%d') && scrot -z ~/shots/$(date '+%Y/%m/%d')/%H:%M:%S.png
+ Shift Print :Exec mkdir -p ~/shots/$(date '+%Y/%m/%d') && scrot -z -u -b ~/shots/$(date '+%Y/%m/%d')/%H:%M:%S.png
+Mod1 Print :Exec mkdir -p ~/shots/$(date '+%Y/%m/%d') && scrot -z -p ~/shots/$(date '+%Y/%m/%d')/%H:%M:%S.png
+Mod1 Shift Print :Exec mkdir -p ~/shots/$(date '+%Y/%m/%d') && scrot -z -u -b -p ~/shots/$(date '+%Y/%m/%d')/%H:%M:%S.png
# Launch applications
#Mod4 :CustomMenu ~/.fluxbox/menus/applications