move theme settings to global vars

This commit is contained in:
Leonardo Eugênio 2022-10-26 23:41:02 -03:00
parent e07ec45d45
commit 32d2e07e84
5 changed files with 15 additions and 40 deletions

View file

@ -24,16 +24,6 @@ let
systemctl --user start swayidle.service
fi
'';
dbus-sway-environment = pkgs.writeTextFile {
name = "dbus-sway-environment";
destination = "/bin/dbus-sway-environment";
executable = true;
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
'';
};
in {
config = {
wayland.windowManager.sway = let
@ -297,7 +287,7 @@ in {
};
extraConfig = ''
for_window [title=.*] inhibit_idle fullscreen
exec ${dbus-sway-environment}/bin/dbus-sway-environment
exec ${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
'';
};
services.swayidle = {

View file

@ -1,9 +1,5 @@
{ config, pkgs, lib, inputs, ... }: let
font = pkgs.uservars.font;
gtk_theme = "Orchis-Red-Dark-Compact";
icon_theme = "Papirus-Dark";
cursor_theme = "capitaine-cursors";
in {
{ config, pkgs, lib, inputs, ... }:
with pkgs.uservars; {
home.pointerCursor = {
name = cursor_theme;
size = 32;

View file

@ -57,6 +57,10 @@ in rec {
color = theme.color;
accent = accents.red;
gtk_theme = "Orchis-Red-Dark-Compact";
icon_theme = "Papirus-Dark";
cursor_theme = "capitaine-cursors";
font = {
mono = "Hack Nerd Font";
interface = "Liberation Sans";