update POC controller-based desktop config

This commit is contained in:
Iris Lightshard 2023-11-26 12:32:13 -07:00
parent 557263eaa6
commit 66dbb0a9d0
Signed by: Iris Lightshard
GPG key ID: F54E0D40695271D4
4 changed files with 335 additions and 38 deletions

View file

@ -1,25 +0,0 @@
vsync = "opengl"
unredir-if-possible = true
frame-opacity = 1
opacity-rule = [
"85:window_type *= 'menu'",
"85:window_type *= 'dock'",
"85:window_type *= 'tooltip'",
"85:window_type *= 'notif'",
"85:name = 'acme'",
"85:class_i *= 'rxvt'",
"85:id = 0x803752",
"85:id = 0x800258",
"85:id = 0x800254",
"85:id = 0x803756",
"85:id = 0x120025a"
];
shadow-exclude = [
"name = 'Notification'",
"name = 'dzen title'",
"window_type *= 'dock'",
"id = 0x120025a"
];

270
desktop.controller.amgp Normal file
View file

@ -0,0 +1,270 @@
<?xml version="1.0" encoding="UTF-8"?>
<gamecontroller configversion="19" appversion="3.3.4">
<!--The SDL name for a joystick is included for informational purposes only.-->
<sdlname>Afterglow Gamepad for PS3</sdlname>
<!--The Unique ID for a joystick is included for informational purposes only.-->
<uniqueID>0300d3b76f0e000011010000110100003695273</uniqueID>
<stickAxisAssociation index="2" xAxis="3" yAxis="4"/>
<stickAxisAssociation index="1" xAxis="1" yAxis="2"/>
<vdpadButtonAssociations index="1">
<vdpadButtonAssociation axis="0" button="12" direction="1"/>
<vdpadButtonAssociation axis="0" button="13" direction="4"/>
<vdpadButtonAssociation axis="0" button="14" direction="8"/>
<vdpadButtonAssociation axis="0" button="15" direction="2"/>
</vdpadButtonAssociations>
<names>
<controlstickname index="2">Stick 2</controlstickname>
<controlstickname index="1">Stick 1</controlstickname>
</names>
<sets>
<!-- main set is for general GUI operations -->
<set index="1">
<!-- right stick scrolls -->
<stick index="2">
<stickbutton index="7">
<slots>
<slot>
<code>6</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="5">
<slots>
<slot>
<code>5</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>7</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>4</code>
<mode>mousebutton</mode>
</slot>
</slots>
</stickbutton>
</stick>
<!-- left stick moves the mouse pointer -->
<stick index="1">
<stickbutton index="7">
<slots>
<slot>
<code>3</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="5">
<slots>
<slot>
<code>2</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="3">
<slots>
<slot>
<code>4</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
<stickbutton index="1">
<slots>
<slot>
<code>1</code>
<mode>mousemovement</mode>
</slot>
</slots>
</stickbutton>
</stick>
<!-- dpad is mapped to arrow keys -->
<dpad index="1">
<dpadbutton index="8">
<slots>
<slot>
<code>0x1000012</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="4">
<slots>
<slot>
<code>0x1000015</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="2">
<slots>
<slot>
<code>0x1000014</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
<dpadbutton index="1">
<slots>
<slot>
<code>0x1000013</code>
<mode>keyboard</mode>
</slot>
</slots>
</dpadbutton>
</dpad>
<!-- R&L 1&2 are modbuttons -->
<trigger index="6">
<deadZone>2000</deadZone>
<throttle>positivehalf</throttle>
<triggerbutton index="2">
<slots>
<slot>
<code>0x1000023</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<trigger index="5">
<deadZone>2000</deadZone>
<throttle>positivehalf</throttle>
<triggerbutton index="2">
<slots>
<slot>
<code>0x1000020</code>
<mode>keyboard</mode>
</slot>
</slots>
</triggerbutton>
</trigger>
<button index="11">
<slots>
<slot>
<code>0x1000021</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="10">
<slots>
<slot>
<code>0x1000022</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<!-- face buttons: { sqare: button1, x: button2, circle: button3, triangle: esc } -->
<button index="4">
<slots>
<slot>
<code>0x1000000</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="3">
<slots>
<slot>
<code>1</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="2">
<slots>
<slot>
<code>3</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<button index="1">
<slots>
<slot>
<code>2</code>
<mode>mousebutton</mode>
</slot>
</slots>
</button>
<!-- select = tab, start = enter -->
<button index="7">
<slots>
<slot>
<code>0x1000004</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<button index="5">
<slots>
<slot>
<code>0x1000001</code>
<mode>keyboard</mode>
</slot>
</slots>
</button>
<!-- R3 toggles svkbd -->
<button index="9">
<slots>
<slot>
<path>/home/nilix/bin/togglekb.sh</path>
<mode>execute</mode>
</slot>
</slots>
</button>
<!-- guide button changes to set 2 -->
<button index="6">
<slots>
<slot>
<code>1</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
</set>
<!-- this set is empty so that game configs can take over the controller bindings -->
<set index="2">
<trigger index="6">
<throttle>positivehalf</throttle>
</trigger>
<trigger index="5">
<throttle>positivehalf</throttle>
</trigger>
<!-- guide button toggles back to set 1 -->
<button index="6">
<slots>
<slot>
<code>0</code>
<mode>setchange</mode>
</slot>
</slots>
</button>
</set>
</sets>
</gamecontroller>

View file

@ -164,7 +164,7 @@
<floatingX>906</floatingX>
<floatingY>806</floatingY>
<noStrut>no</noStrut>
<stacking>Normal</stacking>
<stacking>Below</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Horizontal</direction>
<!-- 'Vertical' or 'Horizontal' -->
@ -233,7 +233,6 @@
</action>
</keybind>
<!-- let zentile handle cycling through non-minimized windows -->
<keybind key="A-Tab">
<action name="NextWindow">
<raise>yes</raise>
@ -243,11 +242,8 @@
<interactive>no</interactive>
<allDesktops>no</allDesktops>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
</finalactions>
</action>
</keybind>
@ -684,7 +680,8 @@
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications><!--
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
# you may use one or more of the name/class/role/title/type rules to specify
@ -775,6 +772,59 @@
</application>
# end of the example
--><application class="Audacious"><decor>yes</decor></application><application name="status" class="URxvt"><skip_pager>yes</skip_pager><skip_taskbar>yes</skip_taskbar><desktop>all</desktop><decor>no</decor><layer force="yes">below</layer><position force="yes"><x>-4</x><y>-26</y></position></application><application name="dmesg" class="URxvt"><skip_pager>yes</skip_pager><skip_taskbar>yes</skip_taskbar><desktop>all</desktop><decor>no</decor><layer force="yes">below</layer><position force="yes"><x>-4</x><y>-126</y></position></application><application title="navigator" class="URxvt"><desktop>all</desktop><layer>above</layer><position force="yes"><x>center</x><y>center</y></position></application><application name="xosview"><desktop>all</desktop><skip_pager>yes</skip_pager><skip_taskbar>yes</skip_taskbar><iconic>no</iconic><decor>no</decor><position force="yes"><x>0</x><y>0</y></position></application>s&gt;
-->
<application class="Audacious">
<decor>yes</decor>
</application>
<application name="status" class="URxvt">
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<desktop>all</desktop>
<decor>no</decor>
<layer force="yes">below</layer>
<position force="yes">
<x>-4</x>
<y>-26</y>
</position>
</application>
<application name="dmesg" class="URxvt">
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<desktop>all</desktop>
<decor>no</decor>
<layer force="yes">below</layer>
<position force="yes">
<x>-4</x>
<y>-126</y>
</position>
</application>
<application title="navigator" class="URxvt">
<desktop>all</desktop>
<layer>above</layer>
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application name="xosview">
<desktop>all</desktop>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<iconic>no</iconic>
<decor>no</decor>
<position force="yes">
<x>0</x>
<y>0</y>
</position>
</application>
<application class="svkbd">
<decor>no</decor>
<layer>above</layer>
<position force="yes">
<x>0</x>
<y>-0</y>
</position>
<desktop>all</desktop>
</application>
</applications>
</openbox_config>

View file

@ -2,7 +2,9 @@ opacity-rule = [
"85:class_g = 'st-256color'",
"85:class_g = 'acme'",
"85:class_g = 'kate'",
"85:window_type = 'dock'"
"85:window_type = 'dock'",
"85:class_g = 'taro' && (name = 'taro-compose' || name = 'taro-reader')",
"85:class_g = 'svkbd'"
]
shadow-exclude = [
"window_type = 'dock'"