Last active
June 18, 2019 09:28
-
-
Save rjl6789/115d5494406d82060b0ec592151639dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Xresourses is read by C preprocessor - variables are defined | |
#ifndef MON_DPI | |
#define MON_DPI 96 | |
#endif | |
#ifndef CURSOR_SIZE | |
#define CURSOR_SIZE 24 | |
#endif | |
#ifndef FONT_SIZE | |
#define FONT_SIZE 20 | |
#endif | |
! font settings -------------------------------------------------------------- | |
Xft.autohint: true | |
Xft.antialias: true | |
Xft.hinting: true | |
Xft.hintstyle: hintfull | |
Xft.dpi: MON_DPI | |
Xft.rgba: rgb | |
Xft.lcdfilter: lcddefault | |
! Cursor size | |
Xcursor.size: CURSOR_SIZE | |
!*.cursorColor: #add8e6 | |
*.cursorColor: #16A085 | |
! | |
*.font: monospace:size=14:antialias=true:autohint=true:hinting=true:hintstyle=hintfull:dpi=MON_DPI | |
! | |
!! --------------------------- | |
! DWM | |
!! -------------------------- | |
dwm.normbordercolor: #282828 | |
dwm.normbgcolor: #1d2021 | |
dwm.normfgcolor: #ebdbb2 | |
dwm.selbordercolor: #cc241d | |
dwm.selbgcolor: #16A085 | |
dwm.selfgcolor: #fbf1c7 | |
!! --------------------------- | |
! st - simple terminal | |
!! -------------------------- | |
st.alpha: 0.92 | |
st.borderpx: 15 | |
st.fontalt0: DejaVu Sans Mono for Powerline:size=14:antialias=true:autohint=true:hinting=true:hintstyle=hintfull:dpi=MON_DPI | |
!------------------------------ | |
!********** Colours *********** | |
!------------------------------ | |
!------------------------------ | |
! gruvbox | |
!------------------------------ | |
! transparancy - note normally is based on rgb 0-255 but in st has changed to fraction | |
*.alpha: 245 | |
*.background: #1d2021 | |
*.foreground: #fbf1c7 | |
*.color0: #282828 | |
*.color1: #cc241d | |
*.color2: #98971a | |
*.color3: #d79921 | |
*.color4: #458588 | |
*.color5: #b16286 | |
*.color6: #689d6a | |
*.color7: #a89984 | |
*.color8: #928374 | |
*.color9: #fb4934 | |
*.color10: #b8bb26 | |
*.color11: #fabd2f | |
*.color12: #83a598 | |
*.color13: #d3869b | |
*.color14: #8ec07c | |
*.color15: #ebdbb2 | |
!------------------------------ | |
! Rofi | |
!------------------------------ | |
rofi.dpi: MON_DPI | |
rofi.font: monospace 16 | |
rofi.padding: 20 | |
rofi.line-padding: 2 | |
rofi.color-enabled: true | |
rofi.hide-scrollbar: true | |
rofi.separator-style: solid | |
rofi.color-window: #1c2023, #919ba0, #1c2023 | |
rofi.color-normal: #1c2023, #919ba0, #1c2023, #a4a4a4, #1c2023 | |
rofi.color-urgent: argb:00000000, #f43753, argb:00000000, argb:00000000, #e29a49 | |
rofi.color-active: argb:00000000, #49bbfb, argb:00000000, argb:00000000, #e29a49 | |
rofi.kb-cancel: Escape,Alt+F1 | |
! urxvt ------------------------------------------- | |
! "monospace" is an alias defined in ~/.config/fontconfig/fonts.conf | |
URxvt.font: xft:monospace:size=10 | |
URxvt.boldFont: xft:monospace:bold:size=10 | |
! Add fallback fonts as laid out in `man 1 urxvt` under "font:" in the RESOURCES section | |
URxvt.letterSpace: -1 | |
!URxvt.lineSpace: 1 | |
! The letterSpace and lineSpace settings are highly dependent on the font(s) configured above | |
! and should be changed or removed as necessary. | |
! Window size and position | |
!URxvt*geometry: 60x22+50+100 | |
! Window size, let the Window Manager position it | |
URxvt.geometry: 83x35 | |
URxvt.scrollstyle: plain | |
URxvt.scrollBar: true | |
URxvt.scrollBar_right: true | |
URxvt.iconFile: /usr/share/icons/Paper/48x48/apps/utilities-terminal.png | |
URxvt.cursorBlink: true | |
URxvt.fading: 20 | |
! Grey theming | |
!URxvt*background: #cecece | |
!URxvt*foreground: #101010 | |
! Terminator Beam colours | |
URxvt.background: [90]#082B4A | |
URxvt.foreground: #ADD8E6 | |
! scrollback buffer lines - 65535 is max (64 is default) | |
URxvt.saveLines: 16384 | |
! True Transparency, opacity percentage set in square brackets before URxvt.background colour | |
URxvt.depth: 32 | |
! Clickble URLs | |
URxvt.perl-ext-common: default,matcher | |
URxvt.url-launcher: /usr/bin/x-www-browser | |
URxvt.matcher.button: 3 | |
! Custom colourscheme, see http://terminal.sexy/ for more ideas. | |
! Commented out colors are from the original Bunsenlabs Hydrogen terminal theme. | |
! Black | |
URxvt.color0: #5f5f5f | |
URxvt.color8: #828282 | |
! Red | |
URxvt.color1: #d96468 | |
URxvt.color9: #d98f93 | |
! Green | |
URxvt.color2: #a2d964 | |
URxvt.color10: #b8d98f | |
! Yellow | |
URxvt.color3: #d9c964 | |
URxvt.color11: #d9cf8f | |
! Blue | |
URxvt.color4: #64a2d9 | |
URxvt.color12: #8f99d9 | |
! Magenta | |
URxvt.color5: #9a64d9 | |
URxvt.color13: #b08fd9 | |
!Cyan | |
URxvt.color6: #64d9d5 | |
URxvt.color14: #8fd9d5 | |
! White | |
URxvt.color7: #989898 | |
URxvt.color15: #c5c5c5 | |
!------------------------------ | |
! Bunsenlabs - Helium | |
!------------------------------ | |
!*.background: #082b4a | |
!*.foreground: #add8e6 | |
!! | |
!! Black | |
!*.color0: #5f5f5f | |
!*.color8: #828282 | |
! | |
!! Red | |
!*.color1: #d96468 | |
!*.color9: #d98f93 | |
! | |
!! Green | |
!*.color2: #a2d964 | |
!*.color10: #b8d98f | |
! | |
!! Yellow | |
!*.color3: #d9c964 | |
!*.color11: #d9cf8f | |
! | |
!! Blue | |
!*.color4: #64a2d9 | |
!*.color12: #8f99d9 | |
! | |
!! Magenta | |
!*.color5: #9a64d9 | |
!*.color13: #b08fd9 | |
! | |
!!Cyan | |
!*.color6: #64d9d5 | |
!*.color14: #8fd9d5 | |
! | |
!! White | |
!*.color7: #989898 | |
!*.color15: #c5c5c5 | |
!------------------------------ | |
! Manjaro - st | |
!------------------------------ | |
!*.background: #292f34 | |
!*.foreground: #d8d8d8 | |
! | |
!*.color0: #292f34 | |
!*.color1: #ab4642 | |
!*.color2: #99cc99 | |
!*.color3: #f7ca88 | |
!*.color4: #7cafc2 | |
!*.color5: #ba8baf | |
!*.color6: #1ABB9B | |
!*.color7: #d8d8d8 | |
!*.color8: #585858 | |
!*.color9: #ab4642 | |
!*.color10: #99cc99 | |
!*.color11: #f7ca88 | |
!*.color12: #7cafc2 | |
!*.color13: #ba8baf | |
!*.color14: #1ABB9B | |
!*.color15: #f8f8f8 | |
! | |
! ----------------------------- | |
! ORIGINAL | |
! ----------------------------- | |
! | |
!! Black | |
!! URxvt.color0: #000000 | |
!! URxvt.color8: #555753 | |
!URxvt.color0: #5f5f5f | |
!URxvt.color8: #828282 | |
!!URxvt.color0: #555753 | |
!!URxvt.color8: #babdb6 | |
! | |
!! Red | |
!! URxvt.color1: #cc0000 | |
!! URxvt.color9: #ef2929 | |
!URxvt.color1: #b44444 | |
!URxvt.color9: #d98f93 | |
! | |
!! Green | |
!! URxvt.color2: #4e9a06 | |
!! URxvt.color10: #8ae234 | |
!URxvt.color2: #5ecb8c | |
!URxvt.color10: #13b9b9 | |
! | |
!! Yellow | |
!! URxvt.color3: #c4a000 | |
!! URxvt.color11: #fce94f | |
!URxvt.color3: #d9c964 | |
!URxvt.color11: #d9cf8f | |
! | |
!! Blue | |
!! URxvt.color4: #3465a4 | |
!! URxvt.color12: #729fcf | |
!URxvt.color4: #3d6aac | |
!URxvt.color12: #8f99d9 | |
! | |
!! Magenta | |
!! URxvt.color5: #75507b | |
!! URxvt.color13: #ad7fa8 | |
!URxvt.color5: #9a64d9 | |
!URxvt.color13: #b08fd9 | |
! | |
!!Cyan | |
!! URxvt.color6: #06989a | |
!! URxvt.color14: #34e2e2 | |
!URxvt.color6: #64d9d5 | |
!URxvt.color14: #8fd9d5 | |
! | |
!! White | |
!! URxvt.color7: #d3d7cf | |
!! URxvt.color15: #eeeeec | |
!URxvt.color7: #d3d7cf | |
!URxvt.color15: #c5c5c5 | |
! ----------------------------- | |
! | |
! Colourised man pages, also changes scheme for htop(1) and others. | |
! | |
! Headings: | |
! URxvt.colorBD: #cf6171 | |
! | |
! Underline: | |
! URxvt.colorUL: #4186be | |
! | |
! Italicised: | |
! URxvt.colorIT: #71bebe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -z "$DPI" ] && [ ! -z "$CURSOR_SIZE" ] && [ ! -z "$FONT_SIZE" ]; then | |
xrdb -DMON_DPI="$DPI" -DCURSOR_SIZE="$CURSOR_SIZE" -DFONT_SIZE="$FONT_SIZE" -merge $HOME/.Xresources | |
xrandr --dpi "$DPI" | |
else | |
xrdb -merge $HOME/.Xresources | |
xrandr --dpi 96 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
define env variables DPI, CURSOR_SIZE, FONT_SIZE in .profile or some other early read file