vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d84d98b296b73d8e32883f1eb7103c60c9d8ec34
parent 54b40052f722b1a474b0de5dde1eb7cf5fb7599c
Author: Cem Keylan <warc1998@gmail.com>
Date:   Thu, 23 May 2019 14:22:03 +0300

Appropriate Shebangs

Diffstat:
Mbin/cfi | 2+-
Mbin/cfp | 2+-
Mbin/nightmodetoggle | 2+-
Mbin/polyrestart | 2+-
Dbin/testt | 50--------------------------------------------------
Mbin/todorm | 2+-
6 files changed, 5 insertions(+), 55 deletions(-)

diff --git a/bin/cfi b/bin/cfi @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo $HOME/.config/i3/config | entr -p -n /usr/bin/i3 restart &>/dev/null & vim $HOME/.config/i3/config diff --git a/bin/cfp b/bin/cfp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh echo $HOME/.config/polybar/config | entr -p -n /home/cem/bin/polyrestart &>/dev/null & vim $HOME/.config/polybar/config diff --git a/bin/nightmodetoggle b/bin/nightmodetoggle @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ -e $HOME/.night ] then diff --git a/bin/polyrestart b/bin/polyrestart @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [[ $(ps aux) == *polybar* ]] then diff --git a/bin/testt b/bin/testt @@ -1,50 +0,0 @@ -#!/bin/sh - -if [ -e $HOME/.night ] -then - case $1 in - "click") - NIGHT=$(tail -n -1 $HOME/.night) - if [ $NIGHT = 'NIGHT=1' ] - then - NIGHT='NIGHT=0' - else - NIGHT='NIGHT=1' - fi - echo 'CLICK=1' > $HOME/.night - echo $NIGHT >> $HOME/.night - ;; - "disable") - NIGHT=$(tail -n -1 $HOME/.night) - echo 'CLICK=0' > $HOME/.night - echo $NIGHT >> $HOME/.night - nightmodetoggle cron - ;; - "cron") - if [ $(head -n +1 $HOME/.night) = "CLICK=1" ] - then - exit - else - if [ `date +%H%M` -gt "1900" ] || [ `date +%H%M` -lt "0600" ] - then - echo $'CLICK=0\nNIGHT=1' > $HOME/.night - else - echo $'CLICK=0\nNIGHT=0' > $HOME/.night - fi - fi - ;; - *) - echo $'Please enter an argument!\ne.g.\nclick\ndisable\ncron' - exit - ;; - esac - if [ $(tail -n -1 $HOME/.night) = "NIGHT=1" ] - then - feh --bg-fill --randomize $HOME/Pictures/Wallpapers/Night/* - else - feh --bg-fill --randomize $HOME/Pictures/Wallpapers/Morning/* - fi -else - touch $HOME/.night - echo $'CLICK=0\nNIGHT=0' > $HOME/.night -fi diff --git a/bin/todorm b/bin/todorm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Removes the first line of todo.txt