Julien Danjou
f0f522bd47
move things around
...
- rename parse_config to config_parse
- move KeyModList and ButtonList in their own functions
- move LayoutsList in layout.c
- move static fcts around in config.c
2007-12-16 13:24:12 +01:00
Aldo Cortesi
5923c90aaa
Solidify widgets.
...
Factor out common initialisation into a common_new function. Copy the section
title into the Widget title attribute.
2007-12-16 12:57:47 +01:00
Aldo Cortesi
65fd8d48f0
The beginnings of a more flexible widget configuration.
...
The problem is as follows. In the end, different types of widget are going to
have distinct configurable options. This means that we need to have a
different section type for every widget type, if we are ever to make the
configuration nice. In fact, a configuration syntax like this would suit us
very well:
textbox name {
foo = bar
}
focuslist name2 {
bar = voing
}
This is all very well, but libconfuse has a limitation - there is no "nice"
way to retrieve the order of disparate sections (i.e. sections of different
types), and order is important to us. This patch goes to some effort to
retrieve the section order by extracting an array of widgets, and sorting them
based on line number.
2007-12-16 12:57:03 +01:00
Aldo Cortesi
6e8b1383fe
Various doc comment fixes.
2007-12-16 12:13:07 +01:00
Aldo Cortesi
2f74c079aa
Massive, massive interface refactoring.
...
The big change here is that we now keep our configuration structure in a global
variable called globalconf. This radically simplifies many interfaces, since
passing awesomeconf everywhere is no longer necessary. There are also more
subtle interface effects - now we can reliably identify a screen from just a
screen ID, rather than an awesomeconf, screenid tuple.
Overall, this patch makes most of the interfaces in awesome much nicer to use -
enjoy!
Yes, this is a huge patch, but since a lot of the refactoring was done
systematically using vim macros, splitting this up would have been very hard.
2007-12-16 12:12:48 +01:00
Aldo Cortesi
ec80635cbc
Fix compilation warning related to parsing of statusbar widgets config.
...
Also make the code surrounding this problem more legible, and remove
Widget_ptr, which just confuses the issue.
2007-12-16 12:00:00 +01:00
Julien Danjou
602f921559
first try to get widget configurable
2007-12-15 18:21:02 +01:00
Julien Danjou
aacb020564
rename statusbar functions
2007-12-14 20:10:52 +01:00
Julien Danjou
bb1381abc2
make tags a linked list instead of array
2007-12-14 19:05:30 +01:00
Julien Danjou
b03cdbd877
remove nlayouts
2007-12-14 17:57:05 +01:00
Julien Danjou
b9320be372
add spiral and dwindle layouts (fibonacci)
2007-12-14 17:05:29 +01:00
Julien Danjou
84bb954004
rename statusbar uicb and add uicb_statusbar_set_position
2007-12-14 15:52:52 +01:00
Julien Danjou
6241354fec
prefix eprint() with awesome:
2007-12-13 15:20:42 +01:00
Julien Danjou
11effcd7af
remove awesome: for warn() calls
2007-12-13 14:03:55 +01:00
Julien Danjou
b313f266c8
cosmetic
2007-12-13 12:15:42 +01:00
Aldo Cortesi
c9dc57c756
Add a way to define key bindings in bulk, like this:
...
keylist
{
modkey = {"Mod4"}
command = "client_tag"
keylist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
arglist = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
}
This patch also modifies the example awesomerc to use the new syntax. Should
be fully backwards compatible.
2007-12-13 11:50:21 +01:00
Julien Danjou
425f89bada
remove dual-config: awesomerc is now preprocessed and compiled in awesome
2007-12-13 11:16:43 +01:00
Julien Danjou
ecf6f6ebbb
save default configuration file on first run without conf file
2007-12-13 11:04:48 +01:00
Julien Danjou
6e01126101
honor aspect ratio by default
2007-12-13 10:16:41 +01:00
Aldo Cortesi
c7a4a54b47
Use warn function throughout project.
2007-12-13 09:59:46 +01:00
Julien Danjou
5fa67c23df
split awesomeconf and screen config
...
a.k.a the big post-2.0 blind commit
2007-12-11 20:56:51 +01:00
Julien Danjou
e70dad3f02
add a default configuration when running awesome without configuration file
2007-12-10 11:54:00 +01:00
Nathan Hüsken
9524f15478
Adding padding
2007-11-28 11:00:48 +01:00
Julien Danjou
db22906ba0
add CFG_END for mouse bindings where missing in config parser
...
Thanks rcs.
2007-11-22 10:48:09 +01:00
Julien Danjou
0fa1b4c822
move UicbList in uicb.c
2007-11-15 14:41:03 +01:00
Julien Danjou
dae3bcd2c7
remove _ on view_prev and view_next to be homogeneous
2007-11-14 21:38:25 +01:00
Julien Danjou
e43df90214
remove mouse modkey
2007-11-14 19:50:30 +01:00
Julien Danjou
d9e5346048
print unknown command in config files on stderr
2007-11-14 18:28:28 +01:00
Julien Danjou
938850a487
rename setlayout to tag_setlayout
2007-11-14 18:19:00 +01:00
Julien Danjou
7c533b8b40
rename screen uicb correctly
2007-11-14 18:16:43 +01:00
Julien Danjou
895c3848eb
rename uicb_*mouse to uicb_client_*mouse
2007-11-14 18:14:23 +01:00
Julien Danjou
85adc07d19
rename uicb_set* to uicb_tag_set* since they apply on tags
2007-11-14 18:12:33 +01:00
Julien Danjou
aee9cdf8cb
prefix a bunch of uicb with client_
2007-11-14 18:10:51 +01:00
Julien Danjou
6c0608660d
rename view_tag* names to tag_view*
2007-11-14 18:07:38 +01:00
Julien Danjou
4ca7059efc
rename uicb_view to uicb_tag_view
2007-11-14 18:07:38 +01:00
Julien Danjou
bfde2f3211
rename uicb_toggletag to uicb_client_toggletag
2007-11-14 18:07:38 +01:00
Julien Danjou
10391f3190
rename uicb_toggleview to uicb_tag_toggleview
2007-11-14 18:07:38 +01:00
Julien Danjou
f4390bfc3e
rename uicb_togglefloating to uicb_client_togglefloating
2007-11-14 18:07:38 +01:00
Julien Danjou
5b0987bb28
rename uicb_tag to uicb_client_tag
2007-11-14 18:07:38 +01:00
Julien Danjou
455ef2e1d7
rename uicb_swap{prev,next} to uicb_client_swap{prev,next}
2007-11-14 18:07:35 +01:00
Julien Danjou
8b933e196b
rename uicb_settrans to uicb_client_settrans
2007-11-14 17:52:49 +01:00
Julien Danjou
b594731fc2
rename uicb_moveresize to uicb_client_moveresize
2007-11-14 17:51:22 +01:00
Julien Danjou
c5ee95992c
rename uicb_killclient to uicb_client_kill
2007-11-14 17:50:16 +01:00
Julien Danjou
7a919a76fb
mouse button clicks on windows are now configurable
2007-11-14 17:18:16 +01:00
Julien Danjou
cfa31c399d
introduce mouse.[ch] files and move uicb_mouse*() to them
2007-11-13 22:57:57 +01:00
Julien Danjou
2fb7b4d69a
fix Rule linked list handling in config
...
it seems that I was interrupted when I was coding new Rule handling in linked list
2007-11-13 22:29:33 +01:00
Julien Danjou
06dc3ba221
add new rules.c file with new functions for using Rule-s struct
2007-11-13 21:41:57 +01:00
Julien Danjou
adcadddc46
define RULE_NOSCREEN -1
2007-11-12 19:35:31 +01:00
Julien Danjou
9f21fb3c9e
rules are now stored in a linked list
2007-11-12 19:25:10 +01:00
Julien Danjou
4d3468d3a2
check that screen number in rules is not >= screen count
2007-11-12 19:09:05 +01:00