Add a i3 mode for film mode

master
Quentin Duchemin 2019-11-15 15:42:50 +01:00
parent 0cddbd6950
commit 695a386447
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 10 additions and 3 deletions

View File

@ -6,6 +6,9 @@
# Mod1 = alt # Mod1 = alt
set $mod Mod1 set $mod Mod1
set $resize_mode Resize: [←] [→] [↑] [↓]
set $film_mode Film Mode: [u]p [d]own
# font for window titles. # font for window titles.
font pango:Roboto, Bold 10 font pango:Roboto, Bold 10
@ -94,8 +97,12 @@ bindsym $mod+Print exec ~/.config/i3/scripts/screenshot.py -s
# screenshot and upload to Lychee # screenshot and upload to Lychee
bindsym Print exec ~/.config/i3/scripts/screenshot.py -u bindsym Print exec ~/.config/i3/scripts/screenshot.py -u
mode "$mode_film" {
bindsym u exec ~/.config/i3/scripts/film_mode.sh on
bindsym d exec ~/.config/i3/scripts/film_mode.sh off
}
# toggle film mode # toggle film mode
bindsym $mod+Shift+f exec ~/.config/i3/scripts/film_mode.sh bindsym $mod+Shift+f mode "$mode_film"
################################## ##################################
# BINDINGS FOR STANDARD OPERATIONS # BINDINGS FOR STANDARD OPERATIONS
@ -169,7 +176,7 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "$mode_resize" {
# Pressing left will shrink the windows width. # Pressing left will shrink the windows width.
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
@ -185,7 +192,7 @@ mode "resize" {
bindsym Escape mode "default" bindsym Escape mode "default"
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "$mode_resize"
################################## ##################################
# OPERATIONS FOR SPECIFIC WINDOWS # OPERATIONS FOR SPECIFIC WINDOWS