Skip to content

Instantly share code, notes, and snippets.

@dejanr
Last active June 11, 2023 20:35
Show Gist options
  • Save dejanr/8952117 to your computer and use it in GitHub Desktop.
Save dejanr/8952117 to your computer and use it in GitHub Desktop.
OSX, X11, dwm, urxvt, vim environment
OSX Apps
- Total Spaces, for keeping X11 in different space and faster switching
- MenuAndDockless for hidding topbar menu
X11 - Macports
- sudo port install xorg-server
- sudo port install xinit
- sudo port install terminus-font dejavu-fonts bitstream-fonts
Suckless - suckless.org
My Dotfiles
And customization:
~ $ cat .Xdefaults
UXTerm*foreground: white
UXTerm*background: black
! Xcursor --------------------------------------------------------------------
Xcursor.theme: Vanilla-DMZ-AA
Xcursor.size: 22
! terminal colors ------------------------------------------------------------
! tangoesque scheme
*background: #000000
*foreground: #aaaaaa
! Black
*color0: #000000
*color8: #555753
! Red
*color1: #ff6565
*color9: #ff8d8d
! Green
*color2: #93d44f
*color10: #c8e7a8
! Yellow
*color3: #eab93d
*color11: #ffc123
! Blue
*color4: #204a87
*color12: #3465a4
! Mangenta
*color5: #ce5c00
*color13: #f57900
! Cyan
*color6: #89b6e2
*color14: #46a4ff
! White
*color7: #cccccc
*color15: #ffffff
! rxvt-unicode ---------------------------------------------------------------
!for antialiased fonts (using Xft)
!urxvt*font: xft:Envy Code R:pixelsize=13
urxvt*font: xft:dejavu sans mono:pixelsize=14
urxvt*boldFont: xft:dejavu sans mono:pixelsize=14
!urxvt*font: xft:Pragmata:pixelsize=13
!urxvt*boldFont: xft:Pragmata:pixelsize=13
!for normal X11 fonts:
!urxvt*font: -*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*
!urxvt*boldFont: -*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*
!urxvt*font: -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
!urxvt*boldFont: -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
!urxvt*font: -*-proggyclean-*-*-*-*-*-*-*-*-*-*-*-*
!urxvt*boldFont: -*-proggyclean-*-*-*-*-*-*-*-*-*-*-*-*
!urxvt*font: -*-proggysquaresz-*-*-*-*-*-*-*-*-*-*-*-*
!urxvt*boldFont: -*-proggysquaresz-*-*-*-*-*-*-*-*-*-*-*-*
URxvt*scrollstyle: plain
URxvt*cursorBlink: true
URxvt*cursorUnderline: true
urxvt*geometry: 160x50
urxvt*internalBorder: 5
urxvt*fading: 20
urxvt*shading: 80
urxvt*tintColor: #222222
urxvt*inheritPixmap: false
urxvt*depth: 24
!urxvt*depth: 32
urxvt*saveLines: 32767
urxvt*visualBell: false
urxvt*scrollTtyKeypress: true
urxvt*scrollWithBuffer: false
urxvt*scrollTtyOutput: false
urxvt*scrollBar: false
urxvt*scrollstyle: plain
urxvt*scrollBar_right: true
urxvt*scrollColor: #777777
urxvt*cursorColor: #ffcc00
urxvt*loginShell: true
urxvt*termName: urxvt
urxvt*cutchars: "()*,<>[]{}|'
urxvt*print-pipe: cat > $(echo urxvt.dump.`date +'%Y%M%d%H%m%S'`)
urxvt*secondaryScroll: true
urxvt*mapAlert: true
urxvt*utmpInhibit: true
urxvt*perl-lib: /opt/local/lib/urxvt/perl/
urxvt*perl-ext-common: default,matcher
urxvt*urlLauncher: /opt/local/bin/surf
urxvt*matcher.button: 1
urxvt*background: #000000
!urxvt*background: rgba:2222/2222/2222/dddd
!urxvt*background: rgba:0000/0000/0000/dddd
*VT100.translations: #override Meta <KeyPress> V: insert-selection(PRIMARY, CUT_BUFFER0)
URxvt.keysym.C-Left: \033[1;3D
URxvt.keysym.C-Right: \033[1;3C
~ $ cat .xinitrc
#!/bin/sh
# configure bash
. ~/.bashrc
# configure ssh agent
ssh-agent quartz-wm --only-proxy
# configure X11
[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
xsetroot -solid dark
xsetroot -cursor_name left_ptr
xsetroot general
xset fp+ /opt/local/share/fonts/
xset fp rehash
# urxvt daemon server
urxvtd --quiet --opendisplay --fork
# start urxvt client
urxvtc &
# setup dwm
while true
do
xsetroot -name "`date +"%H:%M"`"
xset r rate 250 30
xset b off
sleep 5
done &
exec dwm
~ $ cat .Xmodmap
clear Mod1
clear Mod2
add Mod1 = Meta_L
add Mod2 = Super_L
@bigscorpions
Copy link

Hi, can I ask how do you install rxvt on OSX? I can not install it with brew.

@TheEmpty
Copy link

brew install rxvt-unicode

@pennz
Copy link

pennz commented May 30, 2020

Update 2020:

brew cask install XQuartz
brew install rxvt-unicode

@dejanr
Copy link
Author

dejanr commented May 30, 2020

This was long time ago 6 years ago, since then i moved away from osx, and now my whole OS is fully reproducible and immutable with NixOS. Check it out here https://github.com/dejanr/dotfiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment