You are not logged in.

#1 2010-12-13 04:03:10

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Creating a custom icon script help

I have a small screen, so sometimes menus and such are not fully usable as they are bigger than my screen. I use this command to make an artificially bigger screen:

 xrandr --fb 1280x750 --output LVDS1 --scale 1.25x1.25

After I do thing I needed, I switch back to the normal resolution by running a complementary script.
Since I only need this once in a while, I was hoping to create a button on my panel which I could click to switch to this resolution and then click again to go back to my original resolution. The function would follow the same concept as the fusion-icon which lets you switch between compiz and metacity.
I can create an icon that will perform the command above, and one that will make the resolution normal again:

 xrandr --fb 1024x600 --output LVDS1 --scale 1.00x1.00

Can anyone guide me in how to make a single button that will perform both?

Thanks!

Offline

#2 2010-12-16 01:38:02

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: Creating a custom icon script help

I guess this won't work then, seeing as no one knew how to do it?

Offline

Board footer

Powered by FluxBB