mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
feat: fullscreen for ghostty/kitty screensaver (#3510)
* feat: fullscreen for ghostty/kitty screensaver * feat: add ghostty screensaver config * Remove the extra two bottom lines as well --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@@ -23,7 +23,7 @@ while true; do
|
|||||||
--no-eol --no-restore-cursor random_effect &
|
--no-eol --no-restore-cursor random_effect &
|
||||||
|
|
||||||
while pgrep -x tte >/dev/null; do
|
while pgrep -x tte >/dev/null; do
|
||||||
if read -n 1 -t 3 || ! screensaver_in_focus; then
|
if read -n 1 -t 1 || ! screensaver_in_focus; then
|
||||||
exit_screensaver
|
exit_screensaver
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
|
|||||||
*ghostty*)
|
*ghostty*)
|
||||||
hyprctl dispatch exec -- \
|
hyprctl dispatch exec -- \
|
||||||
ghostty --class=org.omarchy.screensaver \
|
ghostty --class=org.omarchy.screensaver \
|
||||||
|
--config-file=~/.local/share/omarchy/default/ghostty/screensaver \
|
||||||
--font-size=18 \
|
--font-size=18 \
|
||||||
-e omarchy-cmd-screensaver
|
-e omarchy-cmd-screensaver
|
||||||
;;
|
;;
|
||||||
@@ -36,6 +37,7 @@ for m in $(hyprctl monitors -j | jq -r '.[] | .name'); do
|
|||||||
hyprctl dispatch exec -- \
|
hyprctl dispatch exec -- \
|
||||||
kitty --class=org.omarchy.screensaver \
|
kitty --class=org.omarchy.screensaver \
|
||||||
--override font_size=18 \
|
--override font_size=18 \
|
||||||
|
--override window_padding_width=0 \
|
||||||
-e omarchy-cmd-screensaver
|
-e omarchy-cmd-screensaver
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
3
default/ghostty/screensaver
Normal file
3
default/ghostty/screensaver
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
window-padding-x = 0
|
||||||
|
window-padding-y = 0
|
||||||
|
window-padding-color = "extend-always"
|
||||||
Reference in New Issue
Block a user