Johan Malm
573a521cf1
Refuse to start when SUID is detected
...
This ensures that those surprised by the deprecation of SUID operation
receive an error rather than accidentally having run as root.
swaywm/sway@e572805
2022-11-16 10:40:59 -05:00
Johan Malm
3e1a800c14
Add --exit and --reconfigure
2022-10-15 00:19:18 +02:00
Johan Malm
8c139e4185
Add long command line options
2022-10-15 00:19:18 +02:00
Johan Malm
2c06b902f4
Set environment variable LABWC_PID
...
...to the pid of the compositor so that SIGHUP and SIGTERM can be sent to
specific instances using `kill -s <signal> <pid>` rather than
`killall -s <signal> labwc`
Issue #573
2022-10-15 00:19:18 +02:00
John Lindgren
cb40cdc36c
common: Add additional memory utilities (xzalloc() etc.)
2022-09-17 10:57:30 -04:00
Joshua Ashton
722aa042b7
main: Increase FD limit
...
This defaults to 1024, which is tiny, but is a requirement
for processes using the deprecated `select` function.
We must reset this back whenever we fork to start a new process,
as this is inherited, and breaks applications using `select` otherwise.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2022-07-17 00:59:23 +00:00
01micko
cbed8acf01
nls: add native language support
...
- adds labwc.pot and po files for de, es, it and sv
- added notes in NEWS.md and CONTRIBUTING.md
- addresses #269
- conditional upon `msgfmt` being installed
- can be disabled at build time
2022-05-02 10:33:42 +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
Consolatis
e4f1f9a975
ssd: use dynamic titlebar height based on font size and padding
2022-03-12 15:32:44 +00:00
Consolatis
044388a5cd
Prepare to move from wlr_texture to lab_data_buffer
2022-02-23 21:47:01 +00:00
Consolatis
759b26b5c1
Add window menu
2022-01-26 06:17:41 +00:00
Johan Malm
b878db57a7
menu: support submenus
...
Support submenus defined as follows:
<menu id="submenu" label="Submenu">
<item label="item1.1"></item>
<item label="item1.2"></item>
</menu>
<menu id="root-menu" label="">
<menu id="submenu" />
<item label="item0"></item>
</menu>
2021-11-02 18:31:19 +00:00
Johan Malm
ebb632419b
*.c: add SPDX-License-Identifier
2021-09-24 21:45:48 +01:00
Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
20fd8f59a7
Remove info() and die()
2021-07-22 21:30:17 +01:00
Johan Malm
5101ee87eb
main.c: add -v, -V, -d command line options
2021-03-06 11:38:17 +00:00
Johan Malm
ce73d23127
main.c: declare theme within main()
2021-02-25 22:14:07 +00:00
Johan Malm
de88b69d62
mv theme.c ..
2021-02-21 22:18:34 +00:00
Johan Malm
cb2a504440
theme: add theme_finish()
2021-02-21 22:03:14 +00:00
Johan Malm
1b263e1f67
Un-global theme variable
2021-02-21 21:54:40 +00:00
Johan Malm
9af7bd744f
Reload buttons in SIGHUP
...
Call xbm_load() from theme_init()
2021-02-21 21:14:06 +00:00
Johan Malm
f0d8eb0a60
menu: reload on SIGHUP
2021-02-19 23:05:14 +00:00
Johan Malm
64b6c37e7c
Sort #includes
2020-11-01 22:22:15 +00:00
Johan Malm
58fdf9776f
Move pango_cairo_font_map_set_default() to font.c
2020-10-31 15:41:06 +00:00
Johan Malm
93145ebc2a
main: add -v option
2020-10-23 20:08:56 +01:00
Johan Malm
d39b158cec
menu: add menu_finish()
2020-10-22 19:43:27 +01:00
Johan Malm
dc5d1ab976
Support a very simple root-menu
2020-10-19 22:14:17 +01:00
Johan Malm
45b13fc9a0
Support ~/.config/labwc/{autostart,environment}
2020-10-08 20:50:20 +01:00
Johan Malm
96e05057a3
Update .clang-format
...
Align with wlroots style
2020-09-28 20:41:41 +01:00
Johan Malm
1721b339da
Reload config+theme on SIGHUP
2020-09-25 19:42:40 +01:00
Johan Malm
fd8d9a395d
mv xbm/ ..
2020-08-31 20:01:08 +01:00
Johan Malm
66b490d853
main.c: release default font map on exit
2020-08-18 20:07:14 +01:00
Johan Malm
68fb8a3af5
rcxml: add rcxml_finish()
2020-08-13 20:20:44 +01:00
Johan Malm
4d1363dcae
include/: refactor header files more
2020-08-03 20:56:38 +01:00
Johan Malm
d7d838d682
src/main.c: read themerc specified by rc.xml
2020-07-20 19:53:03 +01:00
Johan Malm
ccc818fda5
Add src/config/config-dir.c
2020-07-18 11:28:39 +01:00
Johan Malm
7fc643fdb9
src/main.c: add usage()
2020-07-16 20:16:43 +01:00
Johan Malm
baca410560
Render window close button
2020-06-29 19:27:59 +01:00
Johan Malm
786ee4d455
src/main.c: use spawn_async_no_shell()
2020-06-19 22:29:54 +01:00
Johan Malm
158f42d1e8
src/rcxml.c: parse <keybind>
2020-06-19 22:00:22 +01:00
Johan Malm
7440919452
Add action.c
2020-06-18 20:18:01 +01:00
Johan Malm
40f01ed3c9
Add keybind.c
2020-06-16 07:21:53 +01:00
Johan Malm
d40445da1d
Add theme.c to parse openbox's themerc
2020-06-11 21:20:43 +01:00
Johan Malm
1f5d8c3812
src/config/rcxml.c: optionally write nodenames to buffer
2020-06-09 22:01:19 +01:00
Johan Malm
6166e9b370
Read rc.xml and begin parsing
2020-06-05 23:04:54 +01:00
Johan Malm
af11ef771a
Refactor main.c and server.c
...
Create server_{init,start,finish} functions.
2020-06-03 18:39:46 +01:00
Johan Malm
298d869092
Move server_new_output() to output.c
2020-05-29 22:18:03 +01:00
Johan Malm
bc5accb089
Rename some {cursor,keyboard}_ functions
2020-05-29 22:10:41 +01:00
Johan Malm
d28465dfc3
Put code in src/ and include/
2020-05-27 14:29:05 +01:00