commit 6bbff0b0285053110462382a4220f30ec6f95d8e
parent 32472b2c725fed1f65d6a0c3a3bd2fccd0a29aa5
Author: Peter <peter@minskio.co.uk>
Date: Mon, 16 Nov 2026 16:15:46 +0000
Fullscreen only used once, so inline it
Diffstat:
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/functions.sh b/functions.sh
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
-# all functions assume you're running in fullscreen on a 1920x1080 monitor
-
# currentpos: hyprctl cursorpos
# currentpos: slurp
@@ -22,11 +20,6 @@ function hctl() {
hyprctl "$@" >/dev/null
}
-function fullscreen() {
- target_class="org-eclipse-jdt-internal-jarinjarloader-JarRsrcLoader"
- hctl dispatch "hl.dsp.window.fullscreen({ window = 'class:$target_class', action = 'set' })"
-}
-
function left_click() {
msleep 50 100
hctl dispatch 'hl.dsp.send_key_state({ mods = 0, key = "mouse:272", state = "down" })' >/dev/null
@@ -147,7 +140,8 @@ function startup() {
sleep 0.3
fi
# fullscreen client
- fullscreen
+ target_class="org-eclipse-jdt-internal-jarinjarloader-JarRsrcLoader"
+ hctl dispatch "hl.dsp.window.fullscreen({ window = 'class:$target_class', action = 'set' })"
# disable mouse cursor hiding
hctl eval 'hl.config({ ["cursor.inactive_timeout"] = 0 })'
printf 'Press Super+F12 to quit.\n'