dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit dabe5f68939087a5631cd283b0a69276ba06a682
parent edea266861ffbb97bfc02d189db81ba964ae4d5d
Author: Cem Keylan <warc1998@gmail.com>
Date:   Fri, 24 May 2019 09:51:50 +0300

Fix Bashisms

Diffstat:
Mbin/cfi | 4++--
Mbin/cfp | 4++--
Mbin/nightmodetoggle | 3++-
Mbin/yousure | 2+-
Mbin/yousurereb | 2+-
5 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/bin/cfi b/bin/cfi @@ -1,6 +1,6 @@ #!/bin/sh -echo $HOME/.config/i3/config | entr -p -n /usr/bin/i3 restart &>/dev/null & +echo $HOME/.config/i3/config | entr -p -n /usr/bin/i3 restart >/dev/null 2>&1 & vim $HOME/.config/i3/config -sleep 0.5 +sleep 1 kill $(pidof entr) diff --git a/bin/cfp b/bin/cfp @@ -1,6 +1,6 @@ #!/bin/sh -echo $HOME/.config/polybar/config | entr -p -n /home/cem/bin/polyrestart &>/dev/null & +echo $HOME/.config/polybar/config | entr -p -n /home/cem/bin/polyrestart >/dev/null 2>&1 & vim $HOME/.config/polybar/config -sleep 0.5 +sleep 1 kill $(pidof entr) diff --git a/bin/nightmodetoggle b/bin/nightmodetoggle @@ -18,7 +18,8 @@ then NIGHT=$(tail -n -1 $HOME/.night) echo 'CLICK=0' > $HOME/.night echo $NIGHT >> $HOME/.night - nightmodetoggle cron + $HOME/bin/nightmodetoggle cron + exit ;; "cron") if [ $(head -n +1 $HOME/.night) = "CLICK=1" ] diff --git a/bin/yousure b/bin/yousure @@ -1,6 +1,6 @@ #!/bin/sh -if [ $(echo $'No\nYes' | dmenu -p 'Are you sure you want to shutdown?') = 'Yes' ] +if [ $(printf 'No\nYes' | dmenu -p 'Are you sure you want to shutdown?') = 'Yes' ] then shutdown -P now else diff --git a/bin/yousurereb b/bin/yousurereb @@ -1,6 +1,6 @@ #!/bin/sh -if [ $(echo $'No\nYes' | dmenu -p 'Are you sure you want to reboot?') = 'Yes' ] +if [ $(printf 'No\nYes' | dmenu -p 'Are you sure you want to reboot?') = 'Yes' ] then reboot else