Skip to content

Commit

Permalink
Minor fix for usage.md
Browse files Browse the repository at this point in the history
  • Loading branch information
clsty committed Feb 27, 2024
1 parent 807cd27 commit 2a84d7b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/content/docs/en/i-i/02.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Press `Super` or `Super`+`Tab` to open.
- Brightness: Scroll top-left corner
- Launcher: Middle-click workspace widget
- Virtual keyboard: Right-click workspace widget
- Copy text in notification: Click and hold for around 800ms (reference: [#224](https://github.com/end-4/dots-hyprland/issues/224#issuecomment-1923706599))


# Workspace Groups

Expand Down Expand Up @@ -129,9 +131,6 @@ However, we have managed to reduce the complexity of some common configurations,
:::note
For configs that are not limited to AGS, see the "Misc" section.
:::
## Copy text in notification
Click and hold for around 800ms (reference: [#224](https://github.com/end-4/dots-hyprland/issues/224#issuecomment-1923706599))

## Set city for weather widget
The city is detected by `curl ipinfo.io` by default, or readed from the env var `$AGS_WEATHER_CITY` if set.

Expand All @@ -155,6 +154,14 @@ available=$(echo "$disk_info" | awk 'NR==2 {print $4}')
total=$(echo "$disk_info" | awk 'NR==2 {print $2}')
echo "$available/$total"
```
:::tip
The example is written as easy to read and modify.
However, same functionality can be achieved in 2 lines:
```bash title="~/.cache/ags/user/scripts/custom-module-poll.sh"
#!/bin/bash
LANG=C df -h / | awk 'NR==2 {printf "%.0fG/%.0fT\n", $4, $2}'
```
:::
Remember to set execution permission:
```bash
chmod +x ~/.cache/ags/user/scripts/*.sh
Expand Down

0 comments on commit 2a84d7b

Please sign in to comment.