From 3dcb48fe23350dca7b42c84487818d0538805c81 Mon Sep 17 00:00:00 2001 From: nat Date: Thu, 3 Jul 2025 22:26:41 -0400 Subject: [PATCH] clifm and start of screenshot --- configuration.nix | 3 +++ home.nix | 7 ++++++- sway/chbright.sh | 26 +++++++++++++++++++++++++- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 06130a7..46489b8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -90,7 +90,10 @@ blahaj ]; + # Allow swaylock to work + security.pam.services.swaylock = { }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/home.nix b/home.nix index 04d0120..cb8c31a 100644 --- a/home.nix +++ b/home.nix @@ -22,8 +22,11 @@ beluga bitwarden brightnessctl + clifm + darktable gimp godot + grim hledger inkscape libreoffice @@ -32,6 +35,7 @@ picard prismlauncher signal-desktop + slurp vlc xournalpp ]; @@ -68,8 +72,9 @@ home.sessionVariables = { EDITOR = "kak"; + LEDGER_FILE = "~/Documents/Accounting/hledger.journal"; }; - + home.stateVersion = "25.05"; } diff --git a/sway/chbright.sh b/sway/chbright.sh index 82b4bca..839b9c2 100755 --- a/sway/chbright.sh +++ b/sway/chbright.sh @@ -1,6 +1,30 @@ bright=$(brightnessctl get) state=-1 -thresh=(0 1 2 3 5 9 15 27 46 80 139 240 415 717 1240 2145 3710 6418 11100 19200) +thresh=(0 +286 +642 +1070 +1568 +2138 +2778 +3490 +4272 +5126 +6050 +7046 +8112 +9250 +10458 +11738 +13088 +14510 +16002 +17566 +19200) +# Linear +#(0 960 1920 2880 3840 4800 5760 6720 7680 8640 9600 10560 11520 12480 13440 14400 15360 16320 17280 18240 19200) +# Exponential +#(0 1 2 3 5 9 15 27 46 80 139 240 415 717 1240 2145 3710 6418 11100 19200) for i in ${!thresh[@]}; do if [ $bright -ge ${thresh[$i]} ]