aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-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
4 files changed, 173 insertions, 19 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.