Update dot_config/bspwm/executable_bspwmrc

Update dot_config/doom/config.el
Update dot_config/doom/packages.el
Update dot_config/doom/spells.el
Update dot_config/mpv/mpv.conf
Update dot_config/newsboat/urls
Update dot_config/sxhkd/sxhkdrc
Update dot_local/spells/executable_linkhandler
Update dot_local/spells/executable_setbg
Update executable_dot_xprofile
Rename dot_config/mimeapps.list to dot_config/private_mimeapps.list
This commit is contained in:
Dorian Wood 2021-07-24 09:49:59 -04:00
parent 993e6856c2
commit 4a532500ff
11 changed files with 113 additions and 32 deletions

View File

@ -5,8 +5,8 @@ pgrep -x sxhkd > /dev/null || sxhkd &
bspc monitor LVDS1 -d I II III IV V VI VII VIII IX
bspc monitor VGA1 -d X
bspc config normal_border_color #42395D
bspc config focused_border_color #C2FFDF
bspc config normal_border_color '#42395D'
bspc config focused_border_color '#F1568E'
bspc config border_width 3
bspc config window_gap 5
@ -23,14 +23,17 @@ bspc rule -a Screenkey manage=off
bspc rule -a Emacs follow=on state=tiled desktop='^1'
bspc rule -a Firefox desktop='^3'
launchpolybar
pgrep -x picom > /dev/null || picom
pgrep -x polybar > /dev/null || polybar example &
pgrep -x picom > /dev/null || picom &
# Set us and polytonic greek as layouts, double shift switches
setxkbmap -model pc105 -layout us,gr -variant ,polytonic -option grp:shifts_toggle
# Run picom in greyscale mode
# picom -b --backend glx --glx-fshader-win "uniform sampler2D tex; uniform float opacity; void main() { vec4 c = texture2D(tex, gl_TexCoord[0].xy); float y = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722)); gl_FragColor = opacity*vec4(y, y, y, c.a); }"
# unclutter hides the cursor after a period of inactivity
pgrep -x unclutter > /dev/null || unclutter --timeout 10 -b
# pgrep -x unclutter > /dev/null || unclutter --timeout 10 -b
# Startup Apps I want
pgrep -x emacs > /dev/null || emacs
pgrep -x firefox > /dev/null || firefox
# pgrep -x emacs > /dev/null || emacs
# pgrep -x firefox > /dev/null || firefox

View File

@ -60,9 +60,12 @@
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;;
;; Load my personal functions for stuff.
(load! "spells.el")
;; Set the default browser to emacs-w3m
(setq browse-url-browser-function `w3m-browse-url)
;; (setq browse-url-browser-function `browse-url-xdg-open)
;; (setq browse-url-browser-function `w3m-browse-url)
(setq browse-url-browser-function `browse-url-xdg-open)
(autoload `w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
;; Turn off line highlighting.
;; (global-hl-line-mode -1)
@ -74,18 +77,6 @@
;; Use xclip.el to synce emacs kill buffer with x system clipboard
(xclip-mode 1)
(defun date ()
(interactive)
(insert (format-time-string "%Y-%m-%d")))
(defun time ()
(interactive)
(insert (concat "Entry Time: " (format-time-string "%H:%M:%S"))))
(defun open-diary ()
(interactive)
(find-file(concat "~/wrt/diary/" (format-time-string "%Y-%m-%d") ".md")))
;; Initialize elfeed-org
;; This hooks up elfeed-org to read the configuration when elfeed
;; is started with =M-x elfeed=
@ -100,13 +91,14 @@
(elfeed-db-load)
(elfeed)
(elfeed-search-update--force))
;;write to disk when quiting
(defun bjm/elfeed-save-db-and-bury ()
"Wrapper to save the elfeed db to disk before burying buffer"
(interactive)
(elfeed-db-save)
(quit-window))
;; Adding new shortcuts to evil leader keys
(map! :leader
;; Set up leader keys for use with elfeed
(:prefix-map ("e" . "elfeed")
@ -121,10 +113,37 @@
(:prefix-map ("d" . "diary")
:desc "Open Today's diary" "o" #'open-diary
:desc "Entry Time line" "t" #'time
:desc "Date" "d" #'date))
:desc "Date" "d" #'date
:desc "Sleep Journal" "s" #'sleep-journal))
;; Apparently pdf-tools needs to be compiled every time we start emacs
(pdf-tools-install)
;; Add hook to load org-superstar everytime we enter org-mode (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1)))
;; Load some ox-extra stuff for exporting org files to pdf
(after! org
(use-package! ox-extra
:config
(ox-extras-activate '(latex-header-blocks ignore-headlines))))
;; (after! org
;; (use-package! ox-latex
;; ::config
;; ;; code here will run after the package is loaded
;; (setq org-latex-pdf-process
;; '("pdflatex -interaction nonstopmode -output-directory %o %f"
;; "bibtex %b"
;; "pdflatex -interaction nonstopmode -output-directory %o %f"
;; "pdflatex -interaction nonstopmode -output-directory %o %f"))
;; (setq org-latex-with-hyperref nil) ;; stop org adding hypersetup{author..} to latex export
;; (setq org-latex-prefer-user-labels t)
;; ;; deleted unwanted file extensions after latexMK
;; (setq org-latex-logfiles-extensions
;; (quote ("lof" "lot" "tex~" "aux" "idx" "log" "out"
;; "toc" "nav" "snm" "vrb" "dvi" "fdb_latexmk"
;; "blg" "brf" "fls" "entoc" "ps" "spl" "bbl" "xmpi"
;; "run.xml" "bcf" "acn" "acr" "alg" "glg" "gls" "ist")))
;; (unless (boundp 'org-latex-classes)
;; (setq org-latex-classes nil))))
;; Set up SLIME for fscking around with LISP
(load (expand-file-name "~/.quicklisp/slime-helper.el"))

View File

@ -17,6 +17,11 @@
(package! url)
;; pdf-tools is a DocView replacement. It relies on a daemon to render the pdfs via poppler
(package! pdf-tools)
;; prettify org-mode bullets with Unicode
(package! org-superstar)
;; package for org export to pdf
;; (package! ox-extra)
;; (package! ox-latex)
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)

View File

@ -5,3 +5,40 @@
(with-temp-buffer
(insert-file-contents filePath)
(split-string (buffer-string) "\n" t)))
;; Functions for my diary system
(defun today ()
"Returns today's date in YYYY-MM-DD format"
(interactive)
(format-time-string "%Y-%m-%d"))
(defun time ()
"Insert a line with the current time"
(interactive)
(insert (concat "Entry Time: " (format-time-string "%H:%M:%S") "\n")))
(defun open-diary ()
"Open the diary file for today's date."
(interactive)
(find-file (concat "~/wrt/diary/" (today) ".md"))
(unless (file-exists-p (concat "~/wrt/diary/" (today) ".md"))
(insert (today)))
(end-of-buffer))
(defun response-gatherer (prompt)
"Read prompts from file 'prompt' and present them to the user in the minibuffer"
(interactive)
(open-diary)
(evil-insert-newline-below)
(insert (concat "## " prompt "\n"))
(time)
(mapcar
(lambda (x) (insert
(message (concat x " %s\n") (read-string (concat x " ")))))
(read-lines
(concat "~/wrt/journal/selfMonitoringPrompts/" prompt))))
(defun sleep-journal ()
"Fill out sleep journal in today's diary entry"
(interactive)
(response-gatherer "sleepJournal"))

View File

@ -1,5 +1,5 @@
# Forcing a video codec for performance
# vo=xv
vo=xv
# Display English subtitles if available
slang=en

View File

@ -45,9 +45,9 @@ http://blackautonomy.libsyn.com/rss "~Black Autonomy" pol podcast
https://fossandcrafts.org/rss-feed-ogg.rss "~Foss and Crafts" foss podcast
https://anchor.fm/s/4d70d828/podcast/rss "~Open Minds from Creative Commons" copyleft
--LetsPlay/ASMR--
https://invidious.snopyta.org/feed/channel/UC_ViSsVg_3JUDyLS3E2Un5g "~Direwolf20" video letsplay
https://invidious.snopyta.org/feed/channel/UC1BZnq-fX0Ea4ka4d8cnc0w "~Brothgar" video letsplay
https://invidious.snopyta.org/feed/channel/UCajFRCqhRqEUyXhGZbwcdUA "~Penguin Story Time" video
https://yewtu.be/feed/channel/UC_ViSsVg_3JUDyLS3E2Un5g "~Direwolf20" video letsplay
https://yewtu.be/feed/channel/UC1BZnq-fX0Ea4ka4d8cnc0w "~Brothgar" video letsplay
https://yewtu.be/feed/channel/UCajFRCqhRqEUyXhGZbwcdUA "~Penguin Story Time" video
https://invidious.snopyta.org/feed/channel/UChFur_NwVSbUozOcF_F2kMg "~Mumbo Jumbo" video letsplay
https://invidious.snopyta.org/feed/channel/UCWCw2Sd7RlYJ2yuNVHDWNOA "~Jim Sterling" video
https://invidious.snopyta.org/feed/channel/UCbQmuMus_TWeSgLW-p8xa0Q "~Generico" video

View File

@ -18,6 +18,7 @@ audio/flac=mpv.desktop
audio/x-wav=mpv.desktop
image/jpeg=feh.desktop
image/png=feh.desktop
audio/mpegapplication/octet-stream=mpv.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
@ -36,5 +37,6 @@ text/markdown=userapp-emacsclient-1XKF10.desktop;
audio/flac=mpv.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-GFW800.desktop;
message/rfc822=userapp-Thunderbird-GFW800.desktop;
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop;
application/pdf=firefox.desktop;org.pwmt.zathura-pdf-mupdf.desktop;
application/octet-stream=mpv.desktop;
application/zip=thunar.desktop;

View File

@ -20,6 +20,19 @@ XF86Audio{Raise,Lower}Volume
XF86AudioMute
pamixer -t
# Lock the computer
# super + l
# dm-tool lock
# Menu for recording computer
super + Insert
dmenurecord
# Kill recordings and save file
super + shift + Insert
dmenurecord kill
#
# bspwm hotkeys
#

View File

@ -10,14 +10,15 @@
[ -z "$1" ] && { "$BROWSER"; exit; }
case "$1" in
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*invidio.us*|*invidious.snopyta.org*|*invidiou.site*)
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*invidio.us*|*invidious.snopyta.org*|*invidiou.site*|*yewtu.be*)
setsid -f mpv --ytdl --ytdl-format="bestvideo[height<=720]+bestaudio" -quiet "$1" >/dev/null 2>&1 ;;
*png|*jpg|*jpe|*jpeg|*gif)
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;;
*mp3|*flac|*opus|*mp3?source*)
setsid -f tsp curl -LO "$1" >/dev/null 2>&1 ;;
magnet:*|*.torrent)
transadd.sh "$1";;
tsp transmission-remote -a "$1";
tsp -d $id notify-send "Torrent added";;
https://drive.google.com*)
id=$(tsp wget --no-check-certificate -r "https://docs.google.com/uc?export=download&id=$( $1 | sed 's/.*=//')" -O gurglefile);
tsp -D $id notify-send "👍 $id done" ;;

View File

@ -17,4 +17,4 @@ bgloc="${XDG_DATA_HOME:-$HOME/.local/share/}/bg"
# wal -i "$(readlink -f "$bgloc")" -o "${XDG_CONFIG_HOME:-$HOME/.config}/wal/postrun" >/dev/null 2>&1
pidof dwm >/dev/null && xdotool key super+F12
xwallpaper --stretch "$bgloc"
xwallpaper --center "$bgloc"

View File

@ -10,9 +10,10 @@
# mpd & # music player daemon-you might prefer it as a service though
remaps & # run the remaps script, switching caps/esc and more; check it for more info
setbg & # set the background with the `setbg` script
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources & # Uncomment to use Xresources colors/settings on startup
# xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources & # Uncomment to use Xresources colors/settings on startup
dunst & # dunst for notifications
xset r rate 300 50 & # Speed xrate up
unclutter & # Remove mouse when idle
# Set polytonic greek keyboard layout, switch with both shifts.
setxkbmap -model pc105 -layout us,gr -variant ,polytonic -option grp:shifts_toggle