From 61f33ba7ee61432f5c5a5b5ff6d514d7495d37f6 Mon Sep 17 00:00:00 2001 From: Jayrah DeVore <7108859+jayrahdevore@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:38:37 -0500 Subject: [PATCH] Fix shebangs for NixOS users There are a couple of places in the documentation where `/bin/bash` are referenced (this doesn't exist on NixOS). For compatibility, change these to `/usr/bin/env bash`. Leave `/bin/sh` intact as it isn't an issue. --- pages/Configuring/Expanding-functionality.md | 2 +- pages/FAQ/_index.md | 2 +- pages/Useful Utilities/Hyprland-desktop-portal.md | 2 +- pages/Useful Utilities/Status-Bars.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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')