diff --git a/.vtsm/nixos-zilch.json b/.vtsm/nixos-zilch.json index 01be8a6..ee635d7 100755 --- a/.vtsm/nixos-zilch.json +++ b/.vtsm/nixos-zilch.json @@ -2,6 +2,7 @@ "bin": "$HOME/.local/bin", "emacs": "$HOME/.config/doom", "nvim": "$HOME/.config/nvim", + "nyxt": "$HOME/.config/nyxt", "newsboat": "$HOME/.config/newsboat", "rofi": "$HOME/.config/rofi", "slop": "$HOME/.config/slop" diff --git a/bin/ocr b/bin/ocr index b09ebff..0ab5fe1 100755 --- a/bin/ocr +++ b/bin/ocr @@ -7,6 +7,7 @@ # * leptonica-1.79.0 # * The Tesseract English data # * Image libraries (e.g., `libgif`, `libwebp`) +# * ImageWorsener 1.3.3 # * xclip - version 0.13 # * maim - version 5.6.3 @@ -15,5 +16,5 @@ set -o pipefail notify-send "Select a region for the OCR" -maim --select --hidecursor | tesseract - stdout +maim --select --hidecursor | imagew - -outfmt png -w x5 - | tesseract - stdout diff --git a/emacs/snippets/org-mode/header b/emacs/snippets/org-mode/header index 3d8678d..a108a78 100755 --- a/emacs/snippets/org-mode/header +++ b/emacs/snippets/org-mode/header @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: Org-Mode header -# key: header +# key: header # -- `(let* ((headerlevel (cl-gcd (read-number "What is the header level?: "))) (str "")) diff --git a/emacs/snippets/python-mode/app b/emacs/snippets/python-mode/app index 7431004..8118bb7 100755 --- a/emacs/snippets/python-mode/app +++ b/emacs/snippets/python-mode/app @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: Org-Mode appendix block -# key: appendix +# key: app # -- #!/usr/bin/env python @@ -26,11 +26,11 @@ def parse_args(args): return args -${0:// INSERT ALL OF THE CODES RIGHT HERE} +${0:# INSERT ALL OF THE CODES RIGHT HERE} if __name__ == "__main__": logging.basicConfig(format="[%(levelname)s] %(module)s: %(message)s", level=logging.INFO, stream=sys.stdout) args = parse_args(sys.argv[1:]) - // Make your main logic here + # Make your main logic here diff --git a/newsboat/urls b/newsboat/urls index bfae436..2f020a5 100755 --- a/newsboat/urls +++ b/newsboat/urls @@ -12,12 +12,14 @@ https://drewdevault.com/blog/index.xml blog.personal http://distill.pub/rss.xml blog.personal https://euandre.org/feed.blog.en.atom blog.personal https://fasterthanli.me/index.xml blog.personal +https://www.gwern.net/index.rss blog.personal https://jcs.org/rss blog.personal https://lukesmith.xyz/rss.xml blog.personal https://ma.ttias.be/cronweekly/index.xml blog.personal https://magnusson.io/index.xml blog.personal https://matienzo.org/posts/index.xml blog.personal https://protesilaos.com/codelog.xml blog.personal +https://simblob.blogspot.com/feeds/posts/default blog.personal gamedev http://tonsky.me/blog/atom.xml blog.personal https://venam.nixers.net/blog/feed.xml blog.personal https://willschenk.com/feed.xml blog.personal @@ -49,6 +51,9 @@ https://linuxunplugged.com/rss https://selfhosted.show/rss https://feeds.twit.tv/sn.xml +# Peertube subscriptions +https://video.ploud.fr/feeds/videos.xml?videoChannelId=22019 "Tim Krief" peertube gamedev + # YouTube subscriptions "query:YouTube:tags # \"YouTube Subscriptions\"" https://www.youtube.com/feeds/videos.xml?channel_id=UC-3J5xNrAbTLbU1gN8mMpOA "~Nitro Rad" youtube @@ -66,16 +71,15 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC6mIxFTvXkWQVEHPsEdflzQ "~ https://www.youtube.com/feeds/videos.xml?channel_id=UC6nSFpj9HTCZ5t-N3Rm3-HA "~Vsauce" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UC7590VTWe6m0kq3gJcgLINg "~The Taylor Series" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw "~ThePrimeagen" youtube -https://www.youtube.com/feeds/videos.xml?channel_id=UC8uT9cgJorJPWu7ITLGo9Ww "~The 8-Bit Guy" youtube -https://www.youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA "~Computerphile" youtube -https://www.youtube.com/feeds/videos.xml?channel_id=UC9Z1XWw1kmnvOOFsj6Bzy2g "~Blackthornprod" youtube coding gamedev -https://www.youtube.com/feeds/videos.xml?channel_id=UC9z7EZAbkphEMg0SP7rw44A "~carykh" youtube +https://www.youtube.com/feeds/videos.xml?channel_id=UC8uT9cgJorJPWu7ITLGo9Ww "~The 8-Bit Guy" youtube computer +https://www.youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA "~Computerphile" youtube computer +https://www.youtube.com/feeds/videos.xml?channel_id=UC9Z1XWw1kmnvOOFsj6Bzy2g "~Blackthornprod" youtube gamedev +https://www.youtube.com/feeds/videos.xml?channel_id=UC9z7EZAbkphEMg0SP7rw44A "~carykh" youtube programming https://www.youtube.com/feeds/videos.xml?channel_id=UCBB7sYb14uBtk8UqSQYc9-w "~Steve Ramsey - Woodworking for Mere Mortals" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCBa659QWEk1AI4Tg--mrJ2A "~Tom Scott" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCBlqfZZYQWKyr6qLAB7LINw "~ICTP Postgraduate Diploma Programme" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCC26K7LTSrJK0BPAUyyvtQg "~Brandon James Greer" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCD6VugMZKRhSyzWEWA9W2fg "~SsethTzeentach" youtube -https://www.youtube.com/feeds/videos.xml?channel_id=UCDrekHmOnkptxq3gUU0IyfA "~Devon Crawford" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCEBb1b_L6zDS3xTUrIALZOw "~MIT OpenCourseWare" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCEOXxzW2vU0P-0THehuIIeg "~Captain Disillusion" youtube https://www.youtube.com/feeds/videos.xml?channel_id=UCEQXp_fcqwPcqrzNtWJ1w9w "~Logos By Nick" youtube graphics diff --git a/nvim/init.vim b/nvim/init.vim index 97c13d4..41a324c 100755 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -97,8 +97,9 @@ Plug 'airblade/vim-gitgutter' " Plugin for distraction-free writing. Plug 'junegunn/goyo.vim' -" A Nix plugin. +" Language plugins. Plug 'LnL7/vim-nix' +Plug 'vmchale/dhall-vim' call plug#end() diff --git a/nvim/own-snippets/dhall.snippets b/nvim/own-snippets/dhall.snippets new file mode 100644 index 0000000..c8ce06e --- /dev/null +++ b/nvim/own-snippets/dhall.snippets @@ -0,0 +1,4 @@ +snippet func "Function" +λ(${1:$PARAM : $TYPE}) → ${2:OUTPUT} $0 +endsnippet + diff --git a/nvim/own-snippets/sh.snippets b/nvim/own-snippets/sh.snippets index 78d5050..28713a7 100755 --- a/nvim/own-snippets/sh.snippets +++ b/nvim/own-snippets/sh.snippets @@ -30,6 +30,14 @@ do done endsnippet +snippet select "Select loop stuff" iw +select ${1:} in ${2:foo bar baz} +do + ${3:# Your stuff here} +done +$0 +endsnippet + snippet getopts "An argument parser with getopts" iw while getopts ${1:} ${2:arg} do diff --git a/nyxt/init.lisp b/nyxt/init.lisp new file mode 100644 index 0000000..8759488 --- /dev/null +++ b/nyxt/init.lisp @@ -0,0 +1,3 @@ +(define-configuration (buffer web-buffer) + ((default-modes (append '(vi-normal-mode) %slot-default)))) + diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index e11b9ae..91b5714 100755 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -8,6 +8,7 @@ super + shift + Return tdrop -ma -w -4 -y "$PANEL_HEIGHT" $TERMINAL # A handy-dandy calculator as a quick dropdown terminal. +super + shift + c tdrop -ma -w -4 -y "$PANEL_HEIGHT" $TERMINAL -e julia # Quick toggling for screenkey. @@ -56,6 +57,8 @@ super + shift + n shift + super + r pkill -USR1 sxhkd && notify-send "SXHKD config has successfully reloaded." +shift + super + b + ls $HOME/library/books/*.pdf | xargs -n1 basename | rofi -dmenu | sed "s/^/library\/books\//" | xargs zathura # The usual application suite shortcuts. @@ -103,6 +106,11 @@ super + z ; {z,x,c,v} super + r : {h,j,k,l} bspc node --resize {left -10 0,bottom 0 10,top 0 -10,right 10 0} +# Window rotation while keeping the layout +# Stole this from https://www.reddit.com/r/bspwm/comments/jwq6di/give_me_some_good_ideas_for_features_i_could_try/gctmst8?utm_source=share&utm_medium=web2x&context=3 +super + {r,R} + bspc node @/ --circute {forward,backward} + # grave is ` super + grave bspc desktop --focus last.occupied