--- /dev/null
+#!/bin/sh
+# Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+#
+# postswitch - Script executed after the layout switch.
+
+if [ `which wallpaper` ]; then
+ wallpaper
+fi
+
+dunstify "🖵 Profile: ${AUTORANDR_CURRENT_PROFILE}"
#:use-module (conf home status-bar)
#:use-module (conf home wallpaper)
#:use-module (conf home xcompmgr)
+ #:use-module (gnu packages xdisorg)
+ #:use-module (gnu packages xorg)
#:use-module (gnu services)
- #:export (desktop-services))
+ #:export (autorandr-services
+ desktop-services))
+
+(define autorandr-services
+ (list (service home-program-service-type
+ (home-program-configuration
+ (packages
+ (list autorandr
+ xrandr))
+ (dotfiles
+ (list "autorandr/.config/autorandr/postswitch"))))
+ notify-service))
(define desktop-services
(list status-bar-service