Skip to content

Instantly share code, notes, and snippets.

@jasobrown
Created January 15, 2016 15:48
Show Gist options
  • Save jasobrown/14bfdf24acb31ce947c7 to your computer and use it in GitHub Desktop.
Save jasobrown/14bfdf24acb31ce947c7 to your computer and use it in GitHub Desktop.
arch
Config {
font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*",
bgColor = "black",
fgColor = "grey",
position = TopW L 100,
commands = [
Run MultiCpu ["-t","cpu: <autototal>","-L", "10","-H","50","-n","green","-h","red"] 10,
Run Memory ["-t","mem: <usedratio>%", "-L", "0","-H", "50","-n","green","-h","red"] 50,
Run Date "%a %b %_d %l:%M:%S" "date" 10,
Run Battery ["-t", "<acstatus>", "--", "-o", "<fc=red>Bat: <left>%</fc>", "-O", "<fc=green>Bat. Charging: <left>%</fc>", "-i", "<fc=green>Bat. Charged</fc>"] 600,
Run Brightness ["-t", "<percent>%"] 60,
Run DiskU [("sda5","disk: <usedp>%")] ["-L","0","-H","50","-m","1","-p","3","-n","green","-h","red"] 600,
Run DynNetwork ["-t", "net: <rxbar> <txbar>", "-H", "3000"] 10,
Run StdinReader
],
sepChar = "%",
alignSep = "}{",
template = "%StdinReader% }{ %multicpu% | %memory% | %disku% | %dynnetwork% | Brightness: %bright% | %battery% | <fc=#ee9a00>%date%</fc>"
}
➜ ~ cat .Xmodmap
!!! xmodmap for apple mba keyboard/touchpad
!! left-to-right
!
!! clear mod keys
clear control
clear Mod1
clear Mod4
clear Mod5
!! remap keys
! control key (left) to super
! keycode 37 = Super_L NoSymbol Super_L
! option key (left) to meta
!keycode 64 = Meta_L Alt_L Meta_L
! caps lock to to ALT_L
! keycode 66 = ALT_L NoSymbol ALT_L
! command key (left) to control
! keycode 133 = Control_L NoSymbol Control_L
! command key (right) to control
! keycode 134 = Control_R NoSymbol Control_R
! option key (right) to meta
!keycode 108 = Meta_R NoSymbol Meta_R
!! setup mod keys
add control = Control_L
add control = Control_R
add Mod1 = Alt_L Alt_R Meta_L
add Mod4 = Super_L
! carried from previous configs
add Mod5 = ISO_Level3_Shift Mode_switch
! setup reverse scrolling on touchpad
! pointer = 1 2 3 5 4 6 8 9 10 11 12 13 14 15 16
➜ ~ cat .Xresources
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
*background: S_base03
*foreground: S_base0
*fadeColor: S_base03
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3
URxvt.perl-ext-common: font-size,default,clipboard
URxvt*font: 7x13
!!URxvt*font: xft:monaco:size=12
!!URxvt.letterSpace: -4
URxvt*scrollBar: false
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
!! copy/paste
URxvt.keysym.Shift-Control-C: perl:clipboard:copy
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.clipboard.copycmd: xsel -ib
URxvt.clipboard.pastecmd: xsel -ob
!! adjust the font size dynamically
URxvt.keysym.C-Up: perl:font-size:increase
URxvt.keysym.C-Down: perl:font-size:decrease
URxvt.keysym.C-S-Up: perl:font-size:incglobal
URxvt.keysym.C-S-Down: perl:font-size:decglobal
!! must be disabled
URxvt.iso14755: false
URxvt.iso14755_52: false%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment