]> git.sur5r.net Git - i3/i3/log
i3/i3
13 years agoi3bar: makefile: fix dependency on libi3
Michael Stapelberg [Fri, 21 Oct 2011 18:06:53 +0000 (19:06 +0100)]
i3bar: makefile: fix dependency on libi3

13 years agoi3bar: makefile: prefix messages with [i3bar]
Michael Stapelberg [Fri, 21 Oct 2011 18:03:54 +0000 (19:03 +0100)]
i3bar: makefile: prefix messages with [i3bar]

13 years agochange default config to use 'bar' blocks (Thanks mxf)
Michael Stapelberg [Fri, 21 Oct 2011 18:01:02 +0000 (19:01 +0100)]
change default config to use 'bar' blocks (Thanks mxf)

13 years agoi3bar: document -b in --help (Thanks mxf)
Michael Stapelberg [Fri, 21 Oct 2011 17:59:59 +0000 (18:59 +0100)]
i3bar: document -b in --help (Thanks mxf)

13 years agobar config: make dock mode the default
Michael Stapelberg [Thu, 20 Oct 2011 22:38:55 +0000 (23:38 +0100)]
bar config: make dock mode the default

13 years agodocs/userguide: document the bar configuration
Michael Stapelberg [Thu, 20 Oct 2011 22:38:34 +0000 (23:38 +0100)]
docs/userguide: document the bar configuration

13 years agoi3bar: update manpage
Michael Stapelberg [Thu, 20 Oct 2011 21:55:24 +0000 (22:55 +0100)]
i3bar: update manpage

13 years agocfgparse: eliminate absolute states, use yy_push_state/yy_pop_state
Michael Stapelberg [Thu, 20 Oct 2011 21:38:46 +0000 (22:38 +0100)]
cfgparse: eliminate absolute states, use yy_push_state/yy_pop_state

This fixes a problem with workspace assignments.
I tested i3 -C with three user configs (Thanks SardemFF7, julien, xeen)
and did not notice any problems.

13 years agoDon’t start i3-nagbar when using -C to validate the config
Michael Stapelberg [Thu, 20 Oct 2011 21:25:59 +0000 (22:25 +0100)]
Don’t start i3-nagbar when using -C to validate the config

13 years agotests: depend on AnyEvent::I3 0.09 (for get_bar_config)
Michael Stapelberg [Thu, 20 Oct 2011 19:31:44 +0000 (20:31 +0100)]
tests: depend on AnyEvent::I3 0.09 (for get_bar_config)

13 years agoipc: document the GET_BAR_CONFIG request/reply
Michael Stapelberg [Thu, 20 Oct 2011 19:16:07 +0000 (20:16 +0100)]
ipc: document the GET_BAR_CONFIG request/reply

13 years agodocs/ipc: fix example end
Michael Stapelberg [Thu, 20 Oct 2011 18:51:01 +0000 (19:51 +0100)]
docs/ipc: fix example end

13 years agodocs/ipc: document i3 --get-socketpath
Michael Stapelberg [Thu, 20 Oct 2011 18:46:57 +0000 (19:46 +0100)]
docs/ipc: document i3 --get-socketpath

13 years agoi3bar: don’t reconnect, but exit(0) on EOF
Michael Stapelberg [Thu, 20 Oct 2011 18:08:41 +0000 (19:08 +0100)]
i3bar: don’t reconnect, but exit(0) on EOF

Since i3 starts i3bar instances as necessary, EOF is considered a signal to
either shutdown because i3 exited or because it is restarting.

13 years agoActually start i3bar instances for each configured bar
Michael Stapelberg [Thu, 20 Oct 2011 18:03:40 +0000 (19:03 +0100)]
Actually start i3bar instances for each configured bar

13 years agotests: modify $PATH so that it prefers the compiled versions of everything in ../
Michael Stapelberg [Thu, 20 Oct 2011 18:02:08 +0000 (19:02 +0100)]
tests: modify $PATH so that it prefers the compiled versions of everything in ../

13 years agoClean bars before reloading the config (+test)
Michael Stapelberg [Thu, 20 Oct 2011 17:47:09 +0000 (18:47 +0100)]
Clean bars before reloading the config (+test)

While the configuration gets updated in i3, the i3bar processes will not pick
up these changes. We have to think about a good way to do that.

13 years agoMake i3bar get its config from i3 via IPC
Michael Stapelberg [Wed, 19 Oct 2011 21:58:19 +0000 (22:58 +0100)]
Make i3bar get its config from i3 via IPC

In order to not duplicate configuration options and make stuff confusing, we
dropped the commandline flags (except for socket_path and bar_id). This means
that you *have to* specify bar_id when starting i3bar. The best way is to let
i3 start i3bar, which it will do automatically for every bar {} configuration
block it finds.

13 years agoCreate different IDs for each bar (+test)
Michael Stapelberg [Wed, 19 Oct 2011 18:57:39 +0000 (19:57 +0100)]
Create different IDs for each bar (+test)

13 years agoImplement parsing bar {} config blocks
Michael Stapelberg [Tue, 18 Oct 2011 21:16:04 +0000 (22:16 +0100)]
Implement parsing bar {} config blocks

13 years agotests: add a test to check that bar configs are parsed correctly
Michael Stapelberg [Tue, 18 Oct 2011 21:15:48 +0000 (22:15 +0100)]
tests: add a test to check that bar configs are parsed correctly

13 years agoipc: when requesting the bar config without a payload, return an array of available...
Michael Stapelberg [Tue, 18 Oct 2011 21:12:46 +0000 (22:12 +0100)]
ipc: when requesting the bar config without a payload, return an array of available bar IDs

13 years agoBugfix: Correctly close the colors map in the IPC bar config reply
Michael Stapelberg [Tue, 18 Oct 2011 21:11:44 +0000 (22:11 +0100)]
Bugfix: Correctly close the colors map in the IPC bar config reply

13 years agoMake the barconfig list a TAILQ
Michael Stapelberg [Tue, 18 Oct 2011 21:11:27 +0000 (22:11 +0100)]
Make the barconfig list a TAILQ

13 years agoadd an IPC request to get the bar configuration (by ID)
Michael Stapelberg [Wed, 12 Oct 2011 22:23:09 +0000 (23:23 +0100)]
add an IPC request to get the bar configuration (by ID)

13 years agoadd a data structure for 'bar' configuration
Michael Stapelberg [Wed, 12 Oct 2011 21:52:55 +0000 (22:52 +0100)]
add a data structure for 'bar' configuration

13 years agoreformat include/config.h
Michael Stapelberg [Wed, 12 Oct 2011 21:29:39 +0000 (22:29 +0100)]
reformat include/config.h

13 years agoFocus new window only if it is on a visible workspace on the current focused output.
Peter Bui [Fri, 14 Oct 2011 15:36:32 +0000 (11:36 -0400)]
Focus new window only if it is on a visible workspace on the current focused output.

13 years agoBugfix: Fix segfault when starting i3 (Thanks pnutzh4x0r)
Michael Stapelberg [Tue, 18 Oct 2011 17:47:07 +0000 (18:47 +0100)]
Bugfix: Fix segfault when starting i3 (Thanks pnutzh4x0r)

13 years agolog: use localtime_r instead of localtime
Michael Stapelberg [Tue, 18 Oct 2011 17:32:47 +0000 (18:32 +0100)]
log: use localtime_r instead of localtime

localtime_r does not have the side-effect of behaving like it called tzset(),
in particular it will save one stat(/etc/localtime) syscall. This is not a big
deal, but it makes the strace output cleaner and thus more useful :).

13 years agoMerge branch 'workspace_baf' into next
Michael Stapelberg [Mon, 17 Oct 2011 22:35:19 +0000 (23:35 +0100)]
Merge branch 'workspace_baf' into next

13 years agotests: add t/176-workspace-baf for the workspace back_and_forth feature
Michael Stapelberg [Mon, 17 Oct 2011 22:34:29 +0000 (23:34 +0100)]
tests: add t/176-workspace-baf for the workspace back_and_forth feature

13 years agoImplement 'workspace back_and_forth' (Patch by Michael Walle)
Michael Stapelberg [Mon, 17 Oct 2011 22:17:56 +0000 (23:17 +0100)]
Implement 'workspace back_and_forth' (Patch by Michael Walle)

13 years agodocs/Makefile: use $(ASCIIDOC), add asciidoc 'latest git docs' config
Michael Stapelberg [Sat, 15 Oct 2011 22:32:04 +0000 (23:32 +0100)]
docs/Makefile: use $(ASCIIDOC), add asciidoc 'latest git docs' config

13 years agodebian: use debian/i3-wm.manpages instead of manuall installing manpages
Michael Stapelberg [Sat, 15 Oct 2011 21:36:03 +0000 (22:36 +0100)]
debian: use debian/i3-wm.manpages instead of manuall installing manpages

13 years agoBugfix: Use _exit in forking to avoid calling the libev cleanup handler (Thanks xeen)
Michael Stapelberg [Sat, 15 Oct 2011 15:56:47 +0000 (16:56 +0100)]
Bugfix: Use _exit in forking to avoid calling the libev cleanup handler (Thanks xeen)

13 years agoDon’t call ev_destroy_loop with ev < 4 in atexit (Thanks xeen)
Michael Stapelberg [Sat, 15 Oct 2011 15:56:32 +0000 (16:56 +0100)]
Don’t call ev_destroy_loop with ev < 4 in atexit (Thanks xeen)

13 years agoi3test.pm: use strict; use warnings; and fix related bugs
Maik Fischer [Tue, 11 Oct 2011 12:13:42 +0000 (13:13 +0100)]
i3test.pm: use strict; use warnings; and fix related bugs

13 years agotestcases/makefile: add modeline, add testsuite-* and latest to 'clean' target
Michael Stapelberg [Mon, 10 Oct 2011 20:56:43 +0000 (21:56 +0100)]
testcases/makefile: add modeline, add testsuite-* and latest to 'clean' target

13 years agot/175-startup-notification: don’t wait for i3 mapping the window
Michael Stapelberg [Mon, 10 Oct 2011 15:00:34 +0000 (16:00 +0100)]
t/175-startup-notification: don’t wait for i3 mapping the window

It is on a different workspace and will therefore not get mapped.
Syncing is enough.

13 years agoMerge branch 'startup-notification' into next
Michael Stapelberg [Mon, 10 Oct 2011 14:54:23 +0000 (15:54 +0100)]
Merge branch 'startup-notification' into next

13 years agoChange the root window cursor to 'watch' during startups
Michael Stapelberg [Mon, 10 Oct 2011 14:53:57 +0000 (15:53 +0100)]
Change the root window cursor to 'watch' during startups

13 years agodebian: update debian/control with new build-dep libstartup-notification0-dev
Michael Stapelberg [Mon, 10 Oct 2011 14:35:38 +0000 (15:35 +0100)]
debian: update debian/control with new build-dep libstartup-notification0-dev

13 years agoadd libstartup-notification to DEPENDS
Michael Stapelberg [Mon, 10 Oct 2011 14:34:47 +0000 (15:34 +0100)]
add libstartup-notification to DEPENDS

13 years agostartup: delete the startup sequence upon completion, make the timeout complete it
Michael Stapelberg [Mon, 10 Oct 2011 14:30:07 +0000 (15:30 +0100)]
startup: delete the startup sequence upon completion, make the timeout complete it

13 years agoMove the includes after the include guard, no need to include these files more than...
Michael Stapelberg [Mon, 10 Oct 2011 14:21:08 +0000 (15:21 +0100)]
Move the includes after the include guard, no need to include these files more than once

13 years agoImplement timeouts for startup notifications
Michael Stapelberg [Mon, 10 Oct 2011 12:50:03 +0000 (13:50 +0100)]
Implement timeouts for startup notifications

13 years agosupport _NET_STARTUP_ID on the client leader window
Michael Stapelberg [Mon, 10 Oct 2011 12:30:52 +0000 (13:30 +0100)]
support _NET_STARTUP_ID on the client leader window

(necessary for GIMP, geeqie, …)

13 years agoGet the _NET_STARTUP_ID in manage_window, get the corresponding workspace
Michael Stapelberg [Mon, 10 Oct 2011 11:48:43 +0000 (12:48 +0100)]
Get the _NET_STARTUP_ID in manage_window, get the corresponding workspace

13 years agotest: set the _NET_STARTUP_ID before mapping the window
Michael Stapelberg [Mon, 10 Oct 2011 11:48:19 +0000 (12:48 +0100)]
test: set the _NET_STARTUP_ID before mapping the window

13 years agoKeep track of startup notifications in a TAILQ, save workspace
Michael Stapelberg [Mon, 10 Oct 2011 11:47:56 +0000 (12:47 +0100)]
Keep track of startup notifications in a TAILQ, save workspace

13 years agoimplement a startup monitor, move code to src/startup.c
Michael Stapelberg [Mon, 10 Oct 2011 10:36:21 +0000 (11:36 +0100)]
implement a startup monitor, move code to src/startup.c

13 years agoadd testcase for the startup notification protocol
Michael Stapelberg [Sun, 9 Oct 2011 23:24:29 +0000 (00:24 +0100)]
add testcase for the startup notification protocol

13 years agomake handle_client_message not return anything
Michael Stapelberg [Sun, 9 Oct 2011 21:15:21 +0000 (22:15 +0100)]
make handle_client_message not return anything

The function returned an int for historical reasons.

13 years agosave the last timestamp received by X11 in last_timestamp
Michael Stapelberg [Sun, 9 Oct 2011 19:18:38 +0000 (20:18 +0100)]
save the last timestamp received by X11 in last_timestamp

We need it for startup notifications (to generate a unique id)

Conflicts:

include/i3.h
src/main.c

13 years agoImplement support for startup notifications
Michael Stapelberg [Sun, 9 Oct 2011 17:21:59 +0000 (18:21 +0100)]
Implement support for startup notifications

This only sets up startup notifications for the 'exec' commands and directives.

Monitoring startups follows later.

13 years agoMake conn_screen available outside of main()
Michael Stapelberg [Sun, 9 Oct 2011 17:19:31 +0000 (18:19 +0100)]
Make conn_screen available outside of main()

Will be used in other parts of the code for startup notification

13 years agoi3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55)
Michael Stapelberg [Mon, 10 Oct 2011 14:09:39 +0000 (15:09 +0100)]
i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55)

13 years agoUse $(MAKE) instead of hardcoding `make' in the Makefiles.
Raphael Kubo da Costa [Sun, 9 Oct 2011 22:30:08 +0000 (19:30 -0300)]
Use $(MAKE) instead of hardcoding `make' in the Makefiles.

When one is using gmake or anything other than make itself, the same
command should be used in the Makefiles too.

13 years agocommon.mk: Silence some remaining pkg-config calls.
Raphael Kubo da Costa [Sun, 9 Oct 2011 21:35:58 +0000 (18:35 -0300)]
common.mk: Silence some remaining pkg-config calls.

Some pkg-config calls still didn't redirect stderr to /dev/null, causing
the gnome-config error messages to be printed.

13 years agoi3bar: include xcb_compat.h for older XCB versions (Thanks motif)
Michael Stapelberg [Mon, 10 Oct 2011 10:37:43 +0000 (11:37 +0100)]
i3bar: include xcb_compat.h for older XCB versions (Thanks motif)

13 years agomakefile: redirect stderr to /dev/null when invoking pkg-config
Michael Stapelberg [Sun, 9 Oct 2011 17:35:58 +0000 (18:35 +0100)]
makefile: redirect stderr to /dev/null when invoking pkg-config

This silences an error about gnome-config not being installed (pkg-config seems
to use gnome-config as a fall-back on some systems).

13 years agoremove left-over type definition for mode_info
Michael Stapelberg [Sun, 9 Oct 2011 17:25:00 +0000 (18:25 +0100)]
remove left-over type definition for mode_info

13 years agoBugfix: Don’t use a blank after comma in ldflags_for_lib calls (Thanks Raphael)
Michael Stapelberg [Sun, 9 Oct 2011 17:24:06 +0000 (18:24 +0100)]
Bugfix: Don’t use a blank after comma in ldflags_for_lib calls (Thanks Raphael)

'-l foo' instead of '-lfoo' is a problem on FreeBSD.

13 years agoMerge branch 'i3bar-cleanup' into next
Michael Stapelberg [Sun, 9 Oct 2011 13:45:58 +0000 (14:45 +0100)]
Merge branch 'i3bar-cleanup' into next

13 years agolog WM_NAME (non-utf-8 window titles)
Michael Stapelberg [Sun, 9 Oct 2011 13:45:34 +0000 (14:45 +0100)]
log WM_NAME (non-utf-8 window titles)

13 years agoi3bar: set WM_CLASS and WM_NAME
Michael Stapelberg [Sun, 9 Oct 2011 13:45:23 +0000 (14:45 +0100)]
i3bar: set WM_CLASS and WM_NAME

13 years agoi3bar: add modelines to all files
Michael Stapelberg [Sun, 9 Oct 2011 13:28:20 +0000 (14:28 +0100)]
i3bar: add modelines to all files

13 years agoMerge branch 'i3bar-tray-size' into next
Michael Stapelberg [Sun, 9 Oct 2011 12:52:05 +0000 (13:52 +0100)]
Merge branch 'i3bar-tray-size' into next

13 years agoi3bar: handle ConfigureRequests for tray children (fixes gtk3 size issue)
Michael Stapelberg [Sun, 9 Oct 2011 12:50:46 +0000 (13:50 +0100)]
i3bar: handle ConfigureRequests for tray children (fixes gtk3 size issue)

Thanks to yvesf for this simple python test script:

    from gi.repository import Gtk as gtk

    def cb(*a):
        print a

    def si_popup(*a):
        print a

    status_icon = gtk.StatusIcon()
    status_icon.set_from_stock(gtk.STOCK_OPEN)
    status_icon.connect("activate", cb)

    gtk.main()

13 years agoi3bar: add modeline to src/xcb.c
Michael Stapelberg [Sun, 9 Oct 2011 12:50:39 +0000 (13:50 +0100)]
i3bar: add modeline to src/xcb.c

13 years agoMove fake_configure_notify to libi3
Michael Stapelberg [Sun, 9 Oct 2011 12:40:15 +0000 (13:40 +0100)]
Move fake_configure_notify to libi3

13 years agoBugfix: make i3bar depend on libi3
Michael Stapelberg [Sun, 9 Oct 2011 12:05:29 +0000 (13:05 +0100)]
Bugfix: make i3bar depend on libi3

13 years agoMerge remote-tracking branch 'mxf/merge' into next
Michael Stapelberg [Sat, 8 Oct 2011 21:01:41 +0000 (22:01 +0100)]
Merge remote-tracking branch 'mxf/merge' into next

13 years agotestcases: add Makefile.PL to automatically install deps via CPAN
Maik Fischer [Sat, 8 Oct 2011 19:58:37 +0000 (20:58 +0100)]
testcases: add Makefile.PL to automatically install deps via CPAN

13 years agoFix 'make dist'
Michael Stapelberg [Sat, 8 Oct 2011 18:12:28 +0000 (19:12 +0100)]
Fix 'make dist'

13 years agoremove obsolete CMDMODE and TODO files, update LICENSE
Michael Stapelberg [Sat, 8 Oct 2011 14:18:04 +0000 (15:18 +0100)]
remove obsolete CMDMODE and TODO files, update LICENSE

13 years agotests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC)
Michael Stapelberg [Sat, 8 Oct 2011 13:38:50 +0000 (14:38 +0100)]
tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC)

13 years agotestsuite: delete obsolete makefile
Michael Stapelberg [Sat, 8 Oct 2011 13:30:31 +0000 (14:30 +0100)]
testsuite: delete obsolete makefile

13 years agodebian: add testsuite.html to i3-wm.docs
Michael Stapelberg [Sat, 8 Oct 2011 12:01:43 +0000 (13:01 +0100)]
debian: add testsuite.html to i3-wm.docs

13 years agodocs/testsuite: s/more ugly/uglier (Thanks fernandotcl)
Michael Stapelberg [Thu, 6 Oct 2011 06:58:39 +0000 (07:58 +0100)]
docs/testsuite: s/more ugly/uglier (Thanks fernandotcl)

13 years agoMerge branch 'testsuite' into next
Michael Stapelberg [Wed, 5 Oct 2011 23:08:06 +0000 (00:08 +0100)]
Merge branch 'testsuite' into next

13 years agocomplete-run: eliminate dependency on EV
Michael Stapelberg [Wed, 5 Oct 2011 22:52:19 +0000 (23:52 +0100)]
complete-run: eliminate dependency on EV

13 years agocomplete-run: explicitly state why we need to overwrite SIGCHLD
Michael Stapelberg [Wed, 5 Oct 2011 22:29:58 +0000 (23:29 +0100)]
complete-run: explicitly state why we need to overwrite SIGCHLD

13 years agotests: eliminate List::MoreUtils
Michael Stapelberg [Wed, 5 Oct 2011 22:21:36 +0000 (23:21 +0100)]
tests: eliminate List::MoreUtils

13 years agotests: eliminate Try::Tiny
Michael Stapelberg [Wed, 5 Oct 2011 22:21:23 +0000 (23:21 +0100)]
tests: eliminate Try::Tiny

13 years agotests: Eliminate IO::Scalar
Michael Stapelberg [Wed, 5 Oct 2011 22:17:09 +0000 (23:17 +0100)]
tests: Eliminate IO::Scalar

13 years agotests: remove unused Proc::Background
Michael Stapelberg [Wed, 5 Oct 2011 19:48:34 +0000 (20:48 +0100)]
tests: remove unused Proc::Background

13 years agodocs/testsuite: explain how socket activation works in i3
Michael Stapelberg [Wed, 5 Oct 2011 19:46:47 +0000 (20:46 +0100)]
docs/testsuite: explain how socket activation works in i3

13 years agoMerge branch 'testsuite' into next
Michael Stapelberg [Tue, 4 Oct 2011 22:39:59 +0000 (23:39 +0100)]
Merge branch 'testsuite' into next

13 years agotests: move i3test.pm from t/lib to lib/
Michael Stapelberg [Tue, 4 Oct 2011 22:39:36 +0000 (23:39 +0100)]
tests: move i3test.pm from t/lib to lib/

13 years agotests: use a lot higher timeouts
Michael Stapelberg [Tue, 4 Oct 2011 22:36:57 +0000 (23:36 +0100)]
tests: use a lot higher timeouts

This makes the tests more robust on a machine which is loaded.
Also, it makes the tests run (significantly) longer if anything goes wrong.

13 years agotests: don’t overwrite $timeout, kill timer when done
Michael Stapelberg [Tue, 4 Oct 2011 22:36:43 +0000 (23:36 +0100)]
tests: don’t overwrite $timeout, kill timer when done

13 years agotests: Convert all testcases to use the new launch_with_config API
Michael Stapelberg [Tue, 4 Oct 2011 22:34:23 +0000 (23:34 +0100)]
tests: Convert all testcases to use the new launch_with_config API

It now returns a pid directly, not a Proc::Background object.

13 years agotests: launch_with_config: use socket activation
Michael Stapelberg [Tue, 4 Oct 2011 22:33:38 +0000 (23:33 +0100)]
tests: launch_with_config: use socket activation

13 years agotests: SocketActivation: append to the logfile, more comments
Michael Stapelberg [Tue, 4 Oct 2011 22:31:33 +0000 (23:31 +0100)]
tests: SocketActivation: append to the logfile, more comments

13 years agotests: SocketActivation: only close() and dup2() if fileno(socket) != 3
Michael Stapelberg [Tue, 4 Oct 2011 22:31:06 +0000 (23:31 +0100)]
tests: SocketActivation: only close() and dup2() if fileno(socket) != 3

13 years agotests: Refactor the socket activation into lib/SocketActivation.pm
Michael Stapelberg [Tue, 4 Oct 2011 19:55:29 +0000 (20:55 +0100)]
tests: Refactor the socket activation into lib/SocketActivation.pm

13 years agotests: re-order dependencies in complete-run, make clear which are shipped with Perl
Michael Stapelberg [Tue, 4 Oct 2011 19:10:11 +0000 (20:10 +0100)]
tests: re-order dependencies in complete-run, make clear which are shipped with Perl

13 years agotests: remove unused dependency Proc::Background from complete-run
Michael Stapelberg [Tue, 4 Oct 2011 19:05:12 +0000 (20:05 +0100)]
tests: remove unused dependency Proc::Background from complete-run