https://github.com/dhdcc/autodnd
A small POSIX compliant shell script that automatically disables and re-enables notifications when a window is in full screen mode on Hyprland.
https://github.com/dhdcc/autodnd
bash hyprland linux notifications script
Last synced: about 2 months ago
JSON representation
A small POSIX compliant shell script that automatically disables and re-enables notifications when a window is in full screen mode on Hyprland.
- Host: GitHub
- URL: https://github.com/dhdcc/autodnd
- Owner: DHDcc
- Created: 2025-02-17T05:52:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-12T19:53:16.000Z (over 1 year ago)
- Last Synced: 2025-10-06T14:47:51.006Z (9 months ago)
- Topics: bash, hyprland, linux, notifications, script
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoDnD
A small POSIX compliant shell script that automatically disables and re-enables notifications when a window is in full screen mode on Hyprland.
## Installation
### Dependencies:
- hyprland
- jq
- socat
- swaync
### Installation script:
> [!WARNING]
> **Always** read and understand scripts before executing them!
```
curl -fsSL https://raw.githubusercontent.com/DHDcc/autodnd/refs/heads/main/install.sh | sh
```
### Manually install it:
#### 1) Clone the repo:
```
$ git clone https://github.com/DHDcc/autodnd.git
```
#### 2) Copy the files:
```
$ cd autodnd
$ chmod u+x src/autodnd
$ mkdir -p ~/.local/bin ~/.config/systemd/user
$ cp src/autodnd ~/.local/bin
$ cp systemd/autodnd.service ~/.config/systemd/user
```
#### 3.1) Enable and start the Systemd service:
```
$ systemctl --user daemon-reload
$ systemctl --user enable --now autodnd.service
```
OR
#### 3.2) Use ```exec-once``` in your ```hyprland.conf``` file:
```
exec-once = $HOME/.local/bin/autodnd
```