- Reorganize directory structure into core/, features/, and themes/ - Colocate application Nix logic, configs, scripts, and theme overrides - Implement 'Inversion of Control' for theming: apps now pull theme-specific layouts - Update flake.nix and shared library paths to match the new structure - Document the new Feature-Centric architecture in README.md
18 lines
447 B
Bash
Executable File
18 lines
447 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Locks the system using hyprlock, but not before ensuring 1password has also been locked, and the screensaver stopped.
|
|
|
|
# Lock the screen
|
|
pidof hyprlock || hyprlock &
|
|
|
|
# Set keyboard layout to default (first layout)
|
|
hyprctl switchxkblayout all 0 > /dev/null 2>&1
|
|
|
|
# Ensure 1password is locked
|
|
if pgrep -x "1password" >/dev/null; then
|
|
1password --lock &
|
|
fi
|
|
|
|
# Avoid running screensaver when locked
|
|
pkill -f org.nomarchy.screensaver
|