Skip to content

Commit

Permalink
modules/sternenseemann/sway: work around new screensharing issue
Browse files Browse the repository at this point in the history
Sway updates it's WAYLAND_DISPLAY variable in a way dbus doesn't pick up
on. Fix is taken from here:
NixOS/nixpkgs#119445 (comment)
  • Loading branch information
sternenseemann committed Apr 16, 2021
1 parent fbe89b5 commit 24486fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/user/sternenseemann/services/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ let
;

bins = (getBins pkgs.pulseaudioLight [ "pactl" ])
// (getBins pkgs.dbus [ "dbus-run-session" ])
// (getBins pkgs.dbus [
"dbus-run-session"
"dbus-update-activation-environment"
])
// (getBins cfg.package [ "sway" ])
// (getBins pkgs.i3status [ "i3status" ])
// (getBins pkgs.brightnessctl [ "brightnessctl" ])
Expand Down Expand Up @@ -160,6 +163,7 @@ in {
"sway/config".text = ''
# correct DPI after hotplugging
exec ${pkgs.xorg.xrdb}/bin/xrdb -load ${dpiXresources}
exec ${bins.dbus-update-activation-environment} WAYLAND_DISPLAY
# set the one true modifier
set $mod Mod4
Expand Down

0 comments on commit 24486fb

Please sign in to comment.