Benjamin Chausse
b4be02f3a8
Add monchange patch
...
Allows one to call a script whenever the monitor configuration changes
(connect/disconnect). As an example, one might want to update the
wallpapers on each display. Here is a script that could be called by
`monchange` in the `config.h` to achieve this:
```
wallDir="${XDG_CONFIG_HOME:-$HOME}/wallpapers"
displays="$(wlr-randr --json | jq -r '.[] | select(.enabled) | .name')"
echo "$displays"
setDisplay() {
case $(ls $wallDir) in
*"$1"*)
wall=$(ls $wallDir | grep "$1" | head -n 1)
;;
*)
wall=$(ls $wallDir | grep "default" | head -n 1)
;;
esac
swaybg --output $1 -m fill --image $wallDir/$wall &
}
killall swaybg > /dev/null 2>&1
for display in $displays; do
setDisplay $display
done
```
2024-08-10 14:10:57 -04:00
..
2024-05-10 19:20:59 +02:00
2024-06-05 12:05:52 +02:00
2024-07-24 15:24:21 +10:00
2024-05-09 23:12:04 -05:00
2024-07-31 01:51:21 -06:00
2024-08-05 01:38:57 +03:00
2024-08-05 01:45:40 +03:00
2024-08-06 15:05:10 +02:00
2024-06-26 22:24:25 +02:00
2024-08-05 01:44:22 +03:00
2024-07-09 11:10:50 -05:00
2024-07-09 15:17:12 +00:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-07-29 21:38:45 +02:00
2024-08-03 05:49:30 +00:00
2024-05-20 10:03:46 +10:00
2024-06-07 16:03:28 -06:00
2024-05-09 23:12:04 -05:00
2024-06-07 16:00:55 -06:00
2024-07-09 11:08:12 -05:00
2024-07-09 11:08:12 -05:00
2024-05-11 02:59:40 +00:00
2024-05-09 23:12:04 -05:00
2024-07-14 14:55:26 +02:00
2024-07-29 21:28:41 +02:00
2024-07-13 08:59:29 +08:00
2024-05-09 23:12:04 -05:00
2024-06-21 13:33:56 +00:00
2024-06-19 23:50:55 +08:00
2024-06-21 13:33:56 +00:00
2024-06-18 19:53:18 +00:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-07-14 15:19:16 +02:00
2024-07-12 15:48:02 -07:00
2024-07-12 16:41:57 +00:00
2024-06-14 18:29:31 +03:00
2024-05-09 23:12:04 -05:00
2024-08-05 01:40:35 +03:00
2024-06-13 14:20:28 -06:00
2024-06-13 14:20:28 -06:00
2024-05-09 23:12:04 -05:00
2024-06-21 15:39:45 +10:00
2024-07-29 21:34:52 +08:00
2024-06-01 02:37:13 +02:00
2024-06-12 20:21:44 +02:00
2024-06-07 16:00:58 -06:00
2024-05-12 11:01:52 -06:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-06-07 16:00:59 -06:00
2024-07-16 14:03:43 -04:00
2024-07-13 01:11:05 +02:00
2024-08-06 00:40:57 +03:00
2024-07-09 11:08:12 -05:00
2024-05-09 23:12:04 -05:00
2024-08-10 14:10:57 -04:00
2024-06-01 06:50:11 +02:00
2024-07-31 13:43:57 +00:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-07-13 15:31:40 +10:00
2024-05-09 23:12:04 -05:00
2024-06-07 16:01:00 -06:00
2024-06-26 16:50:26 +08:00
2024-06-08 16:52:33 +01:00
2024-07-31 13:33:25 +00:00
2024-07-12 16:33:34 +00:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-06-13 15:03:47 -06:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-07-09 15:35:26 +00:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-06-21 13:33:56 +00:00
2024-06-26 10:14:15 +03:00
2024-05-09 23:12:04 -05:00
2024-07-09 11:08:12 -05:00
2024-07-15 17:19:21 +00:00
2024-06-19 23:50:55 +08:00
2024-05-09 23:12:04 -05:00
2024-06-19 11:59:43 -05:00
2024-07-18 11:18:54 +10:00
2024-07-26 12:50:58 +02:00
2024-07-26 13:48:40 +02:00
2024-07-26 13:41:14 +02:00
2024-07-14 15:31:42 +02:00
2024-06-07 16:01:01 -06:00
2024-06-21 13:33:56 +00:00
2024-05-20 13:07:01 +02:00
2024-07-03 12:12:10 +08:00
2024-07-26 13:41:02 +02:00
2024-07-13 20:45:57 +08:00
2024-07-09 11:08:12 -05:00
2024-05-09 23:12:04 -05:00
2024-05-09 23:12:04 -05:00
2024-07-31 22:02:47 +08:00
2024-08-07 18:16:07 +00:00
2024-06-07 08:47:24 +10:00
2024-05-09 23:12:04 -05:00
2024-07-31 12:55:22 +00:00
2024-05-09 23:12:04 -05:00
2024-08-06 21:02:45 +02:00
2024-06-21 15:39:45 +10:00
2024-06-07 16:01:02 -06:00
2024-05-09 23:12:04 -05:00
2024-06-07 08:47:44 +10:00
2024-05-09 23:12:04 -05:00
2024-07-24 15:24:21 +10:00
2024-06-06 16:22:57 +02:00
2024-05-09 23:12:04 -05:00
2024-07-29 21:34:27 +02:00