Commit Graph

53 Commits

Author SHA1 Message Date
Thomas Adam
89010c508d %{S}: don't clear other outputs
When asking lemonbar to display text to a given ouput with %{S}, don't clear
all outputs first in order to render the text.  The output will persist on
the other outputs until other text is rendered there.
2017-05-12 22:58:33 +01:00
Bastien Dejean
0ff78b6c42 Fix {top,bottom}_end_x strut value
The maximum x coordinate of a pixel inside the rectangle (x, y, w, h) is x+w-1.

The specs (https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm140130317564416)
provides an example that corroborates the fact that the range is inclusive: bottom_end_x is 2303.
This value can be interpreted as 1280+1024-1.
2017-05-12 22:57:38 +01:00
mfunk
043ad4757c Merge pull request #29 from tryone144/wm_class
WM_CLASS
2016-11-07 09:38:45 +01:00
krypt-n
7890857f95 Merge remote-tracking branch 'upstream/master' into xft-port
* upstream/master:
  Set the WM_NAME for all the windows.
  Don't use optarg directly when parsing the -n switch argument.
  Silence a warning about write() result being unused.
  Update the .travis.yml to build all the features
  Make it possible to build lemonbar w/o XINERAMA support
  Add pixel offset
  Document literal percent sign under formatting
2016-11-07 09:18:19 +01:00
Bernd Busse
49b2cc55ae Changed WM_CLASS class from "bar" to "Bar"
Follow convention of capitalized WM_CLASS class name.
2016-10-16 21:39:17 +02:00
Bernd Busse
d7520a659e Change WM_CLASS atom to "instance", "class"
Set WM_CLASS class to "bar" and WM_CLASS instance to executable name
(defaults to "lemonbar").
2016-06-09 12:59:20 +02:00
Bernd Busse
b64dd42f30 Add WM_CLASS atom 2016-06-09 12:58:53 +02:00
LemonBoy
d680ea4256 Set the WM_NAME for all the windows.
Don't set repeatedly the property for the first window only.
Thanks to @otommod for noticing this.
2016-05-22 20:09:26 +02:00
LemonBoy
44a708b7a4 Don't use optarg directly when parsing the -n switch argument. 2016-05-22 15:31:42 +02:00
LemonBoy
40f08d5245 Silence a warning about write() result being unused. 2016-04-23 09:06:00 +02:00
LemonBoy
a3fb967ad9 Make it possible to build lemonbar w/o XINERAMA support 2016-04-23 08:59:38 +02:00
Steven Allen
f2662d75c8 Add pixel offset
Add a formatting command to offset the text position by a pixel amount.
2016-02-19 11:35:22 -05:00
krypt-n
a43b801ddc Merge remote-tracking branch 'stebalien/pixel-offset' into xft-port
* stebalien/pixel-offset:
  Add pixel offset
  Implement [Issue #161 - Feature request] Feature: add a parametere to set the default underline color. Usage: lemonbar -Ucolor
2016-02-17 22:18:23 +01:00
Steven Allen
892e43a3bc Add pixel offset
Add a formatting command to offset the text position by a pixel amount.
2016-02-17 11:28:41 -05:00
Jérôme Bon
0f2cfbab28 Implement [Issue #161 - Feature request]
Feature: add a parametere to set the default underline color.
Usage: lemonbar -Ucolor

By the way this also fix a strange behavior whereas '%{+u}correct%{U-}strange'
made the second underline of the same color as the background instead of the foreground.
2016-01-19 14:41:00 +01:00
krypt-n
578faf271e Add mention of XFT support in help message 2016-01-15 12:50:05 +01:00
Krypt0n
38f69d853a Merge pull request #20 from LemonBoy/master
Merge fix for persistent clickable areas
2015-12-31 18:47:30 +01:00
LemonBoy
7c8eb7495b Fix an off-by-one error in 'area_get'.
Fixes #160.
2015-12-15 19:05:39 +01:00
Adam Niederer
214ad63925 Fix Typo
Siz -> Six in comment
2015-12-10 17:59:58 -05:00
krypt-n
94a73d3e48 Merge branch 'scroll-fix' into xft-port
* scroll-fix:
  Saving 4 byte of memory on 32-Bit systems
2015-11-17 13:32:35 +01:00
krypt-n
e0aee14533 Saving 4 byte of memory on 32-Bit systems 2015-11-15 23:06:19 +01:00
krypt-n
fd8a33c8a4 Fix memoryleak on failure to load font 2015-11-15 22:41:53 +01:00
krypt-n
4d164f3083 Remove return NULL from function returning void
gcc didnt catch that. clang did
2015-11-15 22:31:05 +01:00
krypt-n
62d5338277 Merge branch 'scroll-fix' into xft-port
* scroll-fix:
  Fix LemonBoy/bar#154 and krypt-n/bar#18
2015-11-15 13:30:05 +01:00
krypt-n
da26209013 Fix LemonBoy/bar#154 and krypt-n/bar#18
Widening the bitfield by 1 would be a solution aswell.
Problem was that an int:3 has a range of -4 to 3, buttons 4 and 5 did not
fit into it
2015-11-15 13:24:36 +01:00
krypt-n
2f66bb1407 Merge remote-tracking branch 'upstream/master' into xft-port
* upstream/master:
  Prevent load_font calls before connecting to X
  The WM_NAME option takes an argument
  Allow the user to set the WM_NAME atom value
  Warn the user when the area geometry is invalid
  Make the number of clickable areas configurable.
  Don't parse named colors. Expand #rgb format.
2015-11-02 13:49:43 +01:00
LemonBoy
2c0f57c584 Prevent load_font calls before connecting to X 2015-10-30 16:11:22 +01:00
LemonBoy
531c575575 Allow the user to set the WM_NAME atom value 2015-10-24 14:44:41 +02:00
LemonBoy
6580e2d4f7 Warn the user when the area geometry is invalid 2015-10-24 14:35:36 +02:00
LemonBoy
255c93dc7a Make the number of clickable areas configurable. 2015-10-24 14:28:51 +02:00
LemonBoy
38422c5014 Don't parse named colors. Expand #rgb format. 2015-10-24 14:04:37 +02:00
krypt-n
882c0bc57d Merge remote-tracking branch 'upstream/master' into xft-port
* upstream/master:
  Account for height of monitors in sorting.
  bar -> lemonbar in .gitignore, remove config.h in .gitignore
  Rewrite *p, *(p+1) as p[0], p[1] for readability.
  Keep percent signs if not followed by {} block.
2015-10-21 20:28:00 +02:00
Nathan Isom
7f8a79131b Account for height of monitors in sorting. 2015-10-21 12:24:04 -05:00
chad
71ed0d3375 Rewrite *p, *(p+1) as p[0], p[1] for readability. 2015-09-27 15:21:49 -05:00
Chad Voegele
63a55dd06c Keep percent signs if not followed by {} block.
The before code would skip a percent sign even if it was not followed by a {}
block. The after code checks the same condition but only advances p if a {} block
is found and otherwise passes it through as text.
2015-09-27 15:16:56 -05:00
krypt-n
020a3e1848 Merge remote-tracking branch 'upstream/master' into xft-port
* upstream/master:
  Conform to coding standard and errors
  Fixed font selection
2015-07-23 21:05:21 +02:00
Giuseppe
a390ef6a5c Merge pull request #132 from krypt-n/font-count-fix
Don't exceed maximum number of fonts
2015-07-22 23:07:45 +02:00
Jesper Jensen
73d8c58286 Conform to coding standard and errors
An error will not be printed if the parameter to `T` is not valid (- or
a number) and the token will be eaten (just like when an invalid
attribute is found)
2015-07-22 22:55:06 +02:00
Jesper Jensen
49fdc25f37 Fixed font selection
Font selection now correctly handles - as a special case.

This change is also reflected in the documentation.
2015-07-22 17:39:31 +02:00
krypt-n
088ddb6b51 Implements same check for offsets, moves offset adding to seperate
function
2015-06-02 09:38:31 +02:00
krypt-n
61ffd9e35e Merge branch 'font-count-fix' into xft-port
* font-count-fix:
  Check force_count to be lower than MAX_FONT_COUNT
2015-06-02 09:32:26 +02:00
krypt-n
a8fa2766fb Check force_count to be lower than MAX_FONT_COUNT 2015-06-02 09:27:53 +02:00
krypt-n
c9f1425cac Adds per font -o 2015-06-02 09:03:55 +02:00
krypt-n
a707113b55 Merge remote-tracking branch 'upstream/master' into xft-port
* upstream/master:
  Update the usage text
  Minor change to -f handling
  travis: Run a apt-get update before installing the needed packages
  Use the maximum width reported by the font if the attributes table isn't found
2015-06-02 08:44:28 +02:00
LemonBoy
a9f285fd28 Update the usage text
The -f option doesn't accept a comma separated list of font names anymore
2015-05-03 17:06:36 +02:00
LemonBoy
7880eac8c9 Minor change to -f handling
Remove the ability of the -f switch to accept a comma-separated list of fonts. The user is expected
to use multiple times -f whenever he wants to specify one or more fonts. This has the side effect of
enabling the user to use fonts whose name contains a comma.
2015-04-23 23:07:42 +02:00
LemonBoy
b82d96a68e Use the maximum width reported by the font if the attributes table isn't found 2015-04-15 10:21:52 +02:00
krypt-n
b95a7dfc88 Makes -o work with bitmap fonts 2015-03-30 18:53:53 +02:00
Juan Luis Boya García
4f60256cd1 Allow to add a vertical offset to the text 2015-03-30 15:38:04 +02:00
Juan Luis Boya García
a683a72a5b Allow to add a vertical offset to the text 2015-03-30 15:31:52 +02:00