Gjum
01327a6bc4
Add option to align icons left or right
2014-02-26 22:43:53 +01:00
Gjum
d9e68803dc
Fix stuff regarding icons
...
- fix icon_path string calculations
- add default settings to config.def.h
2014-02-26 19:05:32 +01:00
Gjum
c2801181f8
Add icon support
...
- icons are displayed at the top left corner
- disabed by default, fully backwards-compatible
- no additional dependencies, only cairo used
- TODO: only supports png (but all default images are png)
- TODO: message formatting is sometimes buggy
2014-02-25 23:35:08 +01:00
progandy
80af8a1030
fix dynamic width calculation
2013-12-06 07:01:51 +01:00
Sascha Kruse
41e5976e6d
set _NET_WM_WINDOW_TYPE (thanks lexming)
...
fix #113
2013-07-16 13:30:46 +02:00
Sascha Kruse
fb8eafe3fa
show pango markup errors only once
...
see also #111
2013-06-29 00:50:57 +02:00
Sascha Kruse
a098b9476f
set width of layouts correctly on dynamic width
...
fix #110
2013-06-29 00:32:54 +02:00
René 'Necoro' Neumann
be7d2b3511
Correctly handle Num_Lock.
...
Find out which modifier key is used by Num_Lock (`x_numlock_mod()`) and
register grabs for both variants: modifier present/not present.
2013-06-13 15:16:03 +02:00
Giuliano Schneider
24d9179e4d
xctx.geometry.y -> xctx.geometry.x
2013-05-01 12:00:35 +02:00
Giuliano Schneider
dd047ccd20
implemented shrink option
2013-04-30 14:55:50 +02:00
Giuliano Schneider
2d59a77e0c
wrap the text if it's wider than the screen width ( Fixes #53 )
2013-04-23 20:58:19 +02:00
Sascha Kruse
99feeea84b
fix segfault
2013-03-12 02:17:43 +01:00
Sascha Kruse
cdb39c30b4
x.c: free_colored_layout stuff leak
2013-03-08 20:14:13 +01:00
Sascha Kruse
75ef76946b
x.c define functions as static where possible
2013-03-08 17:59:23 +01:00
Sascha Kruse
916b8816cb
refactor calculate_foreground_color()
...
split repeated code into separate function.
2013-03-08 17:50:46 +01:00
Sascha Kruse
2ee38ca961
only FocusChangeMask|PropertyChangeMask if needed
...
We don't need to listen to the corresponding events when we don't need
to follow the mouse/keyboard focus.
2013-03-08 17:19:56 +01:00
Sascha Kruse
15cd7586a2
move renderling of layouts into extra function
2013-03-08 03:25:13 +01:00
Sascha Kruse
411434a18f
refactor calculation of dimentions
2013-03-08 02:47:03 +01:00
Sascha Kruse
5099b57ee5
use double buffering
...
render to cairo_image_surface and drop that onto the xlib_surface
to get rid of flickering on redraws.
2013-03-08 02:30:23 +01:00
Sascha Kruse
c2a5b526e2
fix expanding window across the screen
...
test case included
2013-03-02 17:22:12 +01:00
Sascha Kruse
d314e01b34
fix background rendering with padding
2013-02-28 20:09:35 +01:00
Sascha Kruse
0c3c7c8d16
get rid off some compiler warnings
2013-02-25 22:04:34 +01:00
Sascha Kruse
779c4354c4
Wakeup on PropertyNotify
...
This causes dunst to wakeup when _NET_ACTIVE_WINDOW changed so we can
check wether we need to move to another monitor.
2013-02-25 21:58:15 +01:00
Sascha Kruse
f4d852550d
Merge remote-tracking branch 'tardis/focusevent' into cairo
2013-02-25 20:40:50 +01:00
Sascha Kruse
06b056eea2
actually use the result of calculate_width()
2013-02-23 00:46:41 +00:00
Sascha Kruse
7af28d7145
ellipsize when !word_wrap
2013-02-23 00:35:06 +00:00
Sascha Kruse
dd0647eaf7
fix width calculation
2013-02-23 00:35:06 +00:00
Sascha Kruse
a34adda3a4
resize surface to match window size
2013-02-22 20:41:23 +00:00
Sascha Kruse
88cb136b88
reintroduced (x more) message
2013-02-22 20:32:45 +00:00
Sascha Kruse
4cb4e9f8d4
watch focus event
2013-02-22 19:53:47 +00:00
Sascha Kruse
f12d5332a8
fail more gracefully on broken markup
...
Strip markup and display plain text. Also print
error message why markup couldn't be parsed.
2013-02-22 19:38:42 +00:00
Sascha Kruse
0d8be7dccf
markup
2013-02-22 18:36:25 +00:00
Sascha Kruse
f839d0656e
use cairo_rectangle for separator
2013-02-22 18:36:24 +00:00
Sascha Kruse
fdffe4a6c0
colors
2013-02-22 18:36:24 +00:00
Sascha Kruse
5f5f706381
remove debug printfs
2013-02-22 18:36:24 +00:00
Sascha Kruse
138476486e
removed another unused function
2013-02-22 18:36:24 +00:00
Sascha Kruse
ced9186cf1
removed the rest of old drawing code
2013-02-22 18:36:24 +00:00
Sascha Kruse
c2032b9cc6
removed some unused code
2013-02-22 18:36:24 +00:00
Sascha Kruse
ec52f00edf
frame
2013-02-22 18:36:24 +00:00
Sascha Kruse
ce4e834de5
horizontal padding
2013-02-22 18:36:24 +00:00
Sascha Kruse
658cc9f88f
padding
2013-02-22 18:36:24 +00:00
Sascha Kruse
d1fa0faefc
separator
2013-02-22 18:36:24 +00:00
Sascha Kruse
ec2c23a652
spacing (settings.line_height)
2013-02-22 18:36:24 +00:00
Sascha Kruse
8c8c6c9c47
alignment
2013-02-22 18:36:24 +00:00
Sascha Kruse
b2883b2133
implement basic features with pango/cairo
2013-02-22 18:35:55 +00:00
Sascha Kruse
64a7dd9743
move text generation to notification code
2013-02-22 10:47:11 +00:00
Sascha Kruse
e82da9d5e7
indent -linx --no-tabs
2013-02-21 23:23:54 +00:00
Sascha Kruse
b8004f56d8
remove folding markers again
2013-02-21 23:19:30 +00:00
Sascha Kruse
0a04bceb6f
move x_* functions to x.c
2013-02-21 23:14:23 +00:00
Sascha Kruse
5bc68ffc4b
move global variables related to x in struct
2013-02-21 23:04:43 +00:00