Skip to content

Instantly share code, notes, and snippets.

@felipecwb
Last active November 14, 2023 01:11
Show Gist options
  • Save felipecwb/76bf46d7cc383f5f993ff980fb083d1c to your computer and use it in GitHub Desktop.
Save felipecwb/76bf46d7cc383f5f993ff980fb083d1c to your computer and use it in GitHub Desktop.
Xresources
!** Display Options
Xcursor.theme: Adwaita
!Xft.dpi: 92
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
!** (u)xterm
!********
*.termName: xterm-256color
*.loginShell: true
*.locale: true
*.utf8: 2
*.faceName: Hack Nerd Font
*.faceSize: 11
*.letterSpace: 1
!*** key bindings
*vt100.translations: #override \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl <Key>Prior: smaller-vt-font() \n\
Ctrl <Key>Next: larger-vt-font()
!*** key bindings
*.metaSendsEscape: true
*.eightBitInput: false
*.borderWidth: 0
*.scrollBar: false
*.saveLines: 20000
! Only select text
*.highlightSelection: true
! Remove trailing spaces
*.trimSelection: true
*.charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
! This doesnt let me drag over spaces:
*.on2Clicks: regex [[:alnum:]./_-~\+%@]+
! Select links with double click (procol optional to catch files too):
*.on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
! The existing difficulty with double-click (with or without drag) is that I often don't want to cross ':'s except when I am trying to select a hyperlink, then I do. It would be great if we could cross ':'s only when we can see it's a hyperlink, e.g. '://' or '(known_protocol)://'
! disable bold font faces, instead make text light blue.
*.boldMode: true
*.colorBDMode: true
*.colorULMode: true
!*.colorBD: #fcfcfc
! Kanagawa theme
! special
*.foreground: #dcd7ba
*.background: #1f1f28
*.cursorColor: #dcd7ba
! black
*.color0: #090618
*.color8: #727169
! red
*.color1: #c34043
*.color9: #e82424
! green
*.color2: #76946a
*.color10: #98bb6c
! yellow
*.color3: #c0a36e
*.color11: #e6c384
! blue
*.color4: #7e9cd8
*.color12: #7fb4ca
! magenta
*.color5: #957fb8
*.color13: #938aa9
! cyan
*.color6: #6a9589
*.color14: #7aa89f
! white
*.color7: #c8c093
*.color15: #dcd7ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment