mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 04:35:59 +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.
|
monitor is DP-1, and 30 otherwise.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function handle {
|
function handle {
|
||||||
if [[ ${1:0:10} == "focusedmon" ]]; then
|
if [[ ${1:0:10} == "focusedmon" ]]; then
|
||||||
|
|
|
@ -199,7 +199,7 @@ they might launch before that has happened.
|
||||||
In such cases, a script like this:
|
In such cases, a script like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
sleep 4
|
sleep 4
|
||||||
killall -e xdg-desktop-portal-wlr
|
killall -e xdg-desktop-portal-wlr
|
||||||
killall xdg-desktop-portal
|
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:
|
For a nuclear option, you can use this script and `exec-once` it:
|
||||||
```sh
|
```sh
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
sleep 1
|
sleep 1
|
||||||
killall -e xdg-desktop-portal-hyprland
|
killall -e xdg-desktop-portal-hyprland
|
||||||
killall -e xdg-desktop-portal-wlr
|
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`
|
### `~/.config/eww/scripts/change-active-workspace`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#! /bin/bash
|
#!/usr/bin/env bash
|
||||||
function clamp {
|
function clamp {
|
||||||
min=$1
|
min=$1
|
||||||
max=$2
|
max=$2
|
||||||
|
@ -156,7 +156,7 @@ socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
|
||||||
### `~/.config/eww/scripts/get-workspaces`
|
### `~/.config/eww/scripts/get-workspaces`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
spaces (){
|
spaces (){
|
||||||
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
|
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
|
||||||
|
|
Loading…
Reference in a new issue