Skip to content

Instantly share code, notes, and snippets.

@LukeSmithxyz
LukeSmithxyz / i3config
Created Sep 23, 2019
Final i3 configuration
View i3config
# vim: filetype=i3
# File originally by Luke Smith <https://lukesmith.xyz>
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
#
# export FILE="ranger"
# export TERMINAL="st"
# #---Basic Definitions---# #
View zshrc
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@LukeSmithxyz
LukeSmithxyz / colors.muttrc
Created Apr 17, 2019
Mutt example colors
View colors.muttrc
# vim: filetype=neomuttrc
# Default index colors:
color index yellow default '.*'
color index_author red default '.*'
color index_number blue default
color index_subject cyan default '.*'
# For new mail:
color index brightyellow black "~N"
color index_author brightred black "~N"
View bibtorefer.sh
#!/bin/sh
sed "
s/title\s*=\s*{\(.*\)},*/%T \1/I
s/author\s*=\s*{\(.*\)},*/%A \1/I
s/publisher\s*=\s*{\(.*\)},*/%I \1/I
s/doi\s*=\s*{\(.*\)},*/%K \1/I
s/journal\s*=\s*{\(.*\)},*/%J \1/I
s/volume\s*=\s*{\(.*\)},*/%V \1/I
s/number\s*=\s*{\(.*\)},*/%N \1/I
s/pages\s*=\s*{\(.*\)},*/%P \1/I
@LukeSmithxyz
LukeSmithxyz / deusex_arch_linux.md
Created May 21, 2018
Installing and Running Deus Ex on Arch Linux
View deusex_arch_linux.md

Installing Deus Ex on Arch Linux

These directions are partial modeled from this video by Ironclaw, so props to him.

Wine must be installed. Run winecfg, and in the Graphics tab, pick the Emulate a virtual desktop option with a resolution smaller than your screen for now.

pacman -S wine
winecfg
@LukeSmithxyz
LukeSmithxyz / urlview.md
Last active Dec 13, 2020
Following Terminal Links with URLview
View urlview.md

Following Terminal Links with URLview

Link handling

Specify what you want urlview to open your links with in ~/.urlview after COMMAND. I.e. the line below will make urlview open all urls in Firefox.

COMMAND firefox