lock script and prayertimes managed by nix

This commit is contained in:
2026-09-23 03:41:42 +05:00
parent dba38c086a
commit 5306e9f1bd
6 changed files with 35 additions and 6 deletions
+20
View File
@@ -0,0 +1,20 @@
# The screen lock bound to $mod+l in config/sway/config.
#
# It blanks the laptop panel, the keyboard backlight and the external monitor
# (over DDC/CI) before swaylock, then restores whatever they were at. swaylock
# itself comes from the sway module's default extraPackages, ddcutil from the
# host's systemPackages, and brightnessctl from home/packages.nix.
#
# Linked as a plain executable rather than wrapped with writeShellApplication,
# so it stays a file that can be edited and run on its own -- same reasoning as
# home/prayertimes.nix.
#
# Iteration loop: edit scripts/lock.sh -> git add if new -> nixos-rebuild switch.
{ ... }:
{
home.file."scripts/lock.sh" = {
source = ../scripts/lock.sh;
executable = true;
};
}
+1
View File
@@ -6,6 +6,7 @@
ripdrag
playerctl # waybar mediaplayer module + swaync's mpris widget
libnotify # notify-send, used by config/waybar/scripts/monitor-brightness.sh
brightnessctl # waybar backlight scroll + scripts/lock.sh
fastfetch
p7zip
unrar # unfree
-5
View File
@@ -3,11 +3,6 @@
#
# Times come from github.com/WovenCoast/prayertimes-db and the lookup follows
# git.shihaam.dev/flamexode/prayertimes-sh. Every island's table is vendored, so
# switching island is an edit to config/prayertimes/islands.conf and a rebuild.
#
# Only the one script is linked out of scripts/, not the directory: ~/scripts
# also holds unmanaged things, such as the lock.sh that config/sway/config binds
# to $mod+l.
#
# Iteration loop: edit scripts/prayertimes.sh or config/prayertimes/islands.conf
# -> git add if new -> nixos-rebuild switch -> prayertimes.sh today, and
+1
View File
@@ -7,6 +7,7 @@
./packages.nix
./fonts.nix
./kdeconnect.nix
./lock.nix
./nano.nix
./obs.nix
./prayertimes.nix