diff --git a/bin/autogap b/bin/autogap index c460f27..161ba7e 100755 --- a/bin/autogap +++ b/bin/autogap @@ -1,6 +1,6 @@ -#!/bin/zsh +#!/bin/dash -if [ "$(pgrep -cx autogap)" -gt 1 ] ; then +if [ "$(pgrep -cx autogap)" -gt 1 ] ; then killall autogap && exit 0 else diff --git a/bin/bspcp b/bin/bspcp index 97bd71a..442603d 100755 --- a/bin/bspcp +++ b/bin/bspcp @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/dash i=1 case $1 in dsktp) # Add or remove a desktop diff --git a/bin/euclid_balancer b/bin/euclid_balancer index 644a787..d7b9e7c 100755 --- a/bin/euclid_balancer +++ b/bin/euclid_balancer @@ -1,6 +1,6 @@ -#!/bin/zsh +#!/bin/dash -if [ "$(pgrep -cx euclid_balancer)" -gt 1 ] ; then +if [ "$(pgrep -cx euclid_balancer)" -gt 1 ] ; then killall euclid_balancer && exit 0 else diff --git a/bin/run_once b/bin/run_once index 992aaf7..d8c2941 100755 --- a/bin/run_once +++ b/bin/run_once @@ -1,3 +1,3 @@ -#! /bin/bash +#!/bin/dash # Run program unless it's already running pgrep $@ > /dev/null || ($@ &) diff --git a/bin/toggle-run b/bin/toggle-run index 1dae3aa..e7af009 100755 --- a/bin/toggle-run +++ b/bin/toggle-run @@ -1,3 +1,3 @@ -#!/bin/zsh +#!/bin/dash pgrep -axf $1 >/dev/null && pkill -xf $1 || eval $1 & exit 0 diff --git a/bin/whid b/bin/whid index dd8b0b2..9b47818 100755 --- a/bin/whid +++ b/bin/whid @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/dash file="/tmp/.minimized" touch $file # By https://github.com/tatou-tatou @@ -45,14 +45,14 @@ dmenu) # Comment that line if you use vanilla dmenu. yPos=$((410-$linesDisplayed*10)) - + # Uncomment only one line with dmenu_cmd # If you use rofi dmenu_cmd="rofi -lines $linesDisplayed -dmenu -p Hidden:" - + # If you use dmenu, patched with eye candy # dmenu_cmd="dmenu -l 9 -x $left_shift -y $top_shift -w $bar_width -fn sans-11 -nb #201F1D -nf #eddec9 -sb #8F3724 -sf #EDDEC9 -p Hidden:" - + # If you use vanilla dmenu # dmenu_cmd="dmenu -b -i -l $linesDisplayed -p Hidden:"