You are not logged in.

#1 2019-01-15 11:53:49

S7.L
Member
Registered: 2018-09-16
Posts: 338

Ruby Openbox Tiling Script

Has anyone tried this with success, what did you think of it?

https://github.com/xhsdf/rtile

Im about to give it a try. Just getting it installed and configured now.

Offline

#2 2019-01-15 17:08:15

tynman
Member
Registered: 2015-10-13
Posts: 83

Re: Ruby Openbox Tiling Script

Sorry, no. I have not heard of rtile, but it looks interesting. Maybe you're its first user (from the Bunsenlabs universe) smile. Let us know how it goes for you....

Offline

#3 2019-01-17 15:41:57

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Ruby Openbox Tiling Script

^ no good for me tynman, seems i need to look into the below issue.

https://github.com/xhsdf/pxdo/issues/2

I managed to get this working, ill try and explain it tommorow.

Last edited by S7.L (2019-01-18 12:04:03)

Offline

#4 2019-01-17 18:54:57

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,887
Website

Re: Ruby Openbox Tiling Script

I did test it a while ago and now retesting, did a softlink named 'tile' in ~bin, so i can have this avail from cli, also patched this passive commands

tile --all
tile --cycle
tile --swap

into openbox menu. That way it kinda functions as 'sometimes I'd like to tile' and as an expose sort of thing.
rtile.th.png

One could also add

tile --all-auto
killall tile

for the always active version.

p.s. Slightly changed ~/.config/rtile/rtile.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings>
	<gaps top="46" bottom="36" left="6" right="6" windows_x="6" windows_y="6"/>
	<columns max_size_main="2" max_size="4" max_count="2"/>

	<!--<workspace id="<id>" median="0.5" reverse_x="true|false" reverse_y="true|false"/>-->

	<!--<window class="<class>" priority="high|low" floating="true|false" fake_windows="1|2|3|..."/>-->
	<column_config windows="1" workspace="all" column_sizes="1"/>
	<column_config windows="2" workspace="all" column_sizes="1, 1"/>
	<column_config windows="3" workspace="all" column_sizes="1, 2"/>
	<column_config windows="4" workspace="all" column_sizes="1, 3"/>
	<column_config windows="5" workspace="all" column_sizes="2, 3"/>
	<column_config windows="6" workspace="all" column_sizes="2, 4"/>
	<column_config windows="7" workspace="all" column_sizes="1, 2, 4"/>
</settings>

Last edited by brontosaurusrex (2019-01-17 19:17:18)

Offline

#5 2019-01-18 11:58:27

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Ruby Openbox Tiling Script

^ that pretty nifty, cheers.

I had some issues as i just installed devuan stable openbox version, so pretty much the same as debian stable as far as most packaging goes and python xlib is apparently woefully outdated in stable so that needed an update...

Package: python-xlib (0.14+20091101-5) = https://packages.debian.org/stretch/python-xlib

Second was i was calling $HOME/bin twice so i think that cancelled out any executables in that folder, otherwise when i figured that out it was ok and got it going.

For some reason my WIN key doesnt work as mod key and the ALT key is modkey, will have to change that.

This is what goes into the rc.xml of openbox to get it going...

 <!-- RTILE keybinds START -->    
<keybind key="C-A-KP_8">
	<action name="Execute">
		<command>rtile.rb --split-up</command>
	</action>
</keybind>
<keybind key="C-A-KP_2">
	<action name="Execute">
		<command>rtile.rb --split-down</command>
	</action>
</keybind>
<keybind key="C-A-KP_4">
	<action name="Execute">
		<command>rtile.rb --split-left</command>
	</action>
</keybind>
<keybind key="C-A-KP_6">
	<action name="Execute">
		<command>rtile.rb --split-right</command>
	</action>
</keybind>
<keybind key="C-A-KP_0">
	<action name="Execute">
		<command>rtile.rb --swap</command>
	</action>
</keybind>
<keybind key="C-A-KP_5">
	<action name="Execute">
		<command>rtile.rb --next-monitor</command>
	</action>
</keybind>

<keybind key="S-A-KP_8">
	<action name="Execute">
		<command>rtile.rb --grow-up</command>
	</action>
</keybind>
<keybind key="S-W-KP_2">
	<action name="Execute">
		<command>rtile.rb --grow-down</command>
	</action>
</keybind>
<keybind key="S-A-KP_4">
	<action name="Execute">
		<command>rtile.rb --grow-left</command>
	</action>
</keybind>
<keybind key="S-A-KP_6">
	<action name="Execute">
		<command>rtile.rb --grow-right</command>
	</action>
</keybind>
<keybind key="S-A-KP_0">
	<action name="Execute">
		<command>rtile.rb --cycle</command>
	</action>
</keybind>
<keybind key="S-A-KP_5">
	<action name="Execute">
		<command>rtile.rb --cycle-monitors</command>
	</action>
</keybind>

<keybind key="A-KP_8">
	<action name="Execute">
		<command>rtile.rb t</command>
	</action>
</keybind>
<keybind key="A-KP_5">
	<action name="Execute">
		<command>rtile.rb</command>
	</action>
</keybind>
<keybind key="A-KP_2">
	<action name="Execute">
		<command>rtile.rb b</command>
	</action>
</keybind>
<keybind key="A-KP_7">
	<action name="Execute">
		<command>rtile.rb tl</command>
	</action>
</keybind>
<keybind key="A-KP_4">
	<action name="Execute">
		<command>rtile.rb l</command>
	</action>
</keybind>
<keybind key="A-KP_1">
	<action name="Execute">
		<command>rtile.rb bl</command>
	</action>
</keybind>
<keybind key="W-KP_9">
	<action name="Execute">
		<command>rtile.rb tr</command>
	</action>
</keybind>
<keybind key="A-KP_6">
	<action name="Execute">
		<command>rtile.rb r</command>
	</action>
</keybind>
<keybind key="A-KP_3">
	<action name="Execute">
		<command>rtile.rb br</command>
	</action>
</keybind>
<keybind key="C-KP_0">
	<action name="Execute">
		<command>rtile.rb --binary</command>
	</action>
</keybind>
 <!-- RTILE Keybinds END -->

Last edited by S7.L (2019-01-18 12:00:15)

Offline

Board footer

Powered by FluxBB