mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-06-06 18:08:31 +02:00
317 lines
10 KiB
Plaintext
317 lines
10 KiB
Plaintext
! ~/.Xresources
|
|
|
|
! SPDX-FileCopyrightText: 2004 - 2016 Tim Pope <https://tpo.pe>
|
|
! SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
!
|
|
! SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
! Credits: https://github.com/tpope/dotfiles/blob/master/.Xresources
|
|
! vim:set foldmethod=expr foldexpr=getline(v\:lnum)=~'^!##'?'>1'\:'=':
|
|
|
|
*international: true
|
|
*customization: -color
|
|
|
|
!## TERMINAL COMMON
|
|
#ifndef FIXED
|
|
#if WIDTH > 1800
|
|
#define FIXED -misc-fixed-medium-r-normal--20-*-*-*-c-*
|
|
#elif WIDTH > 1450
|
|
#define FIXED -misc-fixed-medium-r-normal--18-*-*-*-c-*
|
|
#elif WIDTH > 1150
|
|
#define FIXED -misc-fixed-medium-r-normal--14-*-*-*-c-*
|
|
#else
|
|
#define FIXED -misc-fixed-medium-r-semicondensed--13-*-*-*-c-*
|
|
#endif
|
|
#endif
|
|
|
|
! http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
|
|
! https://en.wikipedia.org/wiki/X11_color_names
|
|
! https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
|
|
! RGB to HEX https://unix.stackexchange.com/a/269085
|
|
! https://misc.flogisoft.com/bash/tip_colors_and_formatting
|
|
! https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
|
|
! https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-bash-ps1-prompt
|
|
|
|
! name dark light
|
|
! black 0 8
|
|
! red 1 9
|
|
! green 2 10
|
|
! yellow 3 11
|
|
! blue 4 12
|
|
! purple 5 13
|
|
! cyan 6 14
|
|
! white 7 15
|
|
|
|
! Tpope colors
|
|
*color0: #000000
|
|
*color1: #aa0000
|
|
*color2: #00aa00
|
|
*color3: #aa5522
|
|
*color4: #0000ee
|
|
*color5: #aa00aa
|
|
*color6: #00aaaa
|
|
*color7: #aaaaaa
|
|
*color8: #555555
|
|
*color9: #ff4444
|
|
*color10: #44ff44
|
|
*color11: #ffff00
|
|
*color12: #5c5cff
|
|
*color13: #ff00ff
|
|
*color14: #00ffff
|
|
*color15: #ffffff
|
|
*colorBD: #ffffff
|
|
|
|
! *.cursorColor: #ffffff
|
|
|
|
! *color0: #000000
|
|
! *color1: #aa0000
|
|
! *color2: #00aa00
|
|
! *color3: #aa5522
|
|
! *color4: #0000ee
|
|
! *color5: #aa00aa
|
|
! *color6: #00aaaa
|
|
! *color7: #aaaaaa
|
|
! *color8: #555555
|
|
! *color9: #ff4444
|
|
! *color10: #44ff44
|
|
! *color11: #ffff00
|
|
! *color12: #5c5cff
|
|
! *color13: #ff00ff
|
|
! *color14: #00ffff
|
|
! *color15: #ffffff
|
|
! *colorBD: #ffffff
|
|
|
|
! ! Black / Grey
|
|
! *.color0: #000000
|
|
! ! *.color8: #808080
|
|
! *.color8: #767676
|
|
|
|
! ! Red / Bright Red
|
|
! *.color1: #800000
|
|
! *.color9: #FF0000
|
|
|
|
! ! Green + Bright Green
|
|
! ! *.color2: #008000
|
|
! *.color2: #00af00
|
|
! *.color10: #00ff00
|
|
|
|
! ! Yellow (Orange) + Bright Yellow (Yellow)
|
|
! *.color3: #808000
|
|
! *.color11: #ffff00
|
|
|
|
! ! Blue + Bright Blue
|
|
! *.color4: #000080
|
|
! *.color12: #0000ff
|
|
|
|
! ! Magenta (Purple) + Bright Magenta
|
|
! ! *.color5: #800080
|
|
! *.color5: #af00d7
|
|
! *.color13: #0000ff
|
|
|
|
! ! Cyan (Aqua) + Bright Cyan
|
|
! ! *.color6: #800080
|
|
! *.color6: #008b8b
|
|
! ! *.color14: #ff00ff
|
|
! *.color14: #00d7ff
|
|
|
|
! ! Light Grey (Selection) + White (Current Line)
|
|
! *.color7: #c0c0c0
|
|
! *.color15: #ffffff
|
|
|
|
!## [U]XTERM
|
|
*.selectToClipboard: true
|
|
*.VT100saveLines: 4096
|
|
*.wideChars: true
|
|
*.locale: true
|
|
*.utf8: 1
|
|
*.VT100Graphics: true
|
|
*.background: black
|
|
*.VT100.background: black
|
|
*.foreground: white
|
|
*.VT100.foreground: white
|
|
*.termName: xterm-256color
|
|
*.ttyModes: start ^- stop ^-
|
|
*.boldMode: false
|
|
*.allowBoldFonts: false
|
|
*.VT100.geometry: 80x24
|
|
*.VT100.scaleHeight: 1.1
|
|
! For some reason, '*scrollBar' was not working on Fedora.
|
|
XTerm*.scrollBar: false
|
|
UXTerm*.scrollBar: false
|
|
*.colorBDMode: true
|
|
*.visualBell: false
|
|
*.eightBitInput: false
|
|
*.modifyCursorKeys: 2
|
|
*.trimSelection: true
|
|
*.CharClass: 33:48,37-38:48,45-47:48,58:48,61:48,63-64:48,126:48,161-255:48
|
|
*.activeIcon: true
|
|
*.VT100.translations: #override \
|
|
Ctrl<Key>comma: scroll-forw(1,page-1) \n\
|
|
Ctrl<Key>period: scroll-back(1,page-1) \n\
|
|
Ctrl<Key>9: smaller-vt-font() \n\
|
|
Ctrl<Key>0: larger-vt-font() \n\
|
|
Ctrl<Key>1: set-render-font(toggle)
|
|
*.VT100.metaSendsEscape: true
|
|
|
|
#ifdef FIXED
|
|
*.VT100.font: FIXED-iso8859-1
|
|
*.font: FIXED-iso8859-1
|
|
*.boldFont: FIXED-iso8859-1
|
|
*.utf8Fonts.font: FIXED-iso10646-1
|
|
*.utf8Fonts.boldFont: FIXED-iso10646-1
|
|
#else
|
|
*.VT100.font: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso8859-1
|
|
*.font: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso8859-1
|
|
*.boldFont: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso10646-1
|
|
*.utf8Fonts.boldFont: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso10646-1
|
|
#endif
|
|
#if WIDTH >= 1920
|
|
*.renderFont: true
|
|
#endif
|
|
*.fontMenu.fontdefault.Label: Default
|
|
*.fontMenu.font1.Label: Tiny
|
|
*.font1: -misc-fixed-medium-r-normal--6-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font1: -misc-fixed-medium-r-normal--6-*-*-*-c-*-iso10646-1
|
|
*.fontMenu.font2.Label: Small
|
|
*.font2: -misc-fixed-medium-r-normal--8-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-*-*-*-c-*-iso10646-1
|
|
*.fontMenu.font3.Label: Semicondensed
|
|
*.font3: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font3: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1
|
|
*.fontMenu.font4.Label: Medium
|
|
*.font4: -misc-fixed-medium-r-normal--14-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font4: -misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1
|
|
*.fontMenu.font5.Label: Large
|
|
*.font5: -misc-fixed-medium-r-normal--18-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-*-*-*-c-*-iso10646-1
|
|
*.fontMenu.font6.Label: Huge
|
|
*.font6: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso8859-1
|
|
*.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-*-*-*-c-*-iso10646-1
|
|
*.faceName: MONOSPACE:MEDIUM
|
|
#ifdef MONOSIZE
|
|
*.faceSize: MONOSIZE
|
|
#else
|
|
*.faceSize: 12
|
|
#endif
|
|
*.faceSize1: 10
|
|
*.faceSize2: 12
|
|
*.faceSize3: 14
|
|
*.faceSize4: 17
|
|
*.faceSize5: 21
|
|
*.faceSize6: 24
|
|
|
|
!## [U]RXVT
|
|
Rxvt*visualBell: true
|
|
URxvt.urgentOnBell: true
|
|
URxvt.termName: rxvt-256color
|
|
|
|
Rxvt*scrollBar: false
|
|
URxvt.thickness: 4
|
|
URxvt.scrollBar_floating: true
|
|
URxvt.scrollstyle: plain
|
|
|
|
Rxvt*background: #000000
|
|
Rxvt*foreground: #aaaaaa
|
|
URxvt.underlineColor: #777777
|
|
URxvt.boldFont:
|
|
URxvt.italicFont:
|
|
URxvt.boldItalicFont:
|
|
|
|
#ifdef MONOSIZE
|
|
URxvt.font: xft:MONOSPACE-MONOSIZE:MEDIUM
|
|
#elif WIDTH < 1920
|
|
URxvt.font: FIXED-iso10646-1
|
|
#else
|
|
URxvt.font: xft:MONOSPACE-14:MEDIUM
|
|
#endif
|
|
|
|
URxvt.keysym.M-C-1: command:\033]710;-misc-fixed-medium-r-normal--6-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-2: command:\033]710;-misc-fixed-medium-r-normal--8-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-3: command:\033]710;-misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-4: command:\033]710;-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-5: command:\033]710;-misc-fixed-medium-r-normal--18-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-6: command:\033]710;-misc-fixed-medium-r-normal--20-*-*-*-c-*-iso10646-1\007
|
|
URxvt.keysym.M-C-7: command:\033]710;xft:MONOSPACE-10:MEDIUM\007
|
|
URxvt.keysym.M-C-8: command:\033]710;xft:MONOSPACE-12:MEDIUM\007
|
|
URxvt.keysym.M-C-9: command:\033]710;xft:MONOSPACE-14:MEDIUM\007
|
|
URxvt.keysym.M-C-0: command:\033]710;xft:MONOSPACE-17:MEDIUM\007
|
|
URxvt.keysym.M-C-minus: command:\033]710;xft:MONOSPACE-21:MEDIUM\007
|
|
URxvt.keysym.M-C-equal: command:\033]710;xft:MONOSPACE-24:MEDIUM\007
|
|
|
|
URxvt.keysym.C-9: perl:font-size:decrease
|
|
URxvt.keysym.C-0: perl:font-size:increase
|
|
URxvt.keysym.S-C-underscore: perl:font-size:decrease
|
|
URxvt.keysym.S-C-plus: perl:font-size:increase
|
|
|
|
URxvt.keysym.C-1: perl:matcher
|
|
URxvt.keysym.C-grave: perl:matcher:list
|
|
URxvt.keysym.C-comma: command:\033]720;12\007
|
|
URxvt.keysym.C-period: command:\033]721;12\007
|
|
|
|
URxvt.keysym.KP_Up: string:\033[A
|
|
URxvt.keysym.KP_Down: string:\033[B
|
|
URxvt.keysym.KP_Right: string:\033[C
|
|
URxvt.keysym.KP_Left: string:\033[D
|
|
URxvt.keysym.KP_Begin: string:\033[E
|
|
URxvt.keysym.KP_Insert: string:\033[2~
|
|
URxvt.keysym.KP_Delete: string:\033[3~
|
|
URxvt.keysym.KP_Next: string:\033[5~
|
|
URxvt.keysym.KP_Prior: string:\033[6~
|
|
URxvt.keysym.KP_Home: string:\033[7~
|
|
URxvt.keysym.KP_End: string:\033[8~
|
|
URxvt.keysym.KP_Enter: string:\015
|
|
URxvt.keysym.KP_Add: string:+
|
|
URxvt.keysym.KP_Subtract: string:-
|
|
URxvt.keysym.KP_Multiply: string:*
|
|
URxvt.keysym.KP_Divide: string:/
|
|
|
|
URxvt.iso14755_52: false
|
|
URxvt.perl-ext: default,searchable-scrollback<C-S-question>,matcher,selection-pastebin,remote-clipboard,selection-autotransform
|
|
URxvt.perl-eval: push @{ $urxvt::TERM->{selection_popup_hook} }, \n\
|
|
sub { /\\n/ ? ("join lines with spaces" => sub { s{^\\s+}{}mg; s/ \*\\n/ /g; s{ $}{}; }) : () }, \n\
|
|
sub { /./ ? ("string quote" => sub { s([\\\\\\042$@]|#[{])(\\\\$&)g; s{\\n}{\\\\n}g; s{\\t}{\\\\t}g; s{\\r}{\\\\r}g; s{[\\000-\\037]}{sprintf("%03o",ord($&))}eg; $_ = qq("$_"); }) : () }, \n\
|
|
sub { /\\n\\[?\\d\\d(\\d\\d-|:)\\d\\d/ ? ("quote for irc" => sub { s{^\\[?[\\d:_-]+\\]? +}{}; s/\\s*\\n\\[?[\\d:_-]{5,}\\]? +/ || /g; s/^\\s+/ /mg; s/( ?) \*\\n( ?)/($1||$2)/eg; s{ $}{}; }) : () };
|
|
URxvt.selection-autotransform.0: if(/\\n\\[?\\d\\d(\\d\\d-|:)\\d\\d/) { s{^\\[?[\\d:_-]+\\]? +}{}; s/\\s*\\n\\[?[\\d:_-]{5,}\\]? +/ || /g; s/^\\s+/ /mg; s/( ?) \*\\n( ?)/($1||$2)/eg; s{ $}{}; };
|
|
URxvt.selection-autotransform.1: if(/^irb.*?> /) { s{^irb.*?[>*]\\s*}{}mg; s/\\n=>/ #=>/mg; s{\\n$}{};}
|
|
URxvt.selection-autotransform.2: if(m{^[ab]/}) { s{^[ab]/}{}g; }
|
|
URxvt.selection-autotransform.3: s/^([^:\\s]*):(\\d+)(:|:in)?$/+$2 $1/g;
|
|
|
|
!## XFT
|
|
Xft.antialias: 1
|
|
Xft.hinting: 1
|
|
Xft.rgba: rgb
|
|
Xft.hintsyle: hintslight
|
|
Xft.lcdfilter: lcddefault
|
|
Xft.dpi: 96
|
|
|
|
!## XDVI
|
|
XDvi.editor: vim -g --remote +%l %f
|
|
XDvi.wwwBrowser: xdg-open
|
|
XDvi.shrinkFactor: 7
|
|
XDvi.expert: true
|
|
XDvi.Margin: 1in
|
|
XDvi.paper: us
|
|
XDvi.mainTranslations: #override \
|
|
<Btn1Down>: do-href()magnifier(*1)\n\
|
|
<Btn2Down>: do-href-newwindow()source-special()\n\
|
|
<Btn3Down>: magnifier(*3)\n
|
|
Fig.inches: true
|
|
|
|
!## XMESSAGE
|
|
Xmessage.defaultButton: okay
|
|
|
|
!## XSCREENSAVER
|
|
XScreenSaver.dpmsEnabled: true
|
|
XScreenSaver.splash: false
|
|
XScreenSaver.ignoreUninstalledPrograms: true
|
|
XScreenSaver.loadURL: xdg-open '%s'
|
|
XScreensaver.captureStderr: false
|
|
XScreensaver.overlayStderr: false
|
|
|
|
!## XCOLORSEL
|
|
Xcolorsel*displayFormat: #rrggbb
|
|
|
|
!## ROFI
|
|
rofi.font: MONOSPACE bold 14
|