diff --git a/.config/Cadence/GlobalSettings.conf b/.config/Cadence/GlobalSettings.conf index a696d1c..baa13c2 100644 --- a/.config/Cadence/GlobalSettings.conf +++ b/.config/Cadence/GlobalSettings.conf @@ -1,10 +1,11 @@ [A2J] +AutoExport=true AutoStart=true ExportHW=true [ALSA-Audio] BridgeChannels=2 -BridgeIndexType=1 +BridgeIndexType=2 BridgeTool=alsa_in [JACK] diff --git a/.config/i3/config.d/desk b/.config/i3/config.d/desk index f048c8a..abfef69 100644 --- a/.config/i3/config.d/desk +++ b/.config/i3/config.d/desk @@ -3,11 +3,11 @@ ################################## # alterning workspace between each screen -workspace 1 output DVI-D-0 +workspace 1 output DVI-I-1 workspace 2 output HDMI-0 -workspace 3 output DVI-D-0 +workspace 3 output DVI-I-1 workspace 4 output HDMI-0 -workspace 5 output DVI-D-0 +workspace 5 output DVI-I-1 workspace 6 output HDMI-0 # ALSA key binding (media keys do not even have keycode...) @@ -50,7 +50,8 @@ exec --no-startup-id xinput set-prop 'pointer:Razer Razer DeathAdder Chroma' --t for_window [class="Non-Mixer"] mark "mixer", move scratchpad for_window [class="Catia*"] mark "jack", move scratchpad bindsym $mod+Shift+j [con_mark="jack"] scratchpad show -bindsym $mod+Shift+n [con_mark="mixer"] scratchpad show +bindsym $mod+Shift+v [con_mark="mixer"] scratchpad show for_window [class="Mail"] resize set 1600 850 for_window [class="Signal"] resize set 1600 850 +for_window [class="Telegram"] resize set 1600 850 diff --git a/.config/i3/config_common b/.config/i3/config_common index 389f698..12f1eac 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 @@ -189,10 +190,10 @@ bindsym $mod+Shift+r restart # resize window (you can also use the mouse for that) mode "$resize_mode" { - bindsym Left resize grow width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize shrink width 10 px or 10 ppt + bindsym Left resize shrink width 40 px or 20 ppt; move position center + bindsym Down resize grow height 40 px or 20 ppt; move position center + bindsym Up resize shrink height 40 px or 20 ppt; move position center + bindsym Right resize grow width 40 px or 20 ppt; move position center bindsym Escape mode "default" } @@ -211,15 +212,18 @@ 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"] floating enable for_window [class="Thunderbird"] move position center # scratchpad for_window [class="Signal"] move scratchpad +for_window [class="Telegram"] 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"] 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 5c3302d..a70dcbe 100755 --- a/.config/i3/scripts/screenshot.py +++ b/.config/i3/scripts/screenshot.py @@ -52,8 +52,10 @@ def read_args(argv): return (upload, save, path) def screenshot(img_format): - proc = subprocess.run(['maim', '-sl', '--color=0.6,0.4,0.2,0.2', '-f', img_format, '-u', '-m', '9', '-b', '5'], capture_output=True, check=True) - return proc.stdout + output = '/tmp/screenshot' + proc = subprocess.run(['maim', '-sl', '--color=0.6,0.4,0.2,0.2', '-f', img_format, '-u', '-m', '9', '-b', '5', output], check=True) + with open(output, 'rb') as f: + return f.read() def save_img(path, img, img_format): # Create directory if needed @@ -85,7 +87,7 @@ def login(): if r.status_code != 200: raise RuntimeError("Cannot login to Lychee!") - + return s def get_album_id(session, name): diff --git a/.config/jack-matchmaker/patterns b/.config/jack-matchmaker/patterns index 1f0d824..7dcd6e5 100644 --- a/.config/jack-matchmaker/patterns +++ b/.config/jack-matchmaker/patterns @@ -27,3 +27,7 @@ Pianoteq.*?2$ # Audacity PortAudio:out_\d .*:Audacity/in-1 + +# Mumble +mumble:output_1 +.*:Mumble/in-1 diff --git a/.config/nonmixer/Home/snapshot b/.config/nonmixer/Home/snapshot index 905346f..ff508ec 100644 --- a/.config/nonmixer/Home/snapshot +++ b/.config/nonmixer/Home/snapshot @@ -25,4 +25,10 @@ Gain_Module 0x2B create :parameter_values "0.000000:0.000000" :is_default 1 :chain 0x29 :active 1 Meter_Module 0x2C create :is_default 1 :chain 0x29 :active 1 JACK_Module 0x2D create :parameter_values "2.000000:0.000000" :is_default 1 :chain 0x29 :active 1 + Mixer_Strip 0x2E create :name "Mumble" :width "narrow" :tab "fader" :color 1957747793 :gain_mode 0 :mute_mode 0 :group 0xD :auto_input "" :manual_connection 0 + Chain 0x2F create :strip 0x2E :tab "chain" + JACK_Module 0x30 create :parameter_values "0.000000:1.000000" :is_default 1 :chain 0x2F :active 1 + Gain_Module 0x31 create :parameter_values "0.000000:0.000000" :is_default 1 :chain 0x2F :active 1 + Meter_Module 0x32 create :is_default 1 :chain 0x2F :active 1 + JACK_Module 0x33 create :parameter_values "1.000000:0.000000" :is_default 1 :chain 0x2F :active 1 } diff --git a/.config/polybar/scripts/launch_polybar.sh.desk b/.config/polybar/scripts/launch_polybar.sh.desk index 12bd37a..c9f1c40 100755 --- a/.config/polybar/scripts/launch_polybar.sh.desk +++ b/.config/polybar/scripts/launch_polybar.sh.desk @@ -7,8 +7,8 @@ if type "xrandr"; then monitors=$(xrandr --query | grep " connected" | cut -d" " -f1) monarray=($monitors) for name in ${names[@]}; do - MONITOR=${monarray[1]} polybar -q --reload ${name} & + MONITOR=${monarray[0]} polybar -q --reload ${name} & done else polybar --reload ${name} & -fi \ No newline at end of file +fi diff --git a/.init_config.sh b/.init_config.sh index d4276d6..443419b 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -82,3 +82,7 @@ done # Reload i3 configuration i3-msg reload && echo "Successfully reloaded i3 config" + +# Restart picom due to this bug https://github.com/yshui/picom/issues/166 +killall picom; picom &>/dev/null & + diff --git a/README.md b/README.md index 4fc33fa..2851815 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ I added to the classic Arch/i3 : * A notification daemon (urgency-aware), Dunst, controlled by shortcuts (but possibly with mouse). * A fancy lock screen, with optionnal suspend-to-RAM, either triggered by hotkey or when there is no activity for X minutes. * A Display Manager (LightDM), for login and X starting. -* A great File Explorer (SpaceFM), with hotkey / command-line / screen-split / protocol handlers / events support. +* A great File Explorer (Nemo), with hotkey / command-line / screen-split / protocol handlers / events support. * ZSH with Oh My ZSH and excellent community plugins (Git aliases, Docker autocomplete, FASD bindings, cat and man coloration...) * Some mappings to control ALSA volume from dedicated keyboards buttons, to play/plause players compatible with MPRIS D-Bus Interface spec ; some changes to key speed (X settings) ; Smooth and dark theme for GTK and for Sublime-Text...