Commit graph

132 commits

Author SHA1 Message Date
Johan Malm
999fef6678 labwc-config(5): move <resistance> to before <focus>
...to make the config file flow better
2022-05-31 21:57:00 +01:00
Johan Malm
9b29bbeb54 man pages: unify titles for better "man -k labwc" experience 2022-05-31 21:53:45 +01:00
Johan Malm
e2632e8587 labwc-action(5): remove incorrect <command>
<action name="Close"> does not support a <command> option
2022-05-06 21:57:13 +01:00
Johan Malm
5944813566 menu: support <action name="Execute"> option <execute>
<exectue> is a deprecated name for <command>.
See: http://openbox.org/wiki/Help:Actions#Action_syntax

But some openbox3 menu generators still use it, for example
https://wiki.archlinux.org/title/xdg-menu - so let's support it for
backward compatibility.
2022-05-06 21:55:46 +01:00
Johan Malm
b50d0ea4c8 docs/autostart: use wlopm with *
With swayidle timeout/resume, use wlopm --off/--on with * instead of
specifying output names. When * is given as parameter to an operation
wlopm will do the operation for all discovered outputs.

https://git.sr.ht/~leon_plickat/wlopm/tree/master/item/wlopm.1#L68
2022-05-04 21:52:20 +01:00
Consolatis
519375a7f8 Revert "config: support <mouse><default />"
This reverts commit 3d337857b7.

Revert for now until we have some infrastructure in place to
selectively replace default {key,mouse}binds with custom ones.

Fixes #304
Reported-by: @01micko
2022-04-26 19:56:06 +02:00
Johan Malm
0ec63a153b docs/environment: add WLR_NO_HARDWARE_CURSORS example 2022-04-22 17:55:31 +01:00
Johan Malm
f925fe5893 theme: change window.label.text.justify default to center
It just looks better :)
2022-04-22 17:54:20 +01:00
Johan Malm
3d337857b7 config: support <mouse><default />
This loads default mousebinds and provides a way to keep config files
simpler whilst allowing user specific binds.

Note that if no rc.xml is found, or if no <mouse><mousebind> entries
exist, the same default mousebinds will be loaded even if the <default />
element is not provided.

Example usage:

  <mouse>
    <default />
    <context name="Root">
      <mousebind button="Right" action="Press">
        <action name="Execute" command="my-menu-application" />
      </mousebind>
    </context>
  </mouse>
2022-04-22 17:52:01 +01:00
Johan Malm
edc5338af4 Add command line option -C to specify config directory
Also expand usage message to explain what each option means
2022-04-22 17:00:36 +01:00
Johan Malm
6bc457659e labwc-menu(1): fix s/openbox/labwc/ typo 2022-04-21 21:26:04 +01:00
Johan Malm
3a9b1d2c16 docs/autostart: add swayidle with wlopm example
...to turn outputs on/off following the addition of
wlr-output-power-management protocol support (commit c23397f3)
2022-04-21 21:22:10 +01:00
Consolatis
6b4d9b9383 Add ToggleAlwaysOnTop action 2022-04-09 17:18:39 +01:00
Consolatis
888c77c219 Add missing docs for mouse window snapping 2022-01-30 21:25:39 +00:00
Consolatis
b7b1e8064f Add WindowMenu button 2022-01-26 06:17:41 +00:00
Consolatis
759b26b5c1 Add window menu 2022-01-26 06:17:41 +00:00
Liam Middlebrook
875b258602 output: Add option to preview the contents of the current cycle_view
Add the 'cycleViewPreview.core' option to rc.xml to enable previews of
the selected view when cycling between windows. Default this option to
be disabled to match current behavior.
2022-01-23 16:02:54 +00:00
Consolatis
87f4a60e38 Allow mouse movements to trigger SnapToEdge 2022-01-08 10:30:03 +00:00
ARDiDo
a893607a0e mousebindings: change default focus and raise to press from drag.
This raises the window without having to drag it.
2022-01-07 22:05:07 +00:00
ARDiDo
f8e1ab2285 labwc-config: fix spelling mistake 2022-01-07 22:05:07 +00:00
ARDiDo
5935a78fb4 mouse: add support for drag mouse event 2022-01-07 22:05:07 +00:00
Johan Malm
ea705a7303 docs/autostart: remove wlr-randr {--off,--on}
swayidle previously used wlr-randr to enable/disable outputs, but since
commit a837fefc, this re-arranges views so is not to be used in the
context of idle system power management.
2022-01-03 23:32:02 +00:00
Johan Malm
eb582090a7 labwc-environment(5): add XCURSOR_{THEME,SIZE} 2021-12-29 14:25:13 +00:00
Johan Malm
e89a9899d0 labwc-config(5): fix typo 2021-12-29 14:23:51 +00:00
Johan Malm
f292998399 docs/rc.xml.all: only declare one 'Root' context
Multiple <mousebind> can exist within one <context>, so let's keep it
clean.
2021-12-29 14:20:00 +00:00
Johan Malm
c797dbe189 config: de-couple <FollowMouse> and <raiseOnFocus>
Set these two variables indepently of each other as this is cleaner and
more explicit.

In openbox <raiseOnFocus> only applies if <followMouse> is set, but there
is no need to immitate this.
2021-12-29 14:04:41 +00:00
Johan Malm
837a7f3997 docs/rc.xml.all: update with default mouse-bindings 2021-12-26 23:02:07 +00:00
bi4k8
6a190797b6 document mouse buttons and newly-supported mouse contexts 2021-12-26 21:31:11 +00:00
bi4k8
5bd4833b87 add mouse bindings for window edges to rc.xml.all 2021-12-26 21:31:11 +00:00
Consolatis
416718c3e9 docs/rc.xml.all: Add focus + raise to TitleBar movement / maximize 2021-12-23 10:42:22 -05:00
bi4k8
fd7f06a375 document Focus and Raise actions 2021-12-12 19:07:08 -05:00
bi4k8
073c78551f document Client/Frame/Desktop mouse contexts 2021-12-12 19:05:01 -05:00
bi4k8
114e6545d6 document Resize action 2021-12-12 19:05:01 -05:00
bi4k8
730a642bea document tapButtonMap setting 2021-12-12 19:00:58 -05:00
ARDiDo
859495a8be Config: add OSD font configuration 2021-12-06 17:44:28 -05:00
Johan Malm
9b99ff9042 labwc-action(5): add PreviousWindow 2021-12-06 21:13:21 +00:00
Johan Malm
d4a99d8e91 docs/rc.xml.all: add Client and Root mousebinds 2021-12-03 22:14:37 +00:00
Johan Malm
b65d29c608 docs/rc.xml.all: add Alt-Left/Right mousebinds
Alt-Left button for "Move"
Alt-Right button for "Resize"
2021-12-03 21:56:21 +00:00
Johan Malm
05237ed1cb docs/autostart: add swayidle example 2021-11-28 22:54:22 +00:00
Johan Malm
9eaa5a92a1 cursor: support XCURSOR_THEME and XCURSOR_SIZE
Use environment variables XCURSOR_THEME and XCURSOR_SIZE to set cursor
theme and size respectively. Default size is 24.

Find icons themes with the command below or similar:

    find /usr/share/icons/ -type d -name "cursors"
2021-11-28 22:50:37 +00:00
Johan Malm
2bea203430 docs/rc.xml.all: add TitleBar Left-Press mousebind
<context name="TitleBar">
  <mousebind button="Left" action="Press">
    <action name="Move"/>
  </mousebind>
</context>
2021-11-26 18:30:58 +00:00
Johan Malm
12137ba446 labwc-action(5): add "Move" action 2021-11-26 18:30:11 +00:00
Johan Malm
12fb562682 docs/labwc-menu.5.scd: describe submenus 2021-11-13 22:19:52 +00:00
01micko
1c5b5c25c5 docs/labwc-menu.5.scd: fix menu definition
This is in line with 1a38cc8 and #109
2021-11-13 22:02:46 +00:00
Johan Malm
1a38cc8462 docs/menu.xml: fix root-menu definition
A menu is defined by `<menu id="" label="">`

A `<menu id="" />` element merely creates an item pointing to already
defined menu.

Fixes issue #109
2021-11-09 07:13:40 +00:00
Johan Malm
dd1663e627 theme: add menu.overlap.{x,y} 2021-11-08 17:36:39 +00:00
ARDiDo
ddf6555557 mousebind: update documentation 2021-11-02 18:14:50 +00:00
ARDiDo
7730ece837 resistance: don't use gap value 2021-10-26 21:15:13 +01:00
ARDiDo
9d37860a40 resistance: update documentation + default strength value 2021-10-26 21:15:13 +01:00
Johan Malm
c48b9d44d1 config: add <core><adaptiveSync> 2021-10-22 20:23:09 +01:00