add wide zoom
This commit is contained in:
parent
acab4ef1e3
commit
eec0d7e3b7
|
@ -37,6 +37,12 @@
|
||||||
command = "${extra.eyezoom} tiktok";
|
command = "${extra.eyezoom} tiktok";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hotkeys.commands."wide" = {
|
||||||
|
name = "wide zoom";
|
||||||
|
key = "Alt+Home";
|
||||||
|
command = "${extra.eyezoom} wide";
|
||||||
|
};
|
||||||
|
|
||||||
hotkeys.commands."cpypsk" = {
|
hotkeys.commands."cpypsk" = {
|
||||||
name = "Launch cpypsk";
|
name = "Launch cpypsk";
|
||||||
key = "Meta+p";
|
key = "Meta+p";
|
||||||
|
|
|
@ -9,15 +9,20 @@ offy=0
|
||||||
HFACTOR=10
|
HFACTOR=10
|
||||||
WFACTOR=4
|
WFACTOR=4
|
||||||
|
|
||||||
|
WIDEDIV=2
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
eye)
|
eye)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R 'Minecraft*' -e 0,$offx,$(( offy - (H * HFACTOR / 2) + (H / 2) )),$W,$((H*HFACTOR))
|
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$(( offy - (H * HFACTOR / 2) + (H / 2) )),$W,$((H*HFACTOR))
|
||||||
;;
|
;;
|
||||||
tiktok)
|
tiktok)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R 'Minecraft*' -e 0,$(( offx - ((W/WFACTOR)/2) + (W/2))),$offy,$((W/WFACTOR)),$H
|
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - ((W/WFACTOR)/2) + (W/2))),$offy,$((W/WFACTOR)),$H
|
||||||
|
;;
|
||||||
|
wide)
|
||||||
|
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$(( offy - ((H / WIDEDIV) / 2) + (H / 2) )),$W,$((H/WIDEDIV))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R 'Minecraft*' -e 0,$offx,$offy,$W,$H
|
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$offy,$W,$H
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user