From 99c1afbd523b8e89a9697081741c5c77e4b48536 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 30 Jul 2014 15:32:27 +0900 Subject: [PATCH] xprograms: add lxpolkit entry --- setup.sh | 2 ++ xprograms | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index c6ffdcb..89d9103 100755 --- a/setup.sh +++ b/setup.sh @@ -12,6 +12,8 @@ __homelocal="$HOME/.local" __homevar="$HOME/.var" __dotfiles_dir_default="$HOME/10sr_dotfiles" +# TODO: how to give args to command? + ########################### # utils diff --git a/xprograms b/xprograms index c8bfb76..7a5c2d4 100755 --- a/xprograms +++ b/xprograms @@ -3,9 +3,9 @@ # Japanese IM settings are not included in this script. _feh(){ - test -f "$HOME/.fehbg" && - type feh >/dev/null 2>&1 && - sh "$HOME/.fehbg" + test -f "$HOME/.fehbg" && \ + type feh >/dev/null 2>&1 && \ + sh "$HOME/.fehbg" } _tint2(){ @@ -57,7 +57,7 @@ _xcompmgr(){ } _compton(){ - compton -b + (sleep 1s && compton -b) & } _saku(){ @@ -73,6 +73,10 @@ _nmapplet(){ (sleep 1s && nm-applet) & } +_lxpolkit(){ + (sleep 1s && /usr/lib/lxpolkit/lxpolkit) & +} + for p in $@ do _$p