fix(eww -> scripts): Fixed shebangs

This commit is contained in:
GaspardCulis 2024-09-20 18:45:02 +02:00
parent 0d94597777
commit 995aae5ff8
8 changed files with 10 additions and 8 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env dash
info (){ info (){
power=$(bluetoothctl show | grep Powered | awk '{print $2}' | sed 's/yes/on/g; s/no/off/g') power=$(bluetoothctl show | grep Powered | awk '{print $2}' | sed 's/yes/on/g; s/no/off/g')

View file

@ -1,4 +1,4 @@
#!/bin/dash #!/usr/bin/env dash
print_state() { print_state() {
case "$1" in case "$1" in

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env dash
info (){ info (){
title=$(playerctl metadata xesam:title 2> /dev/null) title=$(playerctl metadata xesam:title 2> /dev/null)

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
volume (){ volume (){
vol=$(pamixer --get-volume-human) vol=$(pamixer --get-volume-human)

View file

@ -1,4 +1,5 @@
#!/bin/dash #!/usr/bin/env dash
function clamp { function clamp {
min=$1 min=$1
max=$2 max=$2

View file

@ -1,4 +1,4 @@
#!/bin/dash #!/usr/bin/env dash
spaces (){ spaces (){
hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)' hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)'

View file

@ -1,4 +1,4 @@
#!/bin/dash #!/usr/bin/env dash
profile="$(powerprofilesctl get)" profile="$(powerprofilesctl get)"

View file

@ -1,4 +1,5 @@
#!/bin/dash #!/usr/bin/env dash
refresh_rate=$(hyprctl -j monitors | jq '.[0].refreshRate | round') refresh_rate=$(hyprctl -j monitors | jq '.[0].refreshRate | round')
if [ "$1" = "toggle" ]; then if [ "$1" = "toggle" ]; then