dotfiles/labwc/rc.xml

162 lines
4.8 KiB
XML

<?xml version="1.0"?>
<!--
This is a very simple config file with many options missing. For a complete
set of options with comments, see docs/rc.xml.al
-->
<labwc_config>
<core>
<decoration>server</decoration>
<gap>16</gap>
<adaptiveSync>no</adaptiveSync>
<allowTearing>no</allowTearing>
</core>
<snapping>
<range>24</range>
<topMaximize>yes</topMaximize>
<overlay>
<enabled>yes</enabled>
</overlay>
</snapping>
<!-- re-enable when this is better lol
<placement>
<policy>automatic</policy>
</placement>
-->
<theme>
<name>Vermello-borris</name>
<cornerRadius>4</cornerRadius>
<font name="Fantasque Sans Mono" weight="bold" size="12"/>
<dropShadows>yes</dropShadows>
</theme>
<keyboard>
<default/>
<keybind key="W-r">
<action name="Execute" command="j4-dmenu-desktop --dmenu=tofi"/>
</keybind>
<!-- Use a different terminal emulator -->
<keybind key="W-Return">
<action name="Execute" command="kitty"/>
</keybind>
<keybind key="Print">
<action name="execute">
<command>sh -c 'grim'</command>
</action>
</keybind>
<keybind key="S-Print">
<action name="Execute">
<command>sh -c 'grim -g "`slurp`"'</command>
</action>
</keybind>
<keybind key="C-S-Print">
<action name="Execute">
<command>sh -c 'grim -g "`slurp`" - | wl-copy'</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="execute">
<command>sh -c 'grim - | wl-copy'</command>
</action>
</keybind>
<keybind key="C-S-P">
<action name="execute" command="wl-color-picker clipboard"/>
</keybind>
<keybind key="XF86_AudioLowerVolume">
<action name="Execute">
<command>sh -c 'pamixer --decrease 2; pamixer --get-volume &gt; /run/user/1000/wob.sock'</command>
</action>
</keybind>
<keybind key="XF86_AudioRaiseVolume">
<action name="Execute">
<command>sh -c 'pamixer --increase 2; pamixer --get-volume &gt; /run/user/1000/wob.sock'</command>
</action>
</keybind>
<!--
Remove a previously defined keybind
A shorter alternative is <keybind key="W-F4" />
-->
<!-- <keybind key="A-Tab">
<action name="Execute" command="fish ~/.local/bin/ftl.fish"/>
</keybind>-->
<keybind key="W-F4">
<action name="None"/>
</keybind>
</keyboard>
<tablet mapToOutput="DP-1" rotate="0" mouseEmulation="no">
<!-- <area top="0.0" left="0.0" width="0.0" height="0.0" /> -->
<map button="stylus" to="Middle" />
</tablet>
<mouse>
<default/>
<!-- Show a custom menu on desktop right click -->
<context name="Root">
<mousebind button="Right" action="Press">
<action name="ShowMenu" menu="some-custom-menu"/>
</mousebind>
</context>
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="none"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="none"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="none"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="none"/>
</mousebind>
<mousebind button="W-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="W-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="W-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="W-Right" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
</mouse>
<libinput>
<device>
<naturalScroll>no</naturalScroll>
</device>
</libinput>
<windowRules>
<windowRule identifier="imv" serverDecoration="yes"/>
<windowRule identifier="megasync"/>
<windowRule type="dialog">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule identifier="blueman-manager">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule title="pulsemixer">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule identifier="nm-connection-editor">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule identifier="nm-applet">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule title="Proton Mail Bridge">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule identifier="protonvpn-app">
<action name="AutoPlace" policy="center"/>
</windowRule>
<windowRule identifier="MEGAsync" ignoreConfigureRequests="yes">
<action name="AutoPlace" policy="center"/>
</windowRule>
</windowRules>
<placement>
<policy>automatic</policy>
</placement>
</labwc_config>