Jump to content

Sway: Difference between revisions

14 bytes removed ,  11 July 2023
m
fix code indentation
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
      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 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
      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";
    name = "configure-gtk";
      destination = "/bin/configure-gtk";
    destination = "/bin/configure-gtk";
      executable = true;
    executable = true;
      text = let
    text = let
        schema = pkgs.gsettings-desktop-schemas;
      schema = pkgs.gsettings-desktop-schemas;
        datadir = "${schema}/share/gsettings-schemas/${schema.name}";
      datadir = "${schema}/share/gsettings-schemas/${schema.name}";
      in ''
    in ''
        export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
      export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
        gnome_schema=org.gnome.desktop.interface
      gnome_schema=org.gnome.desktop.interface
        gsettings set $gnome_schema gtk-theme 'Dracula'
      gsettings set $gnome_schema gtk-theme 'Dracula'
        '';
    '';
   };
   };


Anonymous user