Re: [i3] [new feature proposition] Add an "toggle mode" for key binding.

2014-03-14 Thread Michael Stapelberg
Hi Taras,

Taras Koroliuk  writes:
> For example I want to switch between two border styles (normal and 1pixel)
> for window by pressing one key combination.
>
> Proposal syntax for new addition:
>
>bindsym $mod+t border normal | border 1pixel
>
> What do you think about this?
There already is the “border toggle” command.

I don’t think there is much value in having a generic toggle command as
you propose. The commands for which toggling makes sense already have
toggling implemented.

In case you need a more advanced toggle logic, you can always use the
IPC interface:
http://build.i3wm.org/docs/ipc.html

-- 
Best regards,
Michael


[i3] [new feature proposition] Add an "toggle mode" for key binding.

2014-03-13 Thread Taras Koroliuk
Hello.
There are very handy back-and-forth switching ability among workspace in i3.

I would like to propose you an idea of "toggle mode" for a key binding.

Suppose I want to switch among two actions by pressing one keybiniding.

For example I want to switch between two border styles (normal and 1pixel)
for window by pressing one key combination.

Proposal syntax for new addition:

   bindsym $mod+t border normal | border 1pixel

What do you think about this?

-- 
Taras Koroliuk | Software developer
GlobalLogic
M +380959142355  S taraskoroljuk