Skip to content

Instantly share code, notes, and snippets.

@NimaMX
Last active May 30, 2022 12:18
Show Gist options
  • Save NimaMX/a8f0117e71ee04ba01ce7e214f507601 to your computer and use it in GitHub Desktop.
Save NimaMX/a8f0117e71ee04ba01ce7e214f507601 to your computer and use it in GitHub Desktop.
my terminal configuration (urxvt, tabbed, powerline font, i3, copy-paste)
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrdb -merge ~/.Xresources
2
exec i3
# Make sure this is before the 'exec' command or it won't be sourced.
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
xrdb -merge ~/.Xresources
exec i3
Xft.dpi: 200
Xft.antialias: 1
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.autohint: true
Xft.lcdfilter: lcddefault
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: white
URxvt.cursorUnderline: false
URxvt.utf8: true
URxvt.locale: true
URxvt.font: xft:Roboto Mono for Powerline:size=14
URxvt*letterSpace: 0
URxvt.lineSpace: 0
URxvt*depth: 32
URxvt*borderless: 1
URxvt.iso14755: false
URxvt*scrollBar: false
URxvt*loginShell: true
URxvt*saveLines: 2048
URxvt*termName: rxvt-unicode
URxvt.perl-ext-common: default,matcher,selection-to-clipboard,tabbed,url-select,keyboard-select,clipboard,searchable-scrollback
URxvt.urlLauncher: firefox
! Dracula Xresources palette
*.foreground: #F8F8F2
*.background: #000000
*.color0: #000000
*.color8: #4D4D4D
*.color1: #FF5555
*.color9: #FF6E67
*.color2: #50FA7B
*.color10: #5AF78E
*.color3: #F1FA8C
*.color11: #F4F99D
*.color4: #BD93F9
*.color12: #CAA9FA
*.color5: #FF79C6
*.color13: #FF92D0
*.color6: #8BE9FD
*.color14: #9AEDFE
*.color7: #BFBFBF
*.color15: #E6E6E6
*.color16: #666666
!! Common Keybinds for Navigations
URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Control-Right: \033[1;5C
URxvt.keysym.Control-Left: \033[1;5D
!TABS
URxvt.matcher.button: 1
URxvt.tabbed.tabbar-fg: 8
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 2
URxvt.tabbed.tab-bg: 0
URxvt.tabbed.active-fg: 5
URxvt.tabbed.actives-fg: 5
URxvt.tabbed.new-button: false
URxvt.tabbed.title: true
URxvt.autohide: no
URxvt.tabbed.autohide: true
Urxvt*secondaryScroll: true
URxvt.tabbed.zero-jump-last: true
URxvt.tabbed.tab-numbers: false
URxvt.copyCommand: xclip -i -selection clipboard
URxvt.pasteCommand: xclip -o -selection clipboard
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.underlineURLs: true
URxvt.urlButton: 1

Install Powerline

sudo pip3 install powerline-shell

Install the Powerline Font

git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment