diff --git a/pages/Configuring/Expanding-functionality.md b/pages/Configuring/Expanding-functionality.md index 48ba0d0..6c12252 100644 --- a/pages/Configuring/Expanding-functionality.md +++ b/pages/Configuring/Expanding-functionality.md @@ -13,7 +13,7 @@ This bash script will change the outer gaps to 20 if the currently focused monitor is DP-1, and 30 otherwise. ```bash -#!/bin/bash +#!/usr/bin/env bash function handle { if [[ ${1:0:10} == "focusedmon" ]]; then diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index 49bd285..17944eb 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -199,7 +199,7 @@ they might launch before that has happened. In such cases, a script like this: ```bash -#!/bin/bash +#!/usr/bin/env bash sleep 4 killall -e xdg-desktop-portal-wlr killall xdg-desktop-portal diff --git a/pages/Useful Utilities/Hyprland-desktop-portal.md b/pages/Useful Utilities/Hyprland-desktop-portal.md index c64bf91..68eed3d 100644 --- a/pages/Useful Utilities/Hyprland-desktop-portal.md +++ b/pages/Useful Utilities/Hyprland-desktop-portal.md @@ -98,7 +98,7 @@ XDPH will work on other wlroots compositors, but features available only on Hypr For a nuclear option, you can use this script and `exec-once` it: ```sh -#!/bin/bash +#!/usr/bin/env bash sleep 1 killall -e xdg-desktop-portal-hyprland killall -e xdg-desktop-portal-wlr diff --git a/pages/Useful Utilities/Status-Bars.md b/pages/Useful Utilities/Status-Bars.md index 03ab7e2..69e3703 100644 --- a/pages/Useful Utilities/Status-Bars.md +++ b/pages/Useful Utilities/Status-Bars.md @@ -119,7 +119,7 @@ This widget displays a list of workspaces 1-10. Each workspace can be clicked on ### `~/.config/eww/scripts/change-active-workspace` ```sh -#! /bin/bash +#!/usr/bin/env bash function clamp { min=$1 max=$2 @@ -156,7 +156,7 @@ socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | ### `~/.config/eww/scripts/get-workspaces` ```sh -#!/bin/bash +#!/usr/bin/env bash spaces (){ WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')