Commit graph

25 commits

Author SHA1 Message Date
Aldo Cortesi
7190e4fa48 Change awesome_config -> AwesomeConf.
All other struct definitions in the project follow this naming convention.
2007-12-19 10:43:02 +01:00
Aldo Cortesi
ce556ec743 The preferred line length is 80 characters. 2007-12-18 11:27:26 +01:00
Aldo Cortesi
965cbb7e0b Continue to simplify interfaces that require arguments in globalconf.
Today I focus on screen.c.
2007-12-18 11:26:39 +01:00
Aldo Cortesi
4723ab3627 This patch is a first draft of independently targetable textboxes, and a
protocol to speak to them. Given a textbox widget definition like this:

        textbox mail {
            default = 0
        }
        textbox time {}

We can update the boxes individually by going:

    echo 0 tell_widget mail 10
    echo 0 tell_widget time 12:01

Text boxes will dynamically resize to fit their contents. A textbox can be
cleared by going:

    echo 0 tell_widget name

A text-box containing no text will take up 0 space in the bar, i.e. it will not
be visible at all

Textboxes now supersede statusbar_set_text, so this call has been removed.
2007-12-17 18:22:05 +01:00
Aldo Cortesi
7385815927 Add basic framework for uicb_widget_tell. For now, it does nothing, but stay
tuned.
2007-12-17 18:19:39 +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
Julien Danjou
db6a9e92c3 add uicb_focus_history and bind with -1 to Mod4+Tab by default 2007-12-15 20:32:49 +01:00
Julien Danjou
4432bd6d39 cosmetic 2007-12-15 16:34:22 +01:00
Julien Danjou
687b648c1b fix some includes and add copyright 2007-12-14 16:15:40 +01:00
Julien Danjou
15cfbb9ee7 run_uicb() is static 2007-12-14 16:07:34 +01:00
Julien Danjou
84bb954004 rename statusbar uicb and add uicb_statusbar_set_position 2007-12-14 15:52:52 +01:00
Julien Danjou
097e8e4172 Add uicb_screen_focus to switch to a specified screen. 2007-12-13 13:59:46 +01:00
Aldo Cortesi
64117935c8 Add a warn utility function, and use it to improve error reporting in run_uicb. 2007-12-13 09:58:46 +01:00
Aldo Cortesi
f5372a7252 Use strtok in run_uicb, in preparation for improving error reporting.
Yes strtok is not nice, but it's nicer than rolling your own. ;)
2007-12-13 09:58:05 +01:00
Aldo Cortesi
417c7a5116 Fix crashing bug triggered through awesome-client 2007-12-13 09:54:57 +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
ebff63e89a remove some useless #include 2007-12-05 14:31:15 +01:00
Julien Danjou
3f8bff5bef fix comment 2007-11-21 15:06:30 +01:00
Nikos Ntarmos
ac188235ed Split x-related util functions to a separate xutil.{c,h} file pair.
Hi there.

awesome-client is now linked against the whole hog of x-related libs
that awesome depends on. These get pulled in by awesome-client using the
same LDFLAGS as awesome. Removing x-related libs from the LDFLAGS for
awesome-client is only half of the story, as it also depends on util.c
which now has a couple of x-related functions. The attached patch also
splits these functions into a separate xutil.{c,h} file pair and teaches
the rest of the files to use them. Apart from the small difference in
file size (I see a 3-3.5% decrease in file size, both for a stripped and
a non-stripped awesome-client binary), this should also somewhat reduce
the startup time (since awesome-client won't have to map all of these
libraries).

Cheers...

\n\n
2007-11-19 20:45:21 +01:00
Julien Danjou
0fa1b4c822 move UicbList in uicb.c 2007-11-15 14:41:03 +01:00
daniel@brinkers.de
1de87e372d parse uicb command with no arguments and no tailing space 2007-10-15 19:32:28 +02:00
Julien Danjou
a74ca1d1de tabswidth is 4 not 6 2007-10-15 13:56:24 +02:00
Julien Danjou
4e0acfa99a add coding style stuff 2007-10-15 13:40:52 +02:00
Julien Danjou
d75a512f5d fix headers inclusion 2007-10-15 11:53:10 +02:00
Julien Danjou
a6781157b6 allow to execute uicb function via awesome control fifo 2007-10-12 17:10:36 +02:00