Skip to content
Browse files

updated for use with systemd

  • Loading branch information...
1 parent 467d54f commit 63fa4be4bb0db2a5816fd2283cccd944f9530ac4 @graysky2 committed Apr 14, 2012
Showing with 37 additions and 61 deletions.
  1. +0 −51 dotfiles/.Xdefaults
  2. +36 −10 dotfiles/.bashrc
  3. +1 −0 dotfiles/.xinitrc
View
51 dotfiles/.Xdefaults
@@ -1,51 +0,0 @@
-URxvt*termName:screen-256color
-URxvt*loginShell:true
-!URxvt.perl-ext-common: default,tabbed
-URxvt.iconFile: /usr/share/icons/HighContrast/scalable/apps/utilities-terminal.svg
-URxvt.perl-ext:
-URxvt.perl-ext-common:
-
-! Fonts
-URxvt.font:tixus
-
-! Change fonts on demand
-URxvt.keysym.M-C-1: command:\033]710;tixus\007\033]711;tixus\007
-URxvt.keysym.M-C-2: command:\033]710;artsie\007\033]711;artsie\007
-URxvt.keysym.M-C-3: command:\033]710;lucidasanstypewriter-10\007\033]711;lucidasanstypewriter-10\007
-URxvt.keysym.M-C-4: command:\033]710;xft:Liberation Mono:style=Regular\007\033]711;xft:Liberation Mono:style=Regular\007
-URxvt.keysym.M-C-5: command:\033]710;xft:Bitstream Vera Sans Mono:style=Bold\007\033]711;xft:Bitstream Vera Sans Mono:style=Bold\007
-URxvt.keysym.M-C-6: command:\033]710;12x24\007\033]711;12x24\007
-URxvt.keysym.M-C-0: command:\033]710;lucidasanstypewriter-24\007\033]711;lucidasanstypewriter-24\007
-
-URxvt.geometry: 110x32
-URxvt.saveLines: 50000
-URxvt.scrollstyle: rxvt
-URxvt.secondaryScroll: true
-!URxvt.font: 9x15
-!URxvt.font: 9x15bold
-
-!Xft*dpi: 100
-Xft*antialias: true
-Xft.antialias: rgba
-Xft*hinting: true
-Xft*hintstyle: hintfull
-Xft*rgba: rgb
-
-URxvt.foreground: #FFFFFF
-URxvt.background: #212121
-URxvt.color0: #2E3436
-URxvt.color1: #CC0000
-URxvt.color2: #4E9A06
-URxvt.color3: #C4A000
-URxvt.color4: #3465A4
-URxvt.color5: #75507B
-URxvt.color6: #06989A
-URxvt.color7: #D3D7CF
-URxvt.color8: #555753
-URxvt.color9: #EF2929
-URxvt.color10: #8AE234
-URxvt.color11: #FCE94F
-URxvt.color12: #729FCF
-URxvt.color13: #AD7FA8
-URxvt.color14: #34E2E2
-URxvt.color15: #EEEEEC
View
46 dotfiles/.bashrc
@@ -49,16 +49,42 @@ alias memrss='while read command percent rss; do if [[ "${command}" != "COMMAND"
alias pg='echo "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND" && ps aux | grep --color=auto'
alias dmesg="dmesg | sed '/UFW/d'"
-start() {
- sudo rc.d start $1
-}
-
-restart() {
- sudo rc.d restart $1
-}
-
-stop() {
- sudo rc.d stop $1
+if [ -z $(dmesg | grep "Kernel command line"|grep systemd) ]; then # not using systemd
+ start() {
+ sudo rc.d start $1
+ }
+
+ restart() {
+ sudo rc.d restart $1
+ }
+
+ stop() {
+ sudo rc.d stop $1
+ }
+else
+ start() {
+ sudo systemctl start $1.service
+ }
+
+ restart() {
+ sudo systemctl restart $1.service
+ }
+
+ stop() {
+ sudo systemctl stop $1.service
+ }
+
+ enable() {
+ sudo systemctl enable $1.service
+ }
+
+ status() {
+ systemctl status $1.service
+ }
+fi
+
+disable() {
+ sudo systemctl disable $1.service
}
bi () {
View
1 dotfiles/.xinitrc
@@ -1,4 +1,5 @@
#!/bin/sh
+[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
exec ck-launch-session startxfce4
#exec ck-launch-session gnome-session
#enlightenment-session

0 comments on commit 63fa4be

Please sign in to comment.
Something went wrong with that request. Please try again.