Update with a bunch of stuff

This commit is contained in:
Gabriel Arazas 2020-12-12 11:05:06 +08:00
parent 4beaeb7750
commit 24f2211e49
10 changed files with 41 additions and 11 deletions

View File

@ -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"

View File

@ -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

View File

@ -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 ""))

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -0,0 +1,4 @@
snippet func "Function"
λ(${1:$PARAM : $TYPE}) → ${2:OUTPUT} $0
endsnippet

View File

@ -30,6 +30,14 @@ do
done
endsnippet
snippet select "Select loop stuff" iw
select ${1:<VARIABLE_NAME>} in ${2:foo bar baz}
do
${3:# Your stuff here}
done
$0
endsnippet
snippet getopts "An argument parser with getopts" iw
while getopts ${1:<OPTSTRING>} ${2:arg}
do

3
nyxt/init.lisp Normal file
View File

@ -0,0 +1,3 @@
(define-configuration (buffer web-buffer)
((default-modes (append '(vi-normal-mode) %slot-default))))

View File

@ -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