Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
2586bb14
Commit
2586bb14
authored
Apr 13, 2020
by
Jay Ta'ala
Browse files
Added auto mode to redshift i3 implementation.
parent
5d50b68a
Changes
2
Hide whitespace changes
Inline
Side-by-side
i3/config
View file @
2586bb14
...
...
@@ -393,19 +393,22 @@ bindsym $mod+$mod_next+m floating enable;sticky enable;resize set 791 70;border
# redshift modes
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" {
bindsym r exec --no-startup-id "redshift -x", mode "default"
bindsym 2 exec --no-startup-id "redshift -P -O 2500", mode "default"
bindsym 3 exec --no-startup-id "redshift -P -O 3000", mode "default"
bindsym 4 exec --no-startup-id "redshift -P -O 4000", mode "default"
bindsym 5 exec --no-startup-id "redshift -P -O 5000", mode "default"
bindsym a exec --no-startup-id "$kill_redshift redshift -P", mode "default"
bindsym r exec --no-startup-id "$kill_redshift redshift -x", mode "default"
bindsym 2 exec --no-startup-id "$kill_redshift redshift -P -O 2500", mode "default"
bindsym 3 exec --no-startup-id "$kill_redshift redshift -P -O 3000", 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"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
...
...
i3/config.simple
View file @
2586bb14
...
...
@@ -225,13 +225,15 @@ bindsym $mod+$mod_next+o resize set width 60 ppt
# redshift modes
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" {
bindsym r exec --no-startup-id "redshift -x", mode "default"
bindsym 2 exec --no-startup-id "redshift -P -O 2500", mode "default"
bindsym 3 exec --no-startup-id "redshift -P -O 3000", mode "default"
bindsym 4 exec --no-startup-id "redshift -P -O 4000", mode "default"
bindsym 5 exec --no-startup-id "redshift -P -O 5000", mode "default"
bindsym a exec --no-startup-id "$kill_redshift redshift -P", mode "default"
bindsym r exec --no-startup-id "$kill_redshift redshift -x", mode "default"
bindsym 2 exec --no-startup-id "$kill_redshift redshift -P -O 2500", mode "default"
bindsym 3 exec --no-startup-id "$kill_redshift redshift -P -O 3000", 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"
bindsym Return mode "default"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment