wezterm+urxvt

This commit is contained in:
Henrik Bakken
2023-12-28 00:17:11 +01:00
parent 3750ada97c
commit afff11f002
4 changed files with 191 additions and 75 deletions
+50 -66
View File
@@ -6,67 +6,34 @@ Xft.autohint: false
Xft.hintstyle: hintslight Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault Xft.lcdfilter: lcddefault
XTerm*background: #222D31 *.font: xft:DejaVu Sans Mono for Powerline:size=14,xft:Terminess Nerd Font Mono
XTerm*foreground: #d8d8d8 *.boldFont: xft:DejaVu Sans Mono for Powerline:bold:size=14,xft:Terminess Nerd Font Mono
XTerm*pointerColor: #1ABB9B *.italicFont: xft:DejaVu Sans Mono for Powerline:italic:size=14,xft:Terminess Nerd Font Mono
XTerm*faceName: Fixed *.boldItalicFont: xft:DejaVu Sans Mono for Powerline:bold:italic:size=14,xft:Terminess Nerd Font Mono
XTerm*faceSize: 11 URxvt.font: xft:DejaVu Sans Mono for Powerline:size=14,xft:Terminess Nerd Font Mono
XTerm*reverseVideo: on URxvt.boldFont: xft:DejaVu Sans Mono for Powerline:bold:size=14,xft:Terminess Nerd Font Mono
XTerm*selectToClipboard: true URxvt.italicFont: xft:DejaVu Sans Mono for Powerline:italic:size=14,xft:Terminess Nerd Font Mono
URxvt.boldItalicFont: xft:DejaVu Sans Mono for Powerline:bold:italic:size=14,xft:Terminess Nerd Font Mono
*background: #222D31 *.foreground: #93a1a1
*foreground: #d8d8d8 *.background: #141c21
*fading: 8 *.cursorColor: #afbfbf
*fadeColor: black *.color0: #263640
*cursorColor: #1ABB9B *.color8: #4a697d
*pointerColorBackground: #2B2C2B *.color1: #d12f2c
*pointerColorForeground: #16A085 *.color9: #fa3935
*.color2: #819400
!! black dark/light *.color10: #a4bd00
*color0: #222D31 *.color3: #b08500
*color8: #585858 *.color11: #d9a400
*.color4: #2587cc
!! red dark/light *.color12: #2ca2f5
*color1: #ab4642 *.color5: #696ebf
*color9: #ab4642 *.color13: #8086e8
*.color6: #289c93
!! green dark/light *.color14: #33c5ba
*color2: #7E807E *.color7: #bfbaac
*color10: #8D8F8D *.color15: #fdf6e3
!! yellow dark/light
*color3: #f7ca88
*color11: #f7ca88
!! blue dark/light
*color4: #7cafc2
*color12: #7cafc2
!! magenta dark/light
*color5: #ba8baf
*color13: #ba8baf
!! cyan dark/light
*color6: #1ABB9B
*color14: #1ABB9B
!! white dark/light
*color7: #d8d8d8
*color15: #f8f8f8
Xcursor.theme: xcursor-breeze
Xcursor.size: 0
URxvt.font: xft:Hack
URxvt.depth: 32
URxvt.background: [100]#222D31
URxvt*scrollBar: false
URxvt*mouseWheelScrollPage: false
URxvt*cursorBlink: true
URxvt*background: black
URxvt*foreground: grey
URxvt*saveLines: 5000
! Normal copy-paste keybindings without perls ! Normal copy-paste keybindings without perls
URxvt.iso14755: false URxvt.iso14755: false
@@ -74,10 +41,27 @@ URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
! Xterm escape codes, word by word movement ! Xterm escape codes, word by word movement
URxvt.keysym.Control-Left: \033[1;5D URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Shift-Control-Left: \033[1;6D
URxvt.keysym.Control-Right: \033[1;5C URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Shift-Control-Right: \033[1;6C ! change fonts
URxvt.keysym.Control-Up: \033[1;5A URxvt.keysym.Control-minus: resize-font:smaller
URxvt.keysym.Shift-Control-Up: \033[1;6A URxvt.keysym.Control-plus: resize-font:bigger
URxvt.keysym.Control-Down: \033[1;5B URxvt.keysym.Control-equal: resize-font:reset
URxvt.keysym.Shift-Control-Down: \033[1;6B URxvt.keysym.Control-question: resize-font:show
! scrolling
URxvt*scrollTtyOutput: false
URxvt*scrollColor: #777777
URxvt*scrollstyle: plain
URxvt*scrollTtyKeypress: true
URxvt*scrollWithBuffer: false
URxvt.scrollBar: true
URxvt.scrollBar_right: true
URxvt.mouseWheelScrollPage: true
! scrll with ctrl+shift+up/down
URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
URxvt.keysym.Shift-Home: command:\033]720;10\007
URxvt.keysym.Shift-End: command:\033]721;10\007
! other
URxvt.copyCommand: xclip -i -selection clipboard
URxvt*cursorBlink: true
URxvt.saveLines: 10000
+6 -5
View File
@@ -84,17 +84,18 @@ set $rofiopts -show-icons -matching fuzzy -lines 10 -eh 2 -width 30
bindsym $mod+d exec rofi -show drun $rofiopts bindsym $mod+d exec rofi -show drun $rofiopts
bindsym $mod+Shift+d exec rofi -show run $rofiopts bindsym $mod+Shift+d exec rofi -show run $rofiopts
bindsym $mod+Return exec kitty bindsym $mod+Return exec wezterm
bindsym $mod+Shift+Return exec urxvt
bindsym $mod+Shift+s --release exec --no-startup-id cd $(xdg-user-dir PICTURES) && scrot --freeze --select --exec 'xclip -selection clipboard -t image/png -i $f' bindsym $mod+Shift+s --release exec --no-startup-id cd $(xdg-user-dir PICTURES) && scrot --freeze --select --exec 'xclip -selection clipboard -t image/png -i $f'
bindsym $mod+Shift+x --release exec --no-startup-id xkill bindsym $mod+Shift+x --release exec --no-startup-id xkill
bindsym $mod+F1 exec kitty -e 'htop' bindsym $mod+F1 exec urxvt -e htop
bindsym $mod+F2 exec qutebrowser bindsym $mod+F2 exec qutebrowser
bindsym $mod+F3 exec pcmanfm bindsym $mod+F3 exec pcmanfm
bindsym $mod+F4 exec kitty -e 'ranger' bindsym $mod+F4 exec urxvt -e ranger
bindsym $mod+F5 exec pavucontrol bindsym $mod+F5 exec pavucontrol
bindsym $mod+F6 exec kitty -e 'mocp' bindsym $mod+F6 exec urxvt -e cmus
bindsym $mod+F7 exec kitty -e 'ncspot' bindsym $mod+F7 exec urxvt -e ncspot
bindsym $mod+F9 exec --no-startup-id picom -b bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
+1 -1
View File
@@ -16,7 +16,7 @@ yay -S python-pip pyenv ipython
yay -S manjaro-pipewire pavucontrol yay -S manjaro-pipewire pavucontrol
# terminal and shell # terminal and shell
yay -S kitty fish yay -S wezterm fish urxvt-resize-font
chsh -s /usr/bin/fish chsh -s /usr/bin/fish
# code # code
+131
View File
@@ -0,0 +1,131 @@
-- Pull in the wezterm API
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local act = wezterm.action
config.color_scheme = 'Monokai (dark) (terminal.sexy)'
config.font_size = 14
-- config.font = wezterm.font("Noto Sans Mono")
config.font = wezterm.font_with_fallback({
"Noto Sans Mono",
"Terminess Nerd Font",
"Noto Color Emoji",
})
config.warn_about_missing_glyphs = false
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.default_cursor_style = "BlinkingBar"
config.disable_default_key_bindings = true
config.keys = {
-- font size
{ key = "+", mods = "CTRL", action = act.IncreaseFontSize },
{ key = "-", mods = "CTRL", action = act.DecreaseFontSize },
{ key = "=", mods = "SHIFT|CTRL", action = act.ResetFontSize },
-- search
{ key = "F", mods = "SHIFT|CTRL", action = act.Search("CurrentSelectionOrEmptyString") },
-- scroll
{ key = "PageUp", mods = "SHIFT|CTRL", action = act.ScrollByPage(-1) },
{ key = "PageDown", mods = "SHIFT|CTRL", action = act.ScrollByPage(1) },
-- copy
{ key = "X", mods = "SHIFT|CTRL", action = act.ActivateCopyMode },
{ key = "C", mods = "SHIFT|CTRL", action = act.CopyTo("ClipboardAndPrimarySelection") },
-- paste
{ key = "Insert", mods = "SHIFT|CTRL", action = act.PasteFrom("PrimarySelection") },
{ key = "V", mods = "SHIFT|CTRL", action = act.PasteFrom("Clipboard") },
-- div
{ key = "L", mods = "SHIFT|CTRL", action = act.ShowDebugOverlay },
{ key = "N", mods = "SHIFT|CTRL", action = act.SpawnWindow },
{ key = "P", mods = "SHIFT|CTRL", action = act.ActivateCommandPalette },
{ key = "R", mods = "SHIFT|CTRL", action = act.ReloadConfiguration },
{ key = "phys:Space", mods = "SHIFT|CTRL", action = act.QuickSelect },
{
key = "U",
mods = "SHIFT|CTRL",
action = act.CharSelect({ copy_on_select = true, copy_to = "ClipboardAndPrimarySelection" }),
},
}
config.key_tables = {
copy_mode = {
{ key = "Tab", mods = "NONE", action = act.CopyMode("MoveForwardWord") },
{ key = "Tab", mods = "SHIFT", action = act.CopyMode("MoveBackwardWord") },
{ key = "Enter", mods = "NONE", action = act.CopyMode("MoveToStartOfNextLine") },
{ key = "Escape", mods = "NONE", action = act.CopyMode("Close") },
{ key = "Space", mods = "NONE", action = act.CopyMode({ SetSelectionMode = "Cell" }) },
{ key = "$", mods = "NONE", action = act.CopyMode("MoveToEndOfLineContent") },
{ key = "$", mods = "SHIFT", action = act.CopyMode("MoveToEndOfLineContent") },
{ key = ",", mods = "NONE", action = act.CopyMode("JumpReverse") },
{ key = "0", mods = "NONE", action = act.CopyMode("MoveToStartOfLine") },
{ key = ";", mods = "NONE", action = act.CopyMode("JumpAgain") },
{ key = "F", mods = "NONE", action = act.CopyMode({ JumpBackward = { prev_char = false } }) },
{ key = "F", mods = "SHIFT", action = act.CopyMode({ JumpBackward = { prev_char = false } }) },
{ key = "G", mods = "NONE", action = act.CopyMode("MoveToScrollbackBottom") },
{ key = "G", mods = "SHIFT", action = act.CopyMode("MoveToScrollbackBottom") },
{ key = "H", mods = "NONE", action = act.CopyMode("MoveToViewportTop") },
{ key = "H", mods = "SHIFT", action = act.CopyMode("MoveToViewportTop") },
{ key = "L", mods = "NONE", action = act.CopyMode("MoveToViewportBottom") },
{ key = "L", mods = "SHIFT", action = act.CopyMode("MoveToViewportBottom") },
{ key = "M", mods = "NONE", action = act.CopyMode("MoveToViewportMiddle") },
{ key = "M", mods = "SHIFT", action = act.CopyMode("MoveToViewportMiddle") },
{ key = "O", mods = "NONE", action = act.CopyMode("MoveToSelectionOtherEndHoriz") },
{ key = "O", mods = "SHIFT", action = act.CopyMode("MoveToSelectionOtherEndHoriz") },
{ key = "T", mods = "NONE", action = act.CopyMode({ JumpBackward = { prev_char = true } }) },
{ key = "T", mods = "SHIFT", action = act.CopyMode({ JumpBackward = { prev_char = true } }) },
{ key = "V", mods = "NONE", action = act.CopyMode({ SetSelectionMode = "Line" }) },
{ key = "V", mods = "SHIFT", action = act.CopyMode({ SetSelectionMode = "Line" }) },
{ key = "^", mods = "NONE", action = act.CopyMode("MoveToStartOfLineContent") },
{ key = "^", mods = "SHIFT", action = act.CopyMode("MoveToStartOfLineContent") },
{ key = "b", mods = "NONE", action = act.CopyMode("MoveBackwardWord") },
{ key = "b", mods = "ALT", action = act.CopyMode("MoveBackwardWord") },
{ key = "b", mods = "CTRL", action = act.CopyMode("PageUp") },
{ key = "c", mods = "CTRL", action = act.CopyMode("Close") },
{ key = "d", mods = "CTRL", action = act.CopyMode({ MoveByPage = 0.5 }) },
{ key = "e", mods = "NONE", action = act.CopyMode("MoveForwardWordEnd") },
{ key = "f", mods = "NONE", action = act.CopyMode({ JumpForward = { prev_char = false } }) },
{ key = "f", mods = "ALT", action = act.CopyMode("MoveForwardWord") },
{ key = "f", mods = "CTRL", action = act.CopyMode("PageDown") },
{ key = "g", mods = "NONE", action = act.CopyMode("MoveToScrollbackTop") },
{ key = "g", mods = "CTRL", action = act.CopyMode("Close") },
{ key = "h", mods = "NONE", action = act.CopyMode("MoveLeft") },
{ key = "j", mods = "NONE", action = act.CopyMode("MoveDown") },
{ key = "k", mods = "NONE", action = act.CopyMode("MoveUp") },
{ key = "l", mods = "NONE", action = act.CopyMode("MoveRight") },
{ key = "m", mods = "ALT", action = act.CopyMode("MoveToStartOfLineContent") },
{ key = "o", mods = "NONE", action = act.CopyMode("MoveToSelectionOtherEnd") },
{ key = "q", mods = "NONE", action = act.CopyMode("Close") },
{ key = "t", mods = "NONE", action = act.CopyMode({ JumpForward = { prev_char = true } }) },
{ key = "u", mods = "CTRL", action = act.CopyMode({ MoveByPage = -0.5 }) },
{ key = "v", mods = "NONE", action = act.CopyMode({ SetSelectionMode = "Cell" }) },
{ key = "v", mods = "CTRL", action = act.CopyMode({ SetSelectionMode = "Block" }) },
{ key = "w", mods = "NONE", action = act.CopyMode("MoveForwardWord") },
{
key = "y",
mods = "NONE",
action = act.Multiple({ { CopyTo = "ClipboardAndPrimarySelection" }, { CopyMode = "Close" } }),
},
{ key = "PageUp", mods = "NONE", action = act.CopyMode("PageUp") },
{ key = "PageDown", mods = "NONE", action = act.CopyMode("PageDown") },
{ key = "End", mods = "NONE", action = act.CopyMode("MoveToEndOfLineContent") },
{ key = "Home", mods = "NONE", action = act.CopyMode("MoveToStartOfLine") },
{ key = "LeftArrow", mods = "NONE", action = act.CopyMode("MoveLeft") },
{ key = "LeftArrow", mods = "ALT", action = act.CopyMode("MoveBackwardWord") },
{ key = "RightArrow", mods = "NONE", action = act.CopyMode("MoveRight") },
{ key = "RightArrow", mods = "ALT", action = act.CopyMode("MoveForwardWord") },
{ key = "UpArrow", mods = "NONE", action = act.CopyMode("MoveUp") },
{ key = "DownArrow", mods = "NONE", action = act.CopyMode("MoveDown") },
},
search_mode = {
{ key = "Enter", mods = "NONE", action = act.CopyMode("PriorMatch") },
{ key = "Escape", mods = "NONE", action = act.CopyMode("Close") },
{ key = "n", mods = "CTRL", action = act.CopyMode("NextMatch") },
{ key = "p", mods = "CTRL", action = act.CopyMode("PriorMatch") },
{ key = "r", mods = "CTRL", action = act.CopyMode("CycleMatchType") },
{ key = "u", mods = "CTRL", action = act.CopyMode("ClearPattern") },
{ key = "PageUp", mods = "NONE", action = act.CopyMode("PriorMatchPage") },
{ key = "PageDown", mods = "NONE", action = act.CopyMode("NextMatchPage") },
{ key = "UpArrow", mods = "NONE", action = act.CopyMode("PriorMatch") },
{ key = "DownArrow", mods = "NONE", action = act.CopyMode("NextMatch") },
},
}
return config