Commit graph

597 commits

Author SHA1 Message Date
Vincent Bernat
eda39cbd22 polybar-weather: switch to Font Awesome for weather
This way, we only use one font. It seems good enough.
2021-08-11 18:28:42 +02:00
Vincent Bernat
6207bc2c7e polybar-weather: wait longer before checking nm-online 2021-08-11 15:55:25 +02:00
Vincent Bernat
8fd82af49f polybar-weather: discard first forecast if in less than two hours 2021-08-11 10:15:00 +02:00
Vincent Bernat
0129d85f70 polybar-weather: also log first forecast time 2021-08-11 08:32:28 +02:00
Vincent Bernat
7c39cfb940 polybar-weather: also use current weather
I was under the impression the first forecast value may include the
current weather. This is not the case. Times provided in forecast are
in UTC. So, also include the current weather.
2021-08-11 08:28:15 +02:00
Vincent Bernat
77db51b12c polybar-weather: fix missing import 2021-08-11 07:55:12 +02:00
Vincent Bernat
62645d0a66 polybar-weather: gracefully handle connection error when waking up
nm-online may think we are still online, but we are not, just try a
location request and if it fails, wait to be online.
2021-08-10 21:45:09 +02:00
Vincent Bernat
af1e3135cf polybar-weather: log city, just in case 2021-08-10 17:20:18 +02:00
Vincent Bernat
9e55aa23b9 polybar-weather: make number of forecasts configurable 2021-08-10 17:15:25 +02:00
Vincent Bernat
f7e0fd5250 dimmer: rename to xss-dimer 2021-08-10 16:17:02 +02:00
Vincent Bernat
e88352aa67 polybar-weather: tell where to find weather icons 2021-08-10 13:35:16 +02:00
Vincent Bernat
78004178e4 polybar-weather: use different icons when day/night
Also, on hot days, switch to a specific icon.
2021-08-10 13:34:17 +02:00
Vincent Bernat
1924f7731e wallpaper: rename wallpaper binary to match service name 2021-08-10 13:21:04 +02:00
Vincent Bernat
85b56cd2d5 weather: remove dupes in forecast if no change 2021-08-10 13:14:22 +02:00
Vincent Bernat
0559c830ef polybar: display current weather 2021-08-10 13:08:15 +02:00
Vincent Bernat
89e38c3d25 xss-lock: document an alternative using xsecurelock and mpv
Also, it would be neat if --panscan=1.0 was enabled in mpv
configuration.
2021-08-09 19:51:14 +02:00
Vincent Bernat
30df63aea1 i3-companion: fix case where candidate workspace is scratchpad 2021-08-09 16:22:09 +02:00
Vincent Bernat
e91e96c77b i3-companion: fix detection of intrusive apps 2021-08-09 16:18:28 +02:00
Vincent Bernat
33b63b8eeb i3-companion: icon for DarkTable 2021-08-09 12:17:33 +02:00
Vincent Bernat
7e7de17938 i3-companion: icon for grisbi 2021-08-08 21:49:46 +02:00
Vincent Bernat
14d64de364 wallpaper: add support for WebP format 2021-08-08 15:25:59 +02:00
Vincent Bernat
e4a5aa99e8 i3: move screenshot to an helper script 2021-08-08 13:18:49 +02:00
Vincent Bernat
17b0e272ae polybar: make the bar a bit smaller 2021-08-07 21:09:10 +02:00
Vincent Bernat
5ebd843b65 dimmer: adapt default opacity values
The goal is to still be able to kill it in case something wrong happens.
2021-08-07 14:16:36 +02:00
Vincent Bernat
3a61a26cba dimmer: fix exception catching when handling X events 2021-08-07 14:11:59 +02:00
Vincent Bernat
383c52c4be dimmer: simplify shebang 2021-08-07 14:11:15 +02:00
Vincent Bernat
d0f03901e6 dimmer: remove deprecated use of cairo_create() 2021-08-07 14:10:43 +02:00
Vincent Bernat
96f1f7235b Revert "dimmer: tentative to not use cairo_create() which is deprecated"
This reverts commit b77d74171e.
2021-08-07 09:53:27 +02:00
Vincent Bernat
b77d74171e dimmer: tentative to not use cairo_create() which is deprecated
However, this does not work...
2021-08-07 09:49:47 +02:00
Vincent Bernat
ce96bd5b32 dimmer: don't set wmclass
Gtk automatically does that.
2021-08-07 09:30:39 +02:00
Vincent Bernat
bfda96a86c dimmer: integration into main loop
Just for fun.
2021-08-07 09:25:37 +02:00
Vincent Bernat
3aa4d9686c dimmer: quit when i3lock window is ready 2021-08-07 08:48:01 +02:00
Vincent Bernat
b05514177f dimmer: remove previous tentative to detect i3lock 2021-08-06 21:57:23 +02:00
Vincent Bernat
ad1fa52a73 dimmer: try to quit when i3lock window appear
Using Wnck, we could be able to detect i3lock window. However, being
unmanaged, it is not detected...
2021-08-06 21:56:16 +02:00
Vincent Bernat
22262cce1c spotify: don't sort clients when cleaning up
It seems that the ID is not strictly increasing.
2021-08-06 14:33:31 +02:00
Vincent Bernat
45e503f017 i3-companion: keep a bit more history for workspace switcher
Useful if we make a workspace disappear.
2021-08-06 10:45:27 +02:00
Vincent Bernat
c96c93ac02 i3-companion: make other browsers exclusive as well 2021-08-06 08:09:22 +02:00
Vincent Bernat
56806a7aea Revert "dimmer: tentative to quit if we are obscured (presumably by i3lock)"
This reverts commit d72855073a. So, this
doesn't work.
2021-08-06 00:19:41 +02:00
Vincent Bernat
d72855073a dimmer: tentative to quit if we are obscured (presumably by i3lock)
This does not happend because, I suppose, we are using a compositor.
2021-08-06 00:16:58 +02:00
Vincent Bernat
6e75c87102 dimmer: no need to stay above (and fight with other clients) 2021-08-05 23:31:40 +02:00
Vincent Bernat
959aa992bf dimmer: use override_redirect to stay on top
Otherwise, we are just floating and we are not on top of fullscreen
windows. This also allows us to remove some of window-manager-related
attributes.
2021-08-05 21:55:12 +02:00
Vincent Bernat
66f8fcbef7 i3-companion: simplify static decorator 2021-08-05 20:48:06 +02:00
Vincent Bernat
e51bb453f6 xss-lock: remove unused function 2021-08-04 11:44:21 +02:00
Vincent Bernat
6729429c57 dimmer: display a countdown 2021-08-04 11:27:27 +02:00
Vincent Bernat
e06eda914e dimmer: add a mode
And remove some useless comments.
2021-08-04 08:31:52 +02:00
Vincent Bernat
96035be8cb i3-companion: ignore dimmer for icons 2021-08-04 08:23:19 +02:00
Vincent Bernat
3d9c3e458c xss-lock: use a dimmer service to start/stop dimmer
This way, we can lock the screen before stopping dimmer.
2021-08-04 08:21:27 +02:00
Vincent Bernat
8d70ce8106 xss-lock: fix dimmer invocation
It should run in background.
2021-08-04 00:32:17 +02:00
Vincent Bernat
b1ae3bd89d xss-lock: dimmer don't need to be killed when there is movement
We redraw correctly when needed.
2021-08-04 00:04:52 +02:00
Vincent Bernat
00b6359835 xss-lock: provide a dimmer written in Python 2021-08-04 00:01:48 +02:00