summary refs log tree commit diff
path: root/conf.c
Commit message (Collapse)AuthorAgeFilesLines
* shuffle deck chairs: rename group actions to match intent for clarityokan2019-03-071-1/+1
|
* Separate out the menu window from the client resize/move geom window; in eachokan2019-03-041-10/+0
| | | | case, create and destroy on-demand. Isolate more menu specific code.
* simplify xftcolor configokan2019-03-041-5/+2
|
* Tie group number and name together during config.okan2019-03-011-1/+27
|
* Add 'group-close-[n]' action to close all windows within specified group.okan2019-02-251-0/+9
| | | | heavily based on a diff from Nam Nguyen.
* Rename internal functions to delinate between client remove, delete and xprotookan2019-02-221-2/+3
| | | | | delete; 'window-close' is now the proper action, but 'window-delete' as an alias will remain until more interesting changes require breaking configs.
* fix missing includesokan2019-02-131-1/+0
|
* Allow 'transientfor' clients to inherit group and bwidth either during init orokan2018-11-131-4/+1
| | | | | | via property notify events. Previously only the flags were set but nothing was in the path to apply said flags and/or bwidth. Required slight of re-orgnaization of client_init.
* Store the screen's visual type and colormap.okan2018-02-131-7/+6
|
* Clean up conf_file/homedir and conf_init() bits.okan2018-02-091-7/+18
|
* Simplification; use asprintf where appropriate now.okan2018-02-021-34/+26
|
* Generate name_to_func[] in a clean and readable fashion.okan2018-01-231-141/+105
|
* Convert menu-exec-wm from an abritrary exec menu, into a config-based menu fromokan2017-12-291-5/+28
| | | | | | | | which one may configure (wm <name> <path_and_args>) (and choose) specific window managers to replace the running one. 'wm cwm cwm' is included by default. No objections and seems sensible to sthen.
* Add support for _NET_WM_STATE_SKIP_PAGER and _NET_WM_STATE_SKIP_TASKBAR; eerilyokan2017-12-191-0/+2
| | | | | | | close to cwm's 'ignore'. Roughly based on an initial diff from Walter Alejandro Iglesias, but with support for both Atoms and without cwm-based bindings.
* Original idea from Dimitris Papastamos to move windows to corners a while ago;okan2017-12-071-0/+18
| | | | | | | | | re-proposed by Julien Steinhauser with an updated diff. Apparently this was in the original calmnwm. However, expand the original idea and let clients 'snap' to edges instead, neatly allowing key bindings that snap to adjacent edges (i.e. corners) as well. No default bindings assigned.
* stash dir into conf since it'll be of useokan2017-12-071-1/+1
|
* Pull over the remaining re-implemented window move/resize functions and createokan2017-07-141-2/+2
| | | | | a wrapper so that the key and mouse based move/resize callbacks can be unified. This has already been done with other window operations and menus.
* rename one function, matching others, to help upcoming changeokan2017-07-121-1/+1
|
* Alter callbacks to take a struct instead of a growing number of arguments;okan2017-05-091-104/+110
| | | | greatly simplifies upcoming work.
* stray newlinesokan2016-12-061-0/+1
|
* 'window-search' is spelled 'menu-window'; the former snuck in during theokan2016-12-061-1/+0
| | | | | conversion('menu-window' already existed and was properlly documented); found the hard way by sthen@ while trying to convert.
* Fold unbinding functions into one for each, key and mouse; plugs a leak whenokan2016-12-021-36/+10
| | | | unbinding a mouse button bound to a command.
* use the correct typeokan2016-12-021-1/+1
|
* Change 'menu-window' to display all windows; then add 'menu-window-hidden' forokan2016-12-011-1/+4
| | | | | | | | the previous behaviour of 'menu-window'. 'menu-window' becomes the default binding; use 'bind-mouse "1" menu-window-hidden' to restore old behaviour for those who prefer. OK sthen@ (long long time ago on a different version)
* Normalize bind function names, based on a few categories: window, group, menuokan2016-12-011-162/+200
| | | | | | | | and pointer. Replace 'bind' and 'mousebind' options with 'bind-key' and 'bind-mouse', respectively, replace special 'unmap' keyword with 'unbind-key' and 'unbind-mouse', and additionally allow unbinding all with 'all' keyword.
* revert previous; upcoming changes will hopefully deal with these moreokan2016-11-151-2/+2
| | | | naturally.
* Add a wrapper based upon xevent handlers around client move/resize for key andokan2016-11-151-2/+2
| | | | mouse bindings.
* Define callbacks, then default bindings.okan2016-11-141-78/+80
|
* Reorganize for upcoming changes.okan2016-11-141-286/+255
|
* Remove the (8) default bindings for pointer move since they conflict withokan2016-11-141-8/+0
| | | | | | | default bindings for emacs, which wins; the feature remains and can be bound to whatever users wish with cwmrc(5). from mpi@
* Make it clear these are flags.okan2016-10-241-4/+4
|
* Sprinkle __func__ in appropriate error messages.okan2016-10-241-2/+2
|
* Refactor callbacks to take a void * so as to not try and generalize intookan2016-10-181-160/+146
| | | | | | | | client_ctx in keypress and buttonpress event handlers; pass appropriate *ctx's based on context. While here, limit some globals, replace defines with appropriate variables and fix some naming.
* Rename 2 kbfunc to match closer to what they dookan2016-10-061-3/+3
|
* Add an argument to the callbacks to pass the xevent context, button orokan2016-10-061-11/+6
| | | | | | | key press. This allows to remove a few hacks to duplicate functions only for behaviour changes; now differing behaviours are pushed down to the callback. Also will allow for previously unavailable actions to be bind-able down the road.
* Add CM-a for 'nogroup' (CM-0 stays for now); update manpage to reflect.okan2016-10-051-0/+1
|
* Stash wmname into conf.okan2016-10-051-0/+2
|
* Calculate client nameqlen in client_setname(), the only place it'sokan2016-10-041-0/+1
| | | | needed/used.
* Turn CALMWM_NGROUPS define into variable, ngroups.okan2016-10-041-0/+1
|
* Start simplifying menu code; and in turn, remove a cursor no longerokan2016-10-031-3/+2
| | | | needed.
* Defaults are split between defines and conf_init(); normalize these, asokan2016-10-031-4/+5
| | | | well as give 'sticky' groups its own variable.
* Use instinsic X11 functions for key/btn/ptr grab/ungrab/regrab requests;okan2016-09-301-6/+26
| | | | | the one line wrappers provided no value and limited altering calls where needed; additionally, most of them had but one caller.
* Mechanical change: move screen menu bits to their own struct.okan2016-09-291-3/+3
|
* Continue merging kb and mouse functions: foldokan2016-09-221-3/+6
| | | | | | mousefunc_menu_{client,cmd,group} into the respective kbfunc_menu_{client,cmd,group} functions; simply pass a flag down from config denoting mouse action behaviour.
* change 'sticky' to 'stick' to toggle client stickiness (seems theokan2016-09-121-2/+2
| | | | | default binding worked for everyone for a long time!); conflict with group sticky found by Ali Farzanrad - thanks!
* add a column to previous commit for consitency.matthieu2016-08-131-1/+1
|
* conf_screen: report the fontname that can't be opened in case of failure.matthieu2016-08-131-1/+1
| | | | ok dcoppa@
* Fix a typo from r1.201; fixes window_grouptoggle binding.okan2015-11-171-1/+1
|
* more client vs screen context differencesokan2015-11-121-22/+22
|
* Move kb pointer movement out of the kbfunc_client_moveresize since it'sokan2015-11-121-48/+48
| | | | | | | | got nothing to do with clients, thus doing flags work causes lots of waste and almost useless jumpy pointer movements; while here, split out move and resize since they share almost no code, just like mouse client move/resize; factor out amount and factor. Still wonder why this is here, but it works now.