aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/main.yml97
-rwxr-xr-x.config/herbstluftwm/autostart37
-rw-r--r--.config/init/gen/alacritty.sh56
-rw-r--r--.config/ranger/rc.conf2
-rw-r--r--.zkbd/rxvt-256color-:026
-rw-r--r--.zprofile7
-rw-r--r--.zshrc6
-rw-r--r--README.md6
8 files changed, 187 insertions, 50 deletions
diff --git a/.config/alacritty/main.yml b/.config/alacritty/main.yml
new file mode 100644
index 0000000..ebd7dff
--- /dev/null
+++ b/.config/alacritty/main.yml
@@ -0,0 +1,97 @@
+env:
+ TERM: alacritty
+
+window:
+ dimensions:
+ columns: 0
+ lines: 0
+ padding:
+ x: 0
+ y: 0
+ dynamic_padding: true
+ decorations: none
+ startup_mode: Windowed
+ title: alacritty
+ dynamic_title: true
+ class:
+ instance: alacritty
+ general: alacritty
+
+scrolling:
+ history: 16384
+
+hints:
+ alphabet: "fjdksl"
+ enabled:
+ - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
+ [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
+ action: Copy
+ post_processing: true
+ mouse:
+ enabled: true
+ mods: None
+ binding:
+ key: U
+ mods: Alt
+
+cursor:
+ style:
+ shape: Block
+ blinking: On
+ blink_interval: 500
+ unfocused_hollow: true
+
+draw_bold_text_with_bright_colors: true
+
+key_bindings:
+ - { key: L, mods: Control, action: ClearLogNotice }
+ - { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
+
+ - { key: Escape, mods: Alt, mode: ~Search, action: ToggleViMode }
+ - { key: Escape, mode: Vi|~Search, action: ToggleViMode }
+ - { key: G, mode: Vi|~Search, action: ScrollToTop }
+ - { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
+ - { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
+ - { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
+ - { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
+ - { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
+ - { key: Y, mode: Vi|~Search, action: Copy }
+ - { key: Y, mode: Vi|~Search, action: ClearSelection }
+ - { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
+ - { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
+ - { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
+ - { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
+ - { key: K, mode: Vi|~Search, action: Up }
+ - { key: J, mode: Vi|~Search, action: Down }
+ - { key: H, mode: Vi|~Search, action: Left }
+ - { key: L, mode: Vi|~Search, action: Right }
+ - { key: Key0, mode: Vi|~Search, action: First }
+ - { key: 5, mods: Shift, mode: Vi|~Search, action: Last }
+ - { key: 7, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
+ - { key: H, mods: Shift, mode: Vi|~Search, action: High }
+ - { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
+ - { key: L, mods: Shift, mode: Vi|~Search, action: Low }
+ - { key: B, mode: Vi|~Search, action: SemanticLeft }
+ - { key: W, mode: Vi|~Search, action: SemanticRight }
+ - { key: E, mode: Vi|~Search, action: SemanticRightEnd }
+ - { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
+ - { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
+ - { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
+ - { key: 6, mods: Shift, mode: Vi|~Search, action: Bracket }
+ - { key: Slash, mode: Vi|~Search, action: SearchForward }
+ - { key: N, mode: Vi|~Search, action: SearchNext }
+ - { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
+
+ - { key: Return, mode: Search|Vi, action: SearchConfirm }
+ - { key: Escape, mode: Search, action: SearchCancel }
+ - { key: C, mods: Control, mode: Search, action: SearchCancel }
+ - { key: U, mods: Control, mode: Search, action: SearchClear }
+ - { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
+ - { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
+ - { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
+ - { key: Up, mode: Search, action: SearchHistoryPrevious }
+ - { key: Down, mode: Search, action: SearchHistoryNext }
+
+ - { key: V, mods: Alt, mode: ~Vi, action: Paste }
+ - { key: Slash, mods: Alt, mode: ~Search, action: SearchForward }
+ - { key: Slash, mods: Alt|Shift, mode: ~Search, action: SearchBackward }
diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart
index 8068885..ef87da2 100755
--- a/.config/herbstluftwm/autostart
+++ b/.config/herbstluftwm/autostart
@@ -127,20 +127,21 @@ hc keybind Mod4-Print spawn ~/.config/herbstluftwm/maim.sh -m send
hc keybind Mod4-Shift-Print spawn ~/.config/herbstluftwm/maim.sh -s -m send
# ranger
-hc keybind Mod4-Shift-Control-Return spawn urxvt -name "ranger" -e ranger ~
-hc keybind Mod4-Shift-Control-b spawn urxvt -name "ranger" -e ranger ~/documents/books
-hc keybind Mod4-Shift-Control-c spawn urxvt -name "ranger" -e ranger ~/documents/comics
-hc keybind Mod4-Shift-Control-d spawn urxvt -name "ranger" -e ranger ~/downloads
-hc keybind Mod4-Shift-Control-g spawn urxvt -name "ranger" -e ranger ~/games
-hc keybind Mod4-Shift-Control-i spawn urxvt -name "ranger" -e ranger ~/images
-hc keybind Mod4-Shift-Control-m spawn urxvt -name "ranger" -e ranger ~/music
-hc keybind Mod4-Shift-Control-n spawn urxvt -name "ranger" -e ranger ~/documents/manga
-hc keybind Mod4-Shift-Control-p spawn urxvt -name "ranger" -e ranger ~/projects
-hc keybind Mod4-Shift-Control-s spawn urxvt -name "ranger" -e ranger ~/desktop
-hc keybind Mod4-Shift-Control-r spawn urxvt -name "ranger" -e ranger ~/romz
-hc keybind Mod4-Shift-Control-t spawn urxvt -name "ranger" -e ranger ~/thcool
-hc keybind Mod4-Shift-Control-v spawn urxvt -name "ranger" -e ranger ~/videos
-hc keybind Mod4-Shift-Control-w spawn urxvt -name "ranger" -e ranger ~/documents/writing
+hc keybind Mod4-Shift-Control-Return spawn alacritty -e ranger ~
+hc keybind Mod4-Shift-Control-a spawn alacritty -e ranger ~/audio
+hc keybind Mod4-Shift-Control-b spawn alacritty -e ranger ~/documents/books
+hc keybind Mod4-Shift-Control-c spawn alacritty -e ranger ~/documents/comics
+hc keybind Mod4-Shift-Control-d spawn alacritty -e ranger ~/downloads
+hc keybind Mod4-Shift-Control-g spawn alacritty -e ranger ~/games
+hc keybind Mod4-Shift-Control-i spawn alacritty -e ranger ~/images
+hc keybind Mod4-Shift-Control-m spawn alacritty -e ranger ~/music
+hc keybind Mod4-Shift-Control-n spawn alacritty -e ranger ~/documents/manga
+hc keybind Mod4-Shift-Control-p spawn alacritty -e ranger ~/projects
+hc keybind Mod4-Shift-Control-s spawn alacritty -e ranger ~/desktop
+hc keybind Mod4-Shift-Control-r spawn alacritty -e ranger ~/work
+hc keybind Mod4-Shift-Control-t spawn alacritty -e ranger ~/thcool
+hc keybind Mod4-Shift-Control-v spawn alacritty -e ranger ~/videos
+hc keybind Mod4-Shift-Control-w spawn alacritty -e ranger ~/documents/writing
# grab colour to clipboard
hc keybind Mod4-c spawn ~/.config/herbstluftwm/colourgrab.sh
@@ -149,18 +150,18 @@ hc keybind Mod4-c spawn ~/.config/herbstluftwm/colourgrab.sh
hc keybind Mod4-w spawn xdotool click 1
# spawn
-hc keybind Mod4-Return spawn urxvt
+hc keybind Mod4-Return spawn alacritty
hc keybind Mod4-Shift-f spawn firejail --netfilter=/etc/firejail/nolocal.net firefox
hc keybind Mod4-Shift-g spawn gwaei
hc keybind Mod4-Shift-i spawn gimp
hc keybind Mod4-Shift-m spawn ~/.config/herbstluftwm/mozc_tool --mode=hand_writing
-hc keybind Mod4-Shift-n spawn urxvt -name "notes" -e $EDITOR ~/notes
+hc keybind Mod4-Shift-n spawn alacritty -t "notes" -e $EDITOR ~/notes
hc keybind Mod4-Shift-o spawn ~/yolo/tor/start-tor-browser
hc keybind Mod4-Shift-p spawn inkscape
hc keybind Mod4-Shift-r spawn krita
hc keybind Mod4-Shift-t spawn transmission-gtk
-hc keybind Mod4-Shift-v spawn urxvt -name $EDITOR -e $EDITOR
-hc keybind Mod4-Shift-w spawn urxvt -name "weechat" -e weechat
+hc keybind Mod4-Shift-v spawn alacritty -e $EDITOR
+hc keybind Mod4-Shift-w spawn alacritty -t "weechat" -e weechat
hc keybind Mod4-Shift-z spawn zhudi
# dmenu
diff --git a/.config/init/gen/alacritty.sh b/.config/init/gen/alacritty.sh
new file mode 100644
index 0000000..91fa126
--- /dev/null
+++ b/.config/init/gen/alacritty.sh
@@ -0,0 +1,56 @@
+echo "\
+import:
+ - $HOME/.config/alacritty/main.yml
+
+font:
+ normal:
+ family: $mfont
+ style: Regular
+ size: $mfont_size
+
+colors:
+ primary:
+ background: '$bg_normal'
+ foreground: '$fg_normal'
+ bright_foreground: '$fg_focus'
+
+ search:
+ matches:
+ foreground: '$fg_focus'
+ background: '$bg_focus'
+ focused_match:
+ foreground: '$fg_urgent'
+ background: '$bg_urgent'
+
+ bar:
+ foreground: '$fg_normal'
+ background: '$bg_normal'
+
+ hints:
+ start:
+ foreground: '$fg_urgent'
+ background: '$bg_urgent'
+ end:
+ foreground: '$fg_focus'
+ background: '$bg_focus'
+
+ normal:
+ black: '$std_black'
+ red: '$std_red'
+ green: '$std_green'
+ yellow: '$std_yellow'
+ blue: '$std_blue'
+ magenta: '$std_magenta'
+ cyan: '$std_cyan'
+ white: '$std_white'
+
+ bright:
+ black: '$light_black'
+ red: '$light_red'
+ green: '$light_green'
+ yellow: '$light_yellow'
+ blue: '$light_blue'
+ magenta: '$light_magenta'
+ cyan: '$light_cyan'
+ white: '$light_white'
+" > $tmpdir/alacritty.yml
diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf
index 9eb0573..0e38c78 100644
--- a/.config/ranger/rc.conf
+++ b/.config/ranger/rc.conf
@@ -185,7 +185,7 @@ set display_tags_in_all_columns true
set update_title true
# Set the tmux/screen window-name to "ranger"?
-set update_tmux_title false
+set update_tmux_title true
# Shorten the title if it gets long? The number defines how many
# directories are displayed at once, 0 turns off this feature.
diff --git a/.zkbd/rxvt-256color-:0 b/.zkbd/rxvt-256color-:0
deleted file mode 100644
index fca5d12..0000000
--- a/.zkbd/rxvt-256color-:0
+++ /dev/null
@@ -1,26 +0,0 @@
-typeset -g -A key
-
-key[F1]='^[[11~'
-key[F2]='^[[12~'
-key[F3]='^[[13~'
-key[F4]='^[[14~'
-key[F5]='^[[15~'
-key[F6]='^[[17~'
-key[F7]='^[[18~'
-key[F8]='^[[19~'
-key[F9]='^[[20~'
-key[F10]='^[[21~'
-key[F11]='^[[23~'
-key[F12]='^[[24~'
-key[Backspace]='^?'
-key[Insert]='^[[2~'
-key[Home]='^[[7~'
-key[PageUp]='^[[5~'
-key[Delete]='^[[3~'
-key[End]='^[[8~'
-key[PageDown]='^[[6~'
-key[Up]='^[[A'
-key[Left]='^[[D'
-key[Down]='^[[B'
-key[Right]='^[[C'
-key[Menu]=''''
diff --git a/.zprofile b/.zprofile
index 6d773d1..e87d559 100644
--- a/.zprofile
+++ b/.zprofile
@@ -7,6 +7,13 @@ export QT_STYLE_OVERRIDE=gtk
# bad hack to make video card fans shut up
[[ ! -z $(whence optirun) ]] && optirun --no-xorg true
+################# SET TERMCMD #################
+if [[ ! -z $(whence alacritty) ]] then
+ export TERMCMD=alacritty
+elif [[ ! -z $(whence urxvt) ]] then
+ export TERMCMD=urxvt
+fi
+
################## SET EDITOR #################
if [[ ! -z $(whence nvim) ]] then
export EDITOR=nvim
diff --git a/.zshrc b/.zshrc
index 5f31308..db17642 100644
--- a/.zshrc
+++ b/.zshrc
@@ -20,7 +20,7 @@ bindkey -e
setopt notify
unsetopt beep
-if [[ "$TERM" == "rxvt-unicode-256color" ]]; then
+if [[ $TERM == "rxvt-unicode-256color" || $TERM == "alacritty" ]]; then
if [[ -f "$HOME/.config/init/vars" ]]; then
source "$HOME/.config/init/vars"
else
@@ -32,7 +32,7 @@ fi
##################### MISC ####################
# dynamic title
-if [[ "$TERM" == "rxvt-unicode-256color" ]]; then
+if [[ $TERM == "rxvt-unicode-256color" || $TERM == "alacritty" ]]; then
precmd() {
print -Pn "\e]0;zsh:%(1j,%j job%(2j|s|); ,)%~\a"
@@ -99,6 +99,8 @@ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]="fg=red"
################# KEYBINDINGS #################
typeset -g -A key
+[[ -f ~/.zkbd/$TERM ]] && source ~/.zkbd/$TERM
+
[[ $key[F1] ]] || key[F1]='^[[11~'
[[ $key[F2] ]] || key[F2]='^[[12~'
[[ $key[F3] ]] || key[F3]='^[[13~'
diff --git a/README.md b/README.md
index af08f51..5a1b80b 100644
--- a/README.md
+++ b/README.md
@@ -45,10 +45,10 @@ editor and a terminal on one side and all your documentation on the other). i3
can do much the same thing, but it comes with lots of slightly annoying things
to get rid of.
-### [urxvt](http://software.schmorp.de/pkg/rxvt-unicode.html)
+### [alacritty](https://github.com/alacritty/alacritty)
-has some quirks, but still nothing else out there with the same functionality.
-check out [urxvt-perls](https://github.com/muennich/urxvt-perls).
+urxvt-perls suddenly stopped working, so switched to alacritty. few keybinding
+issues to get around, and font rendering isn't great, but it works
### [ranger](https://ranger.github.io/)/[sxiv](https://github.com/muennich/sxiv)