mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-03 23:29:23 +00:00
20 lines
591 B
Bash
Executable File
20 lines
591 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Exit early if screensave is already running
|
|
pgrep -f "alacritty --class Screensaver" && exit 0
|
|
|
|
focused=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')
|
|
|
|
for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
|
|
hyprctl dispatch focusmonitor $m
|
|
hyprctl dispatch exec -- \
|
|
alacritty --class Screensaver \
|
|
-o 'colors.primary.background="#000000"' \
|
|
-o 'colors.cursor.cursor="#000000"' \
|
|
-o 'font.size=18' \
|
|
-o 'window.opacity=1' \
|
|
-e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver
|
|
done
|
|
|
|
hyprctl dispatch focusmonitor $focused
|