diff --git a/README.org b/README.org index 0f3f770..5b53922 100644 --- a/README.org +++ b/README.org @@ -1111,7 +1111,7 @@ scroll-down = "/home/sravan/.scripts/playerctl.sh --prev" ***** Script -#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/scripts/get-media-playing.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle polybar/scripts/get-media-playing.sh mediaStatus=$(playerctl --player=playerctld metadata 2>&1) if [[ "$mediaStatus" == "No player could handle this command" ]]; then @@ -1300,7 +1300,7 @@ click-right = alacritty --hold -e paru -Syu & ***** Script -#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/scripts/updates-pacman-aurhelper.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle polybar/scripts/updates-pacman-aurhelper.sh if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then updates_arch=0 fi @@ -1556,7 +1556,7 @@ click-right = "/home/sravan/.scripts/dunst.sh --history" ***** Script -#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/scripts/dunst-notification-status.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle polybar/scripts/dunst-notification-status.sh # Check if dunst is running if pgrep -x "dunst" > /dev/null then @@ -1576,7 +1576,7 @@ echo $status_icon *** Launch Script -#+BEGIN_SRC shell :shebang #!/bin/bash :tangle polybar/launch.sh +#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle polybar/launch.sh BAR="mybar" CONFIG="~/.xmonad/polybar/config.ini" NUM_MONITORS=0 diff --git a/polybar/launch.sh b/polybar/launch.sh index b04110a..dd691bc 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash BAR="mybar" CONFIG="~/.xmonad/polybar/config.ini" NUM_MONITORS=0 diff --git a/polybar/scripts/dunst-notification-status.sh b/polybar/scripts/dunst-notification-status.sh index 244a0a2..89191b5 100755 --- a/polybar/scripts/dunst-notification-status.sh +++ b/polybar/scripts/dunst-notification-status.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if dunst is running if pgrep -x "dunst" > /dev/null then diff --git a/polybar/scripts/get-media-playing.sh b/polybar/scripts/get-media-playing.sh index 756686b..d2730f4 100755 --- a/polybar/scripts/get-media-playing.sh +++ b/polybar/scripts/get-media-playing.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash mediaStatus=$(playerctl --player=playerctld metadata 2>&1) if [[ "$mediaStatus" == "No player could handle this command" ]]; then diff --git a/polybar/scripts/updates-pacman-aurhelper.sh b/polybar/scripts/updates-pacman-aurhelper.sh index e312ec2..308cb3e 100755 --- a/polybar/scripts/updates-pacman-aurhelper.sh +++ b/polybar/scripts/updates-pacman-aurhelper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then updates_arch=0 fi