Ryan Dwyer
e4cb4d1b5c
Fix swaybar when running on named outputs.
...
When using a bar on a named output, load_swaybars() requires the
output to be active (ie. in the root container), but this is not the case if
the bar is added to the last output. To fix this, load_swaybars() is now
called after the output has been added to the root container.
After fixing that, swaybar would segfault due to using the wrong index
variable when loading outputs and config.
8 years ago
D.B
c239f228c2
swaybar sends workspace name in quotes
...
fixes #894
8 years ago
Drew DeVault
af44154119
Fix constant scale factor in font code
8 years ago
Drew DeVault
b2226ac655
Add client support for HiDPI
...
This adds HiDPI support to swaybar, swaybg, and swaylock.
8 years ago
Drew DeVault
61184e3208
Initial testing on hidpi clients
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Zandr Martin
98aa59fdda
implement solid color rendering for swaybg
8 years ago
Hummer12007
06f46955c0
Fix a warning
8 years ago
Drew DeVault
3bb880bf20
Implement configurable wrapping on bar ws scroll
8 years ago
Drew DeVault
147a88260a
Fix #753
8 years ago
David Eklov
e38d6b94b8
Change workspace when mouse wheel is scrolled while hovering over the bar
8 years ago
David Eklov
250ddc66c6
Rename pointer_input::notify to indicate that is called on button clicks
8 years ago
David Eklov
8a232c8cfd
Send command to sway to change workspace when workspace button is clicked
9 years ago
David Eklov
a0c8799c80
Compute what workspace button is clicked
...
This commit does not do anything with this information other than logging it.
9 years ago
David Eklov
c805e42635
Extract workspace size computation from render_workspace_button()
...
Also remove some unnecessary strtup()s and rename a few variables and functions.
9 years ago
David Eklov
103954dd2b
Setup to receive mouse click events and log them
9 years ago
David Eklov
d3752b4140
swaybar: Make swaybar a shell surface
9 years ago
Drew DeVault
c55ae9956b
Fix another -Wunused-result
9 years ago
Tomáš Čech
468ddfb34d
Fix missing include paths
...
When headers were installed in more sofisticated places (but package
config knows it right), it revealed missing paths in CMake
configuration. Lets fix it.
9 years ago
Mykyta Holubakha
0f1cfdec61
Renamed to pango_markup
9 years ago
Mykyta Holubakha
ee4e245f16
Fix line length calculation
9 years ago
Mykyta Holubakha
2e6c43e62b
Added plaintext_markup to swaybar IPC
9 years ago
Mykyta Holubakha
53b53dd8c2
Added plaintext markup configuration
9 years ago
Drew DeVault
a796ce4f66
Merge pull request #598 from Hummer12007/pango_fix
...
Passing missing argument to get_text_size
9 years ago
Mikkel Oscar Lyderik
11f0b4539d
Use i3bar format for markup field.
...
In the i3bar protocol the value of the markup field is a string: "pango"
or "none" rather than a bool. This patch makes swaybar compatible with
that.
http://i3wm.org/docs/i3bar-protocol.html
9 years ago
Mykyta Holubakha
a25c35f859
Passing missing argument to get_text_size
9 years ago
Drew DeVault
84fae94ab9
Flesh out pango markup implementation
9 years ago
crondog
9c42557b66
Stop swaybar crashing without args
9 years ago
Mikkel Oscar Lyderik
d80466068a
Handle swaybar using sway font
9 years ago
Mikkel Oscar Lyderik
cefcce48aa
Make client/pango.h not depend on client/window.h
9 years ago
Mikkel Oscar Lyderik
af7a251806
Poll before wl_display_dispatch
9 years ago
Mikkel Oscar Lyderik
e4c1176b72
Differentiate between all or no outputs
9 years ago
Mikkel Oscar Lyderik
6d57f03028
Make single bar handle multiple outputs
9 years ago
Mikkel Oscar Lyderik
5e253fdd9a
Correctly exit sway on errors.
...
Calling `exit` in sway_terminate prevents sway from correctly shutting
down (freeing data, cleanly terminating the ipc server, etc.).
A better way is to exit straight away if the failure occurs before
`wlc_run` and use sway_abort as usual if it occur when wlc is running.
9 years ago
Christoph Gysin
a5345e807e
extract cairo_set_source_u32()
9 years ago
Mikkel Oscar Lyderik
123de86001
swaybar: Fix plaintext handling.
...
Fix #473
9 years ago
Mikkel Oscar Lyderik
96935f2682
Fix colors off by one
9 years ago
Mikkel Oscar Lyderik
ed227f5664
swaybar: move headers to include/bar
9 years ago
Mikkel Oscar Lyderik
a61a27c485
swaybar: cleanup CmakeLists.txt
9 years ago
Mikkel Oscar Lyderik
aa6ad09183
swaybar: rename state to bar
9 years ago
Mikkel Oscar Lyderik
c6fc0033e1
swaybar: move core functionality to state.c
9 years ago
Mikkel Oscar Lyderik
6140f9c42c
swaybar: Move swaybar_teardown to free_state
9 years ago
Mikkel Oscar Lyderik
fcc47cb3bd
swaybar: move ipc stuff to ipc.{h,c}
9 years ago
Mikkel Oscar Lyderik
a6349a2444
swaybar: feactor render, statusline
9 years ago
Mikkel Oscar Lyderik
bb986cb336
swaybar: Separate config
9 years ago
Christoph Gysin
ac3f36c091
swaybar: add --help option
9 years ago
Christoph Gysin
bba72fb21a
swaybar: debug option takes no argument
9 years ago
Mikkel Oscar Lyderik
364e37a1eb
Fix whitespace issues.
9 years ago
crondog
7f7e06d4c9
swaybar: fix logging
...
Optionally turn on debugging in swaybar. I acidentally introduced
persistent logging in a previous commit
9 years ago
Mikkel Oscar Lyderik
576181ec09
swaybar: Implement workspace_buttons yes|no
9 years ago