diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1691f22 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/html/index.html b/html/index.html index 1777da1..d121b7f 100644 --- a/html/index.html +++ b/html/index.html @@ -1,7 +1,7 @@
- +-Today is Friday, 7th November. +Today is Saturday, 8th November.
| - | ♦ | journal! data-status="NODATA"> | - | ♦ | ● | @@ -293,7 +291,7 @@ Here’s this week’s journal! data-status="YES">●● | -● | @@ -313,6 +311,8 @@ Here’s this week’s journal! data-status="YES">● | ● | +● |
| Meditation | @@ -328,8 +328,6 @@ Here’s this week’s journal! data-status="NODATA">- | ● | journal! data-status="NO">× | × | +× | ||||
| French | @@ -391,8 +391,6 @@ Here’s this week’s journal! data-status="NODATA">- | × | journal! data-status="YES">● | × | +× | ||||
| Engineering | @@ -454,8 +454,6 @@ Here’s this week’s journal! data-status="NODATA">- | ♦ | journal! data-status="NO">× | × | +× | ||||
| Exercise | @@ -517,8 +517,6 @@ Here’s this week’s journal! data-status="NODATA">- | ● | journal! data-status="YES">● | × | +× | ||||
| Drawing | @@ -580,8 +580,6 @@ Here’s this week’s journal! data-status="NODATA">- | × | journal! data-status="NO">× | × | -♦ | @@ -628,6 +626,8 @@ Here’s this week’s journal! data-status="NO">× | × | +× | |
| Reading | @@ -657,8 +657,6 @@ Here’s this week’s journal! data-status="NODATA">- | ● | journal! data-status="NO">× | × | +× | ||||
| Social | @@ -708,8 +708,6 @@ Here’s this week’s journal! data-status="NODATA">- | ♦ | journal! data-status="EXCELLENT">♦ | ● | +× |
+Many chores today. +
+
-Using some fish scripts, bspwm, picom and xst I rigged up a transient, transparent terminal to use for quick shell jobs. I used the scripts and config file in Appendix A to do this. The implementation is a bit hacky, and it’s not impossible to break, but it serves my purposes well (and more important, it was fun to make)!
+Using some fish scripts, bspwm, picom and xst I rigged up a transient, transparent terminal to use for quick shell jobs. I used the scripts and config file in Appendix A to do this. The implementation is a bit hacky, and it’s not impossible to break, but it serves my purposes well (and more important, it was fun to make)!
#!/usr/bin/env python3 -import os -from random import choice - -pape_path = os.path.expandvars("$HOME/Pictures/Wallpapers") - -def set_wallpaper(): - files = os.popen(f"ls {pape_path}").read().split('\n') - pape = choice(files) - pp = os.path.join(pape_path, pape) - - os.popen(f"hsetroot -full {pp}") - os.popen(f"echo {pp} > /tmp/wallpaper") - -if __name__ == "__main__": - set_wallpaper() +
-I hacked together some pretty crappy code to lock the screen using i3lock, with my wallpaper composed with a little lock icon as the background. Very overengineered.
+I hacked together some pretty crappy code to lock the screen using i3lock, with my wallpaper composed with a little lock icon as the background. Very overengineered.
@@ -456,9 +441,9 @@ Personally, I’m getting a rare chance to critically examine all the little
togglescratch
makescratch
cleanscratch
picom.conf
#!/usr/bin/python3 -import os -import sys -import time +#!/usr/bin/python3 +import os +import sys +import time -if __name__ == "__main__": - width, height, lwidth, lheight = 2256, 1504, 320, 320 - icon = "$HOME/Pictures/lock_small.png" - pape = os.popen("cat /tmp/wallpaper").read()[:-1] - cache = os.popen("cat /tmp/lockscreen_cache").read()[:-1] +if __name__ == "__main__": + width, height, lwidth, lheight = 2256, 1504, 320, 320 + icon = "$HOME/Pictures/lock_small.png" + pape = os.popen("cat /tmp/wallpaper").read()[:-1] + cache = os.popen("cat /tmp/lockscreen_cache").read()[:-1] - if pape != cache or '--ignore-cache' in sys.argv: - os.popen(f"convert {pape} -resize {width}x{height} -background black -gravity center -extent {width}x{height} /tmp/wallpaper.png").read() - os.popen(f"convert -composite /tmp/wallpaper.png {icon} -geometry +{width//2 - lwidth//2}+{height//2 - lheight//2} /tmp/wallpaper.png").read() - os.popen(f"echo {pape} > /tmp/lockscreen_cache") + if pape != cache or '--ignore-cache' in sys.argv: + os.popen(f"convert {pape} -resize {width}x{height} -background black -gravity center -extent {width}x{height} /tmp/wallpaper.png").read() + os.popen(f"convert -composite /tmp/wallpaper.png {icon} -geometry +{width//2 - lwidth//2}+{height//2 - lheight//2} /tmp/wallpaper.png").read() + os.popen(f"echo {pape} > /tmp/lockscreen_cache") - os.popen("i3lock -u -i /tmp/wallpaper.png") - time.sleep(0.5) - os.popen("loginctl suspend") + os.popen("i3lock -u -i /tmp/wallpaper.png") + time.sleep(0.5) + os.popen("loginctl suspend")