ソースを参照

Add script to init conky

Andrew Swistak 11 年 前
コミット
f2306641bc
4 ファイル変更10 行追加2 行削除
  1. 1 0
      bin/manage_dotfiles.sh
  2. 1 1
      config/awesome/rc.lua
  3. 1 1
      config/openbox/autostart
  4. 7 0
      conkyinit

+ 1 - 0
bin/manage_dotfiles.sh

@@ -60,6 +60,7 @@ install_dotfiles() {
     'Xmodmap'
     'Xresources'
     'xbindkeysrc'
+    'conkyinit'
     'config/conky'
     'config/openbox'
     'config/tint2'

+ 1 - 1
config/awesome/rc.lua

@@ -44,7 +44,7 @@ end
 -- }}}
 
 awful.util.spawn('compton')
-awful.util.spawn_with_shell('killall conky 2>/dev/null 1>&2; conky -c ' .. os.getenv('HOME') .. '/.config/conky/conkyrc')
+awful.util.spawn_with_shell(os.getenv('HOME') .. '/.conkyinit --restart >/dev/null 2>&1')
 awful.util.spawn('pidgin')
 
 -- {{{ Variable definitions

+ 1 - 1
config/openbox/autostart

@@ -2,4 +2,4 @@ $HOME/.fehbg &
 tint2 &
 (sleep 2 && pidgin) &
 (sleep 2 && compton_openbox --toggle) &
-(sleep 2 && conky -c $HOME/.config/conky/conkyrc) &
+(sleep 2 && $HOME/.conkyinit) &

+ 7 - 0
conkyinit

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ "$1" = "--restart" ]; then
+  killall conky
+fi
+
+conky -d -c $HOME/.config/conky/conkyrc