Commit Graph

198 Commits (532a90259b68b08385648aa9332de78f1df709bf)

Author SHA1 Message Date
Thomas Hebb 1fe0bcacc0 style: add 4px margins to window and workspaces modules
These modules, unlike others, have no horizontal margins by default.
This means that they'll appear uncomfortably close together in any
config that puts them side-by-side. In general, the default style should
make configs with any module ordering look good. Add the same 4px
horizontal margins that other module have to these.

To preserve the current default appearance, exempt the workspace module
from a margin on the appropriate side when it's the leftmost or
rightmost module on the bar.
2020-12-02 05:12:48 -08:00
Jeremy Attali dd596a5c6c fix(systemd): restart when service fails
The current service doesn't play too nice with Sway when it is started
from [sway service](https://github.com/xdbob/sway-services).

Waybar is started before the system has a display.

```
Nov 30 22:11:23 ansan waybar[1352]: Unable to init server: Could not
connect: Connection refused
Nov 30 22:11:23 ansan waybar[1352]: cannot open display:
Nov 30 22:11:23 ansan systemd[1306]: waybar.service: Main process
exited, code=exited, status=1/FAILURE
Nov 30 22:11:23 ansan systemd[1306]: waybar.service: Failed with result
'exit-code'.
```

Restarting the service after the system has been initialized works nicely,
so this restart rule should do the trick without tinkering with the
target.
2020-11-30 23:24:30 -05:00
nikto_b 8349316fcd
Merge branch 'master' into sway-language-module 2020-10-12 13:31:39 +03:00
Alex 7b78a29f3f
Merge pull request #843 from tchebb/align-workspace-text
style(workspaces): align text with other modules
2020-10-11 14:40:45 +02:00
nikto_b cc3acf8102
feature: created sway language submodule; added styles & config part for a sway language submodule 2020-10-10 19:09:18 +03:00
koffeinfriedhof c651670222 Added song position and queue length. 2020-09-13 18:49:47 +02:00
Thomas Hebb 1b22e2b320 style(workspaces): align text with other modules
Currently, the bottom border on workspace buttons eats into the box size
and causes the text to sit higher than in other modules. This is ugly
when there are other modules (like the window title) right next to the
workspace module. To fix the issue, create the bottom border using an
inset box-shadow, which doesn't affect the box's content sizing.
2020-08-29 22:56:26 -07:00
Maxim Baz d51adfe7bc
systemd: use standard targets, update service type 2020-08-06 23:21:53 +02:00
Alex 8f6273e9d0 refactor(config): comment default config layer 2020-04-11 12:08:30 +02:00
Дамјан Георгиевски 03130b7565 systemd service: fix start up ordering
the service needs to have After=wayland-session.target otherwise it'll
be started in parallel to the compositor which might not be fully
configured
2020-03-03 22:35:48 +01:00
Skirmantas Kligys 3c268d83c2 Merge branch 'master' into simple_calendar 2020-02-05 11:07:09 -08:00
Torstein Husebø f107aaddc3 Finish #571 2020-02-04 12:16:50 +01:00
Torstein Husebø 34a710cce3 Fix typos 2020-02-03 10:40:26 +01:00
Skirmantas Kligys 8e05aab4d9 Current month calendar in clock tooltip. 2020-01-31 10:36:40 -08:00
Michael Cordover 3130a57622 Add timezone support to clock module (closes #223) 2020-01-23 08:26:49 -05:00
Adrien Lemaire db1136d647
feat: show title if artist isn't available 2020-01-01 13:50:29 +09:00
Alex 6d5e328928 feat(style): add comment about icons font 2019-10-02 10:27:46 +01:00
Krystian Chachuła 8830247b9e add padding for mpd module in default style
In the default style.css many modules (clock, battery, cpu, ...) get horizontal padding, but mpd module does not. This commit adds mpd to the list of modules that get the padding.
2019-09-17 19:50:53 +02:00
Дамјан Георгиевски ce50249c04 service file: allow for waybar installed in different prefix 2019-09-10 13:56:34 +02:00
Alex 5bb6fa384d
Revert "service file: allow for waybar installed in different prefix" 2019-09-10 12:06:06 +02:00
Дамјан Георгиевски f152ad9fa9 service file: allow for waybar installed in different prefix 2019-09-08 14:04:34 +02:00
Дамјан Георгиевски a0a3c01e79 install a systemd user unit
add a systemd --user unit/service file, so that one can run waybar as a
--user systemd service. when the service is enabled, Waybar will start
when the wayland-session.target is started.

this feature is automatically enabled if systemd is found, but can be disabled
with -Dsystemd=disabled
2019-09-07 22:16:03 +02:00
tufteddeer d8b1b0d0af
add support for muted bluetooth audio, fix #420 2019-08-18 16:15:21 +02:00
Sibren Vasse 12f869ccba chore: add player filter example in config 2019-07-31 11:59:33 +02:00
Sibren Vasse 7e9207d75c fix(custom): ignore selected_player if not defined. Fixes #419 2019-07-31 11:53:59 +02:00
Alex 22ddbde394 style(workspaces): update hover style 2019-06-28 13:41:53 +02:00
Alex 1d2dd953e7 revert: default config 2019-06-16 15:09:26 +02:00
Alex 340ec7be91 refactor: AModule 2019-06-15 14:57:52 +02:00
rianadon 460d25ac45
Increase specificity of media stylings
Because of CSS specificity rules, the `#custom-media` style will always override the `custom-spotify` and `custom-vlc` styles, so the background of the media element is always green rather than sometimes orange when VLC is running. I added `#custom-media` in front of each of the class selectors to increase their specificity so they take precedence.
2019-06-07 22:18:06 -07:00
Alex 918146c16b style: prefer background-color property 2019-05-31 17:20:14 +02:00
Alex be2fa743eb refactor(custon): hide on empty text 2019-05-27 00:05:29 +02:00
Alex 2fa581c7ea fix(battery): multiple paths 2019-05-22 10:06:54 +02:00
Alex 3e76984ce7 chore: update network config 2019-05-21 17:44:46 +02:00
Alex 296b448d06 chore: update pulseaudio config 2019-05-21 14:58:03 +02:00
Alex bb4af295bc feat(pulseaudio): source info 2019-05-21 14:53:31 +02:00
Olegs Jeremejevs d5c1e6f312 Change scroll-step unit to percent 2019-05-17 11:19:58 +08:00
Alex a09d2222be style: remove non wanted tags 2019-05-16 11:26:48 +02:00
Alex 841576497a refactor: cleaner events 2019-05-16 11:22:22 +02:00
Alex 5b3402e110 feat(Battery): plugged status 2019-05-14 15:43:57 +02:00
Alex d209d350fe style(media): reduce min-width 2019-05-13 15:48:18 +02:00
Alex 0968170074 style(media): min-width 2019-05-13 15:40:02 +02:00
Alex db14fac038 style: remove chromium style 2019-05-13 13:23:32 +02:00
Alex fcb23d3104 feat(temperature): format-icons 2019-05-13 11:31:05 +02:00
Alex 62f8af8a39 fix(Window): avoid multiple same classes 2019-05-13 10:56:48 +02:00
Eric Engestrom 4d4562aade fix s/hidded/hidden/ typo 2019-05-01 12:40:12 +01:00
Alex 4dd36890c1 style: background color transition 2019-04-26 12:37:35 +02:00
Alex 66acaeca7f style: workspaces button color for chromium class 2019-04-26 12:01:42 +02:00
Alex 46c91a26ac style: workspaces button color for chromium class 2019-04-25 17:14:16 +02:00
Alex bb8ff5a99f feat(Bar): add class depend of window in the workspace 2019-04-25 16:47:51 +02:00
Alex 311c34ecbc feat(Bar): handle widget size changes 2019-04-24 12:37:24 +02:00
Alex 90d89fe974 refactor: kill custom modules scripts en destroy 2019-04-23 15:56:38 +02:00
Cole Helbling 160837b900
Ensure no NULL tags are set
Because `mpd_song_get_tag` from libmpdclient can return NULL, verify the
value of tag is valid. Otherwise, set a default string of "N/A". Also
adds configuration to specify what this default string should be.
2019-04-20 09:12:30 -07:00
Alex a14b933d3e fix(config): add missing comma 2019-04-18 17:55:02 +02:00
Minijackson 3e54c3c669
fix(mpd): better sample theme 2019-04-18 15:57:58 +02:00
Minijackson 0ce8821aec
feat(mpd): Add playing / paused classes 2019-04-18 15:57:57 +02:00
Minijackson 38e37f3680
chore(mpd): add sample MPD config 2019-04-18 15:57:57 +02:00
Minijackson 06aff70e2e
feat: Add basic support for MPD 2019-04-18 15:55:45 +02:00
Alex ecc5f48dd7 feat: partially hide waybar on toggle 2019-04-15 11:11:16 +02:00
Alex a68011bce6 style(workspaces): urgent style 2019-04-02 09:31:40 +02:00
Sibren Vasse 0f689b733d feat(custom): make spotify module generic
Set class via json attribute
Choose icon via alt attribute
2019-03-31 16:20:43 +02:00
Sibren Vasse 618fe80670 chore(custom): fix typo and quoting style 2019-03-31 16:10:42 +02:00
Daniel Voogsgerd 095294389b feat(Spotify): Add option to select player 2019-03-27 22:27:23 +01:00
Daniel Voogsgerd 3bcf3befec chore(Spotify): Add logging for events 2019-03-27 17:28:02 +01:00
Daniel Voogsgerd db69b449ba feat(Spotify): Add logger 2019-03-27 16:37:59 +01:00
Daniel Voogsgerd ed358ef024 feat(Spotify): Add argument parser 2019-03-27 16:33:15 +01:00
Daniel Voogsgerd faa79ea216 refactor: Add main method / Clean global scope 2019-03-27 16:10:36 +01:00
Alex dda0cc793e fix: check vertical after parsing multiple outputs 2019-03-25 21:02:00 +01:00
Alex 47142a61ae feat: allow waybar to be positioned on left/right 2019-03-22 12:25:05 +01:00
Alex 6d2dcd8ac7 fix(temperature): default thermal zone 2019-03-14 14:01:10 +01:00
Alex 7d6079bb06 style: update default temperature style/config 2019-03-13 22:39:39 +01:00
Groggy 7ae549dc9e
Add temperature module 2019-03-13 13:35:43 +01:00
Alex 973cec1713 feat(idle): add status class 2019-03-10 10:29:06 +01:00
Piet van der Loo 821a009c32 Fix tooltip format 2019-02-25 19:25:19 +01:00
Piet van der Loo 8fa30f8ce3 Forgot comma in json 2019-02-24 11:54:59 +01:00
Piet van der Loo da4661f97c Removed clock tooltip from example config 2019-02-24 11:49:58 +01:00
Piet van der Loo 7245fb5d0a Added clock tooltip with optional alternate format 2019-02-24 09:25:34 +01:00
Alex b4f36436c3 style: update idle inhibitor color 2019-02-22 17:34:13 +01:00
Jonas d708ce2be9 Add idle inhibitor module 2019-02-22 16:55:46 +01:00
Alex afbf2de1b9
Merge branch 'master' into feature/module-brightness 2019-02-21 15:29:17 +01:00
Alex 8bfcb106c0 style: comment about workspace hover effect 2019-02-18 12:30:41 +01:00
Ian Hattendorf 875306804c
Add backlight module
Monitor the backlight level via udev. Poll every `interval` as well,
in case backlight udev events aren't supported.
2019-02-17 15:29:49 -07:00
Alex 01cec9fcb7 fix(bar): multi screens 2019-02-04 22:09:01 +01:00
Alex 0ddcf26a45 feat: output configuration 2019-02-01 21:45:59 +01:00
Sibren Vasse a0cdef569b fix(custom): fix conditional statement 2018-11-26 19:35:03 +01:00
Sibren Vasse c4c0c01a2f
feat(custom): event based mediaplayer script 2018-11-23 12:08:15 +01:00
Alexis aaaa17d94f fix(config): remove duplicate tray 2018-11-22 16:21:46 +01:00
Alexis 0b1b0eb1a7 feat(tray): multiple hosts 2018-11-22 16:20:49 +01:00
Alexis bd62c4cbc5 feat(Label): use set_markup 2018-11-21 20:49:09 +01:00
Alexis b3559328f1 fix(window): ellipsize 2018-11-20 23:24:33 +01:00
Alexis 94b9f0a399 feat(cpu): add both usage and load 2018-11-15 14:44:43 +01:00
Robinhuett 50e782e028 chore: update example config 2018-11-13 21:40:47 +01:00
Robinhuett e21df5ae36 Add config option for volume change scroll step size 2018-11-09 22:48:27 +01:00
Alexis 6ab01b1ad4 fix(style): not charging 2018-11-02 23:00:38 +01:00
Alexis 00e7e87f55 fix: style 2018-11-02 17:39:00 +01:00
Alexis 836c543c62 fix: style 2018-11-02 17:07:51 +01:00
Alexis 7bca5fd6bd feat(Bar): add a warning about minimum height 2018-11-02 12:35:26 +01:00
Alex 61e9f0803d
Merge pull request #75 from ForTheReallys/proper_height
Fix #54
2018-11-02 12:26:14 +01:00
Alexis 9b201c77d7 feat: battery states && format-full/charging 2018-11-02 11:23:29 +01:00
Alex Maese 4b68840212 Fix #54 2018-11-01 16:00:38 -05:00
Alexis 9d4048983d refactor: remove useless tmp variable 2018-11-01 09:27:00 +01:00