Trying to create a toggled windowsize keybind

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
jojotheslug
GamingTools Subscriber
Posts: 25
Joined: Sat Nov 18, 2006 9:25 pm

Trying to create a toggled windowsize keybind

Post by jojotheslug » Wed Oct 23, 2013 7:08 pm

Hey There Y'all!

What I'd like to do is create a keybind which toggles a session between to different windowsizes. I know I could put these commands in my Session Startup list:

Code: Select all

bind -release window800 Ctrl+Alt+Shift+Q "Windowsize -viewable 800x600"
bind -release window640 Ctrl+Alt+Shift+W "Windowsize -viewable 640x498"
But is there any way I could have the Crtl+Alt+Shift+W toggle between the two window sizes?

I guess I could right a script that's maybe atom where I set a boolean and then depending on the boolean sets the window says to one of two sizes, but that just seems overly complicated...

As always, any advice is would be awesome!

Thanks in advance!
-Jojo

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Wed Oct 23, 2013 7:18 pm

Code: Select all

alias resizeme windowsize1
bind -release windowtoggle ctrl+alt+shift+q resizeme
alias windowsize1 "windowsize -viewable 800x600;alias resizeme windowsize2"
alias windowsize2 "windowsize -viewable 640x498;alias resizeme windowsize1"
Enjoy :P

jojotheslug
GamingTools Subscriber
Posts: 25
Joined: Sat Nov 18, 2006 9:25 pm

Booyah!

Post by jojotheslug » Wed Oct 23, 2013 7:36 pm

Thanks Lax!

Just tested it and it does exactly what I needed!

Thanks a ton!
-J

jojotheslug
GamingTools Subscriber
Posts: 25
Joined: Sat Nov 18, 2006 9:25 pm

Booyah 2!

Post by jojotheslug » Wed Oct 23, 2013 7:43 pm

Image

Post Reply