From b4ec216bdcec4826b6b4b975175bb3e200c8bbdc Mon Sep 17 00:00:00 2001 From: cspark Date: Sat, 16 Mar 2024 05:14:45 +0000 Subject: [PATCH] Config sway background, add notification daemon to packages, setup sway startup --- configurations/laptop/configuration.nix | 1 + configurations/laptop/home.nix | 18 +++++++++++++----- .../resources/home-manager/.config/sway/config | 4 ++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/configurations/laptop/configuration.nix b/configurations/laptop/configuration.nix index 8927193d..138fc4ab 100644 --- a/configurations/laptop/configuration.nix +++ b/configurations/laptop/configuration.nix @@ -44,6 +44,7 @@ wdisplays # Manage wayland displays wlsunset # Day/night gamma adjustment/filter for wayland sway-contrib.grimshot # Screenshot tool for wayland + mako # Notification Daemon lxqt.pcmanfm-qt # File Manager lxqt.lxqt-archiver # Archiver diff --git a/configurations/laptop/home.nix b/configurations/laptop/home.nix index d8d971e3..47c7b304 100644 --- a/configurations/laptop/home.nix +++ b/configurations/laptop/home.nix @@ -46,11 +46,19 @@ TERM = "foot"; }; - programs.bash.shellAliases = { - sudo = "sudo "; - doas = "doas "; - edit = "$EDITOR"; - nixos-rebuild-system-flake = "sudo nixos-rebuild switch --flake /etc/nixos#laptop"; + programs.bash = { + shellAliases = { + sudo = "sudo "; + doas = "doas "; + edit = "$EDITOR"; + nixos-rebuild-system-flake = "sudo nixos-rebuild switch --flake /etc/nixos#laptop"; + }; + # Start sway after login if on TTY1 (Default Linux TTY upon boot/login) + profileExtra = '' + if [[ $(tty) == "/dev/tty1" ]]; then + sway + fi + ''; }; } diff --git a/configurations/laptop/resources/home-manager/.config/sway/config b/configurations/laptop/resources/home-manager/.config/sway/config index 87a2e493..b7c2eee8 100755 --- a/configurations/laptop/resources/home-manager/.config/sway/config +++ b/configurations/laptop/resources/home-manager/.config/sway/config @@ -24,8 +24,8 @@ include /etc/sway/config-vars.d/* ### Output configuration # -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# Wallpaper (Default wallpaper are available in /usr/share/backgrounds/sway/) +output * bg ~/Pictures/Wallpapers/gruvbox_light_linux.png fill # # Example configuration: #