add waybar and notifcaitons

This commit is contained in:
2026-09-23 00:44:36 +05:00
parent 12fea5c39e
commit 51b4b123dd
14 changed files with 1503 additions and 1 deletions
+2
View File
@@ -4,6 +4,8 @@
{
home.packages = with pkgs; [
ripdrag
playerctl # waybar mediaplayer module + swaync's mpris widget
libnotify # notify-send, used by config/waybar/scripts/monitor-brightness.sh
fastfetch
p7zip
unrar # unfree
+2
View File
@@ -10,7 +10,9 @@
./nano.nix
./obs.nix
./sway.nix
./swaync.nix
./theme.nix
./waybar.nix
];
home.username = "shihaam";
+29
View File
@@ -0,0 +1,29 @@
# SwayNotificationCenter -- the notification daemon, replacing mako.
#
# mako shows a notification's actions only as "click the popup to fire the
# default one"; swaync draws one button per action, which is what makes
# blueman's pairing prompts (Accept / Reject / Always accept), browser
# permission prompts and the like usable without hunting for a CLI.
#
# Nothing else may own org.freedesktop.Notifications -- two daemons racing for
# that name means whichever lost silently eats every notification. Sway starts
# it from its exec block (config/sway/config), same as waybar; there is no
# graphical-session.target running here, so a systemd user unit would never
# fire.
#
# Config stays in swaync's own syntax at config/swaync/ and is symlinked, like
# sway and waybar. cssPriority = "user" in config.json is what lets style.css
# override the GTK theme instead of losing to it.
#
# Iteration loop: edit config/swaync/... -> git add if new ->
# nixos-rebuild switch -> swaync-client -rs (reload config + css).
{ pkgs, ... }:
{
home.packages = with pkgs; [ swaynotificationcenter ];
xdg.configFile."swaync" = {
source = ../config/swaync;
recursive = true;
};
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }:
{
xdg.configFile."waybar" = {
source = ../config/waybar;
recursive = true;
};
}
# Iteration loop: edit config/waybar/... -> git add if new ->
# doas nixos-rebuild switch --flake /home/shihaam/git/sargit/dotfiles#la2410 && pkill -SIGUSR2 waybar