diff --git a/bar/eww/scripts/get-bluetooth-info b/bar/eww/scripts/get-bluetooth-info index 1e128b2..77a5c4a 100755 --- a/bar/eww/scripts/get-bluetooth-info +++ b/bar/eww/scripts/get-bluetooth-info @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env dash info (){ power=$(bluetoothctl show | grep Powered | awk '{print $2}' | sed 's/yes/on/g; s/no/off/g') diff --git a/bar/eww/scripts/get-connectivity b/bar/eww/scripts/get-connectivity index 66ee186..8009206 100755 --- a/bar/eww/scripts/get-connectivity +++ b/bar/eww/scripts/get-connectivity @@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env dash print_state() { case "$1" in diff --git a/bar/eww/scripts/get-music-info b/bar/eww/scripts/get-music-info index 8aa6501..b129031 100755 --- a/bar/eww/scripts/get-music-info +++ b/bar/eww/scripts/get-music-info @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env dash info (){ title=$(playerctl metadata xesam:title 2> /dev/null) diff --git a/bar/eww/scripts/get-volume b/bar/eww/scripts/get-volume index f5706eb..1e6d202 100755 --- a/bar/eww/scripts/get-volume +++ b/bar/eww/scripts/get-volume @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh volume (){ vol=$(pamixer --get-volume-human) diff --git a/bar/eww/scripts/hypr/change-active-workspace b/bar/eww/scripts/hypr/change-active-workspace index 88f2dcf..ea811f2 100755 --- a/bar/eww/scripts/hypr/change-active-workspace +++ b/bar/eww/scripts/hypr/change-active-workspace @@ -1,4 +1,5 @@ -#!/bin/dash +#!/usr/bin/env dash + function clamp { min=$1 max=$2 diff --git a/bar/eww/scripts/hypr/hyprstatus b/bar/eww/scripts/hypr/hyprstatus index 942500b..10dc401 100755 --- a/bar/eww/scripts/hypr/hyprstatus +++ b/bar/eww/scripts/hypr/hyprstatus @@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env dash spaces (){ hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)' diff --git a/bar/eww/scripts/power_profile b/bar/eww/scripts/power_profile index 955761b..5494bd7 100755 --- a/bar/eww/scripts/power_profile +++ b/bar/eww/scripts/power_profile @@ -1,4 +1,4 @@ -#!/bin/dash +#!/usr/bin/env dash profile="$(powerprofilesctl get)" diff --git a/bar/eww/scripts/refresh_rate b/bar/eww/scripts/refresh_rate index b523a28..cc02659 100755 --- a/bar/eww/scripts/refresh_rate +++ b/bar/eww/scripts/refresh_rate @@ -1,4 +1,5 @@ -#!/bin/dash +#!/usr/bin/env dash + refresh_rate=$(hyprctl -j monitors | jq '.[0].refreshRate | round') if [ "$1" = "toggle" ]; then