Skip to content

Instantly share code, notes, and snippets.

@psmolak
Last active June 11, 2016 16:48
Show Gist options
  • Save psmolak/024981dbceefabe1d0c45f43ea809752 to your computer and use it in GitHub Desktop.
Save psmolak/024981dbceefabe1d0c45f43ea809752 to your computer and use it in GitHub Desktop.
xinitrc
#!/bin/bash
#
# ~/.xinitrc
#
# load nvidia config
nvidia-settings -l
# Set wallpaper
hsetroot -tile ~/usr/img/bg/stripes.png &
# default cursor
xsetroot -cursor_name left_ptr &
function wm() {
# Load X resources
xrdb -load ~/.Xresources &
# personnal bindings
xbindkeys
# set WM name
xsetroot -name $1
#status bar
~/bin/bar/status.sh & # it acts kinda weirdly
# Compositing
# enable RGBA module for GTK
export GTK_MODULES=rgba
#compton -cCb -t-5 -l-5 -r4.2 -o.4
compton -cb -o0
# spawn window manager
exec $1
}
[[ -z $1 ]] && wm cwm
wm $1
*background:#222222
*foreground:#e8e9ca
*color0: #222222
*color1: #8b3e2f
*color2: #526f33
*color3: #665847
*color4: #4a708b
*color5: #7a378b
*color6: #528b8b
*color7: #999999
*color8: #4c4c4c
*color9: #d75f00
*color10: #cee318
*color11: #eee685
*color12: #9ac0cd
*color13: #9f79ee
*color14: #79cdcd
*color15: #e8e9ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment