Compare commits
4 Commits
c3b272fa13
...
51e512c83f
Author | SHA1 | Date |
---|---|---|
Daylin Morgan | 51e512c83f | |
Daylin Morgan | abae4f2b1f | |
Daylin Morgan | 39c2821120 | |
Daylin Morgan | a484190180 |
|
@ -0,0 +1,48 @@
|
|||
#!/usr/bin/env sh
|
||||
# Create a dated text file at a specific location and append text to it.
|
||||
#
|
||||
# Usage:
|
||||
# $ notes something you want to jot down (appends that text to the file)
|
||||
# $ xclip -o | notes (appends your clipboard to the file)
|
||||
# $ notes (opens the file in your editor)
|
||||
#
|
||||
# Produces:
|
||||
# YYYY-W.txt in your $NOTES_DIRECTORY (this is set below).
|
||||
|
||||
set -e
|
||||
|
||||
YEAR="$(date +"%Y")"
|
||||
WEEK="$(date +"%W")"
|
||||
NOTES_DIRECTORY="${NOTES_DIRECTORY:-${HOME}/stuff/notes/notes}"
|
||||
NOTES_EDITOR="${EDITOR:-vim}"
|
||||
NOTES_FILE="${YEAR}-${WEEK}.md"
|
||||
NOTES_PATH="${NOTES_DIRECTORY}/${NOTES_FILE}"
|
||||
|
||||
readonly YEAR WEEK NOTES_FILE NOTES_PATH NOTES_EDITOR NOTES_DIRECTORY
|
||||
|
||||
if [ ! -d "${NOTES_DIRECTORY}" ]; then
|
||||
while true; do
|
||||
printf "%s does not exist, do you want to create it? (y/n) " "${NOTES_DIRECTORY}"
|
||||
read -r yn
|
||||
|
||||
case "${yn}" in
|
||||
[Yy]* ) mkdir -p "${NOTES_DIRECTORY}"; break;;
|
||||
[Nn]* ) exit;;
|
||||
* ) printf "Please answer y or n\n\n";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
if [ ! -f "${NOTES_PATH}" ]; then
|
||||
printf '# %s Week %s\n' "${YEAR}" "${WEEK}" > "${NOTES_PATH}"
|
||||
fi
|
||||
|
||||
if [ ${#} -eq 0 ]; then
|
||||
if [ -p "/dev/stdin" ]; then
|
||||
(cat; printf "\n") >> "${NOTES_PATH}"
|
||||
else
|
||||
eval "${NOTES_EDITOR}" "${NOTES_PATH}"
|
||||
fi
|
||||
else
|
||||
printf "%s\n" "${*}" >> "${NOTES_PATH}"
|
||||
fi
|
|
@ -5,7 +5,7 @@ preload = ~/.config/hypr/wallpapers/ai/painted-landscape/00006-2215131891.png
|
|||
preload = ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
|
||||
|
||||
wallpaper = eDP-1, ~/.config/hypr/wallpapers/ai/painted-landscape/00005-4229950720.png
|
||||
wallpaper = DP-5, ~/.config/hypr/wallpapers/ai/painted-landscape/00006-2215131891.png
|
||||
wallpaper = DP-5, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
|
||||
wallpaper = DP-3, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
|
||||
wallpaper = DP-6, ~/.config/hypr/wallpapers/ai/painted-landscape/00009-2215131894.png
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ bind = $mainMod SHIFT, RETURN, exec, wezterm
|
|||
bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh
|
||||
|
||||
bind = $mainMod SHIFT, Q, killactive,
|
||||
bind = $mainMod SHIFT, L, exec, swaylock
|
||||
bind = $mainMod SHIFT, L, exec, lock
|
||||
bind = $mainMod, f, fullscreen, 0
|
||||
bind = $mainMod SHIFT, f, togglefloating,
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
windowrulev2 = tile,class:(Vivaldi-stable)
|
||||
|
||||
# prevent flameshot from requesting fullscreen
|
||||
windowrulev2 = nofullscreenrequest,class:^(flameshot)$,title:^(flameshot)
|
||||
# windowrulev2 = nofullscreenrequest,class:^(flameshot)$,title:^(flameshot)
|
||||
|
||||
# set flameshot to floating
|
||||
windowrulev2 = float,class:^(flameshot)$,title:^(flameshot)
|
||||
# windowrulev2 = float,class:^(flameshot)$,title:^(flameshot)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ let
|
|||
(_, pkgName) = root.splitPath()
|
||||
srcFile = root / "src" / (pkgName & ".nim")
|
||||
|
||||
proc formatNimCode(pattern = r"^src/.*\.nim$") =
|
||||
proc formatNimCode(pattern = r"^[src|tests].*\.nim(s)?$") =
|
||||
let srcFiles = gorgeExCd(fmt"nimgrep --filenames -r '{pattern}' --noColor").output.split("\n")[0..^2]
|
||||
for file in srcFiles:
|
||||
# let cmd = "nph $1" % [file]
|
||||
|
@ -84,4 +84,4 @@ task lexidInc, "bump lexigraphic id":
|
|||
else:
|
||||
echo "next version is: ", newVersion,"\n"
|
||||
|
||||
|
||||
switch("path","$nim")
|
||||
|
|
|
@ -4,9 +4,9 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
nimls = {
|
||||
nim_langserver = {
|
||||
mason = false,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue