updates
This commit is contained in:
@@ -12,7 +12,7 @@ Here's this week's [[./journal/w44-2025.org][journal]]!
|
||||
|
||||
** Habits
|
||||
#+BEGIN_CENTER
|
||||
/Today is Friday, 7th November./
|
||||
/Today is Saturday, 8th November./
|
||||
#+END_CENTER
|
||||
#+BEGIN_SRC emacs-lisp :exports results :results value html :cache no
|
||||
(defun akk0/org-to-html (org-string)
|
||||
@@ -191,7 +191,7 @@ Rows are custom-ids, columns are days."
|
||||
|
||||
html))
|
||||
|
||||
(akk0/habits-to-html-table habit-alist 310 30 5)
|
||||
(akk0/habits-to-html-table habit-alist 312 30 5)
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_EXPORT html
|
||||
|
||||
@@ -86,3 +86,42 @@ Tired, so tired.
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-reading
|
||||
:END:
|
||||
** Saturday, 8th November
|
||||
:PROPERTIES:
|
||||
:DAILIES-YEAR: 2025
|
||||
:DAILIES-DAY: 312
|
||||
:END:
|
||||
*** YES Journal
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-blogging
|
||||
:END:
|
||||
Many chores today.
|
||||
*** Habits :autocollapse:
|
||||
**** NO Meditation
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-meditation
|
||||
:END:
|
||||
**** NO Drawing
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-drawing
|
||||
:END:
|
||||
**** NO Engineering
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-engineering
|
||||
:END:
|
||||
**** NO French
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-french
|
||||
:END:
|
||||
**** NO Social
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-social
|
||||
:END:
|
||||
**** NO Exercise
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-exercise
|
||||
:END:
|
||||
**** NO Reading
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: dailies-reading
|
||||
:END:
|
||||
|
||||
@@ -97,16 +97,79 @@ Personally, I'm getting a rare chance to critically examine all the little confi
|
||||
|
||||
* Appendix A: Transient Terminal Sources
|
||||
=togglescratch=
|
||||
#+INCLUDE: "~/Scripts/togglescratch" src fish
|
||||
#+BEGIN_SRC fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
if test ! -e /tmp/scratch_id
|
||||
exec xst -e makescratch
|
||||
end
|
||||
|
||||
set nid (cat /tmp/scratch_id)
|
||||
|
||||
if test -e /tmp/scratch_on
|
||||
rm /tmp/scratch_on
|
||||
bspc node $nid --to-desktop z
|
||||
else
|
||||
touch /tmp/scratch_on
|
||||
bspc node $nid --to-desktop focused --focus --state fullscreen --flag private=on
|
||||
end
|
||||
#+END_SRC
|
||||
|
||||
|
||||
=makescratch=
|
||||
#+INCLUDE: "~/Scripts/makescratch" src fish
|
||||
#+BEGIN_SRC fish
|
||||
#!/bin/fish
|
||||
set nid (xdo id)
|
||||
echo $nid > /tmp/scratch_id
|
||||
bspc node $nid --state fullscreen --flag private=on --to-desktop focused
|
||||
touch /tmp/scratch_on
|
||||
set decid (printf '%d' $nid)
|
||||
xdotool set_window --name "scratchterminal" $decid
|
||||
exec "$HOME/Scripts/cleanscratch"
|
||||
|
||||
#+END_SRC
|
||||
|
||||
|
||||
=cleanscratch=
|
||||
#+INCLUDE: "~/Scripts/cleanscratch" src fish
|
||||
#+BEGIN_SRC fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
$SHELL
|
||||
rm /tmp/scratch_id
|
||||
rm /tmp/scratch_on
|
||||
#+END_SRC
|
||||
|
||||
|
||||
=picom.conf=
|
||||
#+INCLUDE: "~/.config/picom.conf" src
|
||||
#+BEGIN_SRC
|
||||
fading = true;
|
||||
no-fading-openclose = true;
|
||||
fade-delta = 5;
|
||||
vsync = true;
|
||||
backend="glx";
|
||||
opacity-rule=["90:name = 'scratchterminal'"];
|
||||
#opacity-rule=["90:class_g = 'xst-256color'"];
|
||||
#+END_SRC
|
||||
|
||||
* Appendix B: lock.py
|
||||
#+INCLUDE: "~/Scripts/lock.py" src python
|
||||
#+BEGIN_SRC fish
|
||||
#!/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 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")
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user