nix: i3: add sct mode
This commit is contained in:
parent
c51aeacd03
commit
ab85586a5d
|
@ -65,23 +65,6 @@ for_window [urgent=latest] focus
|
|||
# Set shut down, restart and locking features
|
||||
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
|
||||
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"";
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
mode_pres_main = "Presentation (main display)";
|
||||
mode_pres_sec = "Presentation (secondary display)";
|
||||
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
|
||||
{
|
||||
terminal = "alacritty";
|
||||
|
@ -208,6 +209,7 @@
|
|||
"${mod}+r" = "mode ${mode_resize}";
|
||||
"${mod}+Shift+p" = "mode ${mode_pres_main}";
|
||||
"${mod}+t" = "mode ${mode_screen}";
|
||||
"${mod}+y" = "mode ${mode_temp}";
|
||||
};
|
||||
modes = let return_bindings = {
|
||||
"Return" = "mode default";
|
||||
|
@ -257,6 +259,14 @@
|
|||
"r" = "exec ${autorandrmenu {title="Remove profile"; option="--remove";}}, mode default";
|
||||
"d" = "exec ${autorandrmenu {title="Default profile"; option="--default"; builtin = true;}}, mode default";
|
||||
} // 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
|
||||
lemonbar-xft
|
||||
keynav
|
||||
sct
|
||||
xorg.xinit
|
||||
xorg.xbacklight
|
||||
|
||||
|
|
Loading…
Reference in a new issue