nix #11

Manually merged
geoffrey merged 113 commits from nix into main 2023-12-09 21:43:01 +01:00
2 changed files with 10 additions and 18 deletions
Showing only changes of commit ab85586a5d - Show all commits

View file

@ -65,23 +65,6 @@ for_window [urgent=latest] focus
# Set shut down, restart and locking features # Set shut down, restart and locking features
set $locker $HOME/.config/i3/lock set $locker $HOME/.config/i3/lock
# Screen temperature ("redness") setting
"$mod+y" = "mode "$mode_temp"";
set $mode_temp Temperature [R] Red [D] Dust storm [C] Campfire [O] Normal [A] All nighter [B] Blue
mode "$mode_temp" {
"r" = "exec sct 1000";
"d" = "exec sct 2000";
"c" = "exec sct 4500";
"o" = "exec sct";
"a" = "exec sct 8000";
"b" = "exec sct 10000";
# back to normal: Enter or Escape
"Return" = "mode "default"";
"Escape" = "mode "default"";
}
# Inactivity settings # Inactivity settings
exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby' -killtime 1 -killer '$locker' exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby' -killtime 1 -killer '$locker'
"$mod+F1" = "exec --no-startup-id sh -c "sleep .25 && xset dpms force off""; "$mod+F1" = "exec --no-startup-id sh -c "sleep .25 && xset dpms force off"";

View file

@ -49,6 +49,7 @@
mode_pres_main = "Presentation (main display)"; mode_pres_main = "Presentation (main display)";
mode_pres_sec = "Presentation (secondary display)"; mode_pres_sec = "Presentation (secondary display)";
mode_screen = "Screen setup [A] Auto [L] Load [S] Save [R] Remove [D] Default"; mode_screen = "Screen setup [A] Auto [L] Load [S] Save [R] Remove [D] Default";
mode_temp = "Temperature [R] Red [D] Dust storm [C] Campfire [O] Normal [A] All nighter [B] Blue";
in in
{ {
terminal = "alacritty"; terminal = "alacritty";
@ -208,6 +209,7 @@
"${mod}+r" = "mode ${mode_resize}"; "${mod}+r" = "mode ${mode_resize}";
"${mod}+Shift+p" = "mode ${mode_pres_main}"; "${mod}+Shift+p" = "mode ${mode_pres_main}";
"${mod}+t" = "mode ${mode_screen}"; "${mod}+t" = "mode ${mode_screen}";
"${mod}+y" = "mode ${mode_temp}";
}; };
modes = let return_bindings = { modes = let return_bindings = {
"Return" = "mode default"; "Return" = "mode default";
@ -257,6 +259,14 @@
"r" = "exec ${autorandrmenu {title="Remove profile"; option="--remove";}}, mode default"; "r" = "exec ${autorandrmenu {title="Remove profile"; option="--remove";}}, mode default";
"d" = "exec ${autorandrmenu {title="Default profile"; option="--default"; builtin = true;}}, mode default"; "d" = "exec ${autorandrmenu {title="Default profile"; option="--default"; builtin = true;}}, mode default";
} // return_bindings; } // return_bindings;
"${mode_temp}" = {
"r" = "exec ${pkgs.sct}/bin/sct 1000";
"d" = "exec ${pkgs.sct}/bin/sct 2000";
"c" = "exec ${pkgs.sct}/bin/sct 4500";
"o" = "exec ${pkgs.sct}/bin/sct";
"a" = "exec ${pkgs.sct}/bin/sct 8000";
"b" = "exec ${pkgs.sct}/bin/sct 10000";
} // return_bindings;
}; };
}; };
}; };
@ -361,7 +371,6 @@
xclip xclip
lemonbar-xft lemonbar-xft
keynav keynav
sct
xorg.xinit xorg.xinit
xorg.xbacklight xorg.xbacklight