Add telegram in i3 config

master
Quentin Duchemin 2020-05-08 19:13:46 +02:00
parent 3a151e0446
commit 4e7414c809
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
3 changed files with 11 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ExportHW=true
[ALSA-Audio] [ALSA-Audio]
BridgeChannels=2 BridgeChannels=2
BridgeIndexType=1 BridgeIndexType=2
BridgeTool=alsa_in BridgeTool=alsa_in
[JACK] [JACK]

View File

@ -75,6 +75,7 @@ exec atom
exec firefox exec firefox
exec thunderbird exec thunderbird
exec signal-desktop exec signal-desktop
exec telegram-desktop
exec --no-startup-ip i3-msg 'workspace number 1; exec i3-sensible-terminal' exec --no-startup-ip i3-msg 'workspace number 1; exec i3-sensible-terminal'
@ -111,10 +112,10 @@ mode "$film_mode" {
bindsym $mod+Shift+f mode "$film_mode" bindsym $mod+Shift+f mode "$film_mode"
# read 1 character and mark the current window with this character # read 1 character and mark the current window with this character
bindsym $mod+m exec i3-input -F 'mark %s' -l 1 -P 'Mark: ' bindsym $mod+n exec i3-input -F 'mark %s' -l 1 -P 'Mark: '
# read 1 character and go to the window with the character # read 1 character and go to the window with the character
bindsym $mod+Shift+m exec i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Goto: ' bindsym $mod+Shift+n exec i3-input -F '[con_mark="%s"] focus' -l 1 -P 'Goto: '
bindsym $mod+p exec picamenu bindsym $mod+p exec picamenu
@ -211,15 +212,20 @@ for_window [title="^Terminator *"] floating enable
for_window [window_role="pop-up"] floating enable for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable for_window [window_role="task_dialog"] floating enable
for_window [title="Preferences$"] floating enable for_window [title="Preferences$"] floating enable
for_window [class="telegram-desktop"] floating enable
for_window [class="Thunderbird"] move position center for_window [class="Thunderbird"] move position center
for_window [class="Signal"] move position center
for_window [class="telegram-desktop"] move position center
# scratchpad # scratchpad
for_window [class="Signal"] move scratchpad for_window [class="Signal"] move scratchpad
for_window [class="telegram-desktop"] move scratchpad
# we don't use class="Thunderbird" to not move windows like "MsgCompose" to scratchpad : only the main window will be in scratchpad # we don't use class="Thunderbird" to not move windows like "MsgCompose" to scratchpad : only the main window will be in scratchpad
for_window [instance="Mail"] move scratchpad for_window [instance="Mail"] move scratchpad
bindsym $mod+Shift+t [instance="Mail"] scratchpad show, move position center bindsym $mod+Shift+m [instance="Mail"] scratchpad show, move position center
bindsym $mod+Shift+s [class="Signal"] scratchpad show, move position center bindsym $mod+Shift+s [class="Signal"] scratchpad show, move position center
bindsym $mod+Shift+t [class="telegram-desktop] scratchpad show, move position center
# automatic workspace # automatic workspace
assign [class="(?i)Atom"] → number 2 assign [class="(?i)Atom"] → number 2