Commit 2586bb14 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Added auto mode to redshift i3 implementation.

parent 5d50b68a
...@@ -393,19 +393,22 @@ bindsym $mod+$mod_next+m floating enable;sticky enable;resize set 791 70;border ...@@ -393,19 +393,22 @@ bindsym $mod+$mod_next+m floating enable;sticky enable;resize set 791 70;border
# redshift modes # redshift modes
bindsym $mod_next+r mode "$mode_redshift" bindsym $mod_next+r mode "$mode_redshift"
set $mode_redshift Set colour temperature: (r)eset, (2)500K, (3)000K, (4)000K, (5)000K set $mode_redshift Set colour temperature: (a)uto, (r)eset, (2)500K, (3)000K, (4)000K, (5)000K
set $kill_redshift pgrep redshift | xargs kill -9;
mode "$mode_redshift" { mode "$mode_redshift" {
bindsym r exec --no-startup-id "redshift -x", mode "default" bindsym a exec --no-startup-id "$kill_redshift redshift -P", mode "default"
bindsym 2 exec --no-startup-id "redshift -P -O 2500", mode "default" bindsym r exec --no-startup-id "$kill_redshift redshift -x", mode "default"
bindsym 3 exec --no-startup-id "redshift -P -O 3000", mode "default" bindsym 2 exec --no-startup-id "$kill_redshift redshift -P -O 2500", mode "default"
bindsym 4 exec --no-startup-id "redshift -P -O 4000", mode "default" bindsym 3 exec --no-startup-id "$kill_redshift redshift -P -O 3000", mode "default"
bindsym 5 exec --no-startup-id "redshift -P -O 5000", mode "default" bindsym 4 exec --no-startup-id "$kill_redshift redshift -P -O 4000", mode "default"
bindsym 5 exec --no-startup-id "$kill_redshift redshift -P -O 5000", mode "default"
# exit mode: "Enter" or "Escape" # exit mode: "Enter" or "Escape"
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
# Start i3bar to display a workspace bar (plus the system information i3status if available) # Start i3bar to display a workspace bar (plus the system information i3status if available)
bar { bar {
i3bar_command i3bar i3bar_command i3bar
......
...@@ -225,13 +225,15 @@ bindsym $mod+$mod_next+o resize set width 60 ppt ...@@ -225,13 +225,15 @@ bindsym $mod+$mod_next+o resize set width 60 ppt
# redshift modes # redshift modes
bindsym $mod_next+r mode "$mode_redshift" bindsym $mod_next+r mode "$mode_redshift"
set $mode_redshift Set colour temperature: (r)eset, (2)500K, (3)000K, (4)000K, (5)000K set $mode_redshift Set colour temperature: (a)uto, (r)eset, (2)500K, (3)000K, (4)000K, (5)000K
set $kill_redshift pgrep redshift | xargs kill -9;
mode "$mode_redshift" { mode "$mode_redshift" {
bindsym r exec --no-startup-id "redshift -x", mode "default" bindsym a exec --no-startup-id "$kill_redshift redshift -P", mode "default"
bindsym 2 exec --no-startup-id "redshift -P -O 2500", mode "default" bindsym r exec --no-startup-id "$kill_redshift redshift -x", mode "default"
bindsym 3 exec --no-startup-id "redshift -P -O 3000", mode "default" bindsym 2 exec --no-startup-id "$kill_redshift redshift -P -O 2500", mode "default"
bindsym 4 exec --no-startup-id "redshift -P -O 4000", mode "default" bindsym 3 exec --no-startup-id "$kill_redshift redshift -P -O 3000", mode "default"
bindsym 5 exec --no-startup-id "redshift -P -O 5000", mode "default" bindsym 4 exec --no-startup-id "$kill_redshift redshift -P -O 4000", mode "default"
bindsym 5 exec --no-startup-id "$kill_redshift redshift -P -O 5000", mode "default"
# exit mode: "Enter" or "Escape" # exit mode: "Enter" or "Escape"
bindsym Return mode "default" bindsym Return mode "default"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment