mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-12-22 17:49:48 +01:00
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.
This commit is contained in:
parent
def87305b6
commit
61f33ba7ee
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue