From 4e7414c8099d81b8c4c7726aa9f9acda4b909d50 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Fri, 8 May 2020 19:13:46 +0200 Subject: [PATCH] Add telegram in i3 config --- .config/Cadence/GlobalSettings.conf | 2 +- .config/i3/config_common | 12 +++++++++--- .config/i3/scripts/screenshot.py | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.config/Cadence/GlobalSettings.conf b/.config/Cadence/GlobalSettings.conf index c524bbc..baa13c2 100644 --- a/.config/Cadence/GlobalSettings.conf +++ b/.config/Cadence/GlobalSettings.conf @@ -5,7 +5,7 @@ ExportHW=true [ALSA-Audio] BridgeChannels=2 -BridgeIndexType=1 +BridgeIndexType=2 BridgeTool=alsa_in [JACK] diff --git a/.config/i3/config_common b/.config/i3/config_common index caac718..0e5543c 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -75,6 +75,7 @@ exec atom exec firefox exec thunderbird exec signal-desktop +exec telegram-desktop 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" # 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 -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 @@ -211,15 +212,20 @@ for_window [title="^Terminator *"] floating enable for_window [window_role="pop-up"] floating enable for_window [window_role="task_dialog"] 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="Signal"] move position center +for_window [class="telegram-desktop"] move position center # 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 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+t [class="telegram-desktop] scratchpad show, move position center # automatic workspace assign [class="(?i)Atom"] → number 2 diff --git a/.config/i3/scripts/screenshot.py b/.config/i3/scripts/screenshot.py index cc2b68f..a70dcbe 100755 --- a/.config/i3/scripts/screenshot.py +++ b/.config/i3/scripts/screenshot.py @@ -87,7 +87,7 @@ def login(): if r.status_code != 200: raise RuntimeError("Cannot login to Lychee!") - + return s def get_album_id(session, name):