Sway: Difference between revisions
imported>Techhazard added swaylock pam config |
imported>Colinsane m fix code indentation |
||
Line 23: | Line 23: | ||
text = '' | text = '' | ||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway | |||
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr | |||
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr | |||
''; | |||
}; | }; | ||
Line 36: | Line 36: | ||
# run at the end of sway config | # run at the end of sway config | ||
configure-gtk = pkgs.writeTextFile { | configure-gtk = pkgs.writeTextFile { | ||
name = "configure-gtk"; | |||
destination = "/bin/configure-gtk"; | |||
executable = true; | |||
text = let | |||
schema = pkgs.gsettings-desktop-schemas; | |||
datadir = "${schema}/share/gsettings-schemas/${schema.name}"; | |||
in '' | |||
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS | |||
gnome_schema=org.gnome.desktop.interface | |||
gsettings set $gnome_schema gtk-theme 'Dracula' | |||
''; | |||
}; | }; | ||