move theme settings to global vars
This commit is contained in:
parent
e07ec45d45
commit
32d2e07e84
5 changed files with 15 additions and 40 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue