Merge branch 'master' of github.com:Chostakovitch/dotfiles
commit
e7c8038cc2
|
@ -1,10 +1,11 @@
|
|||
[A2J]
|
||||
AutoExport=true
|
||||
AutoStart=true
|
||||
ExportHW=true
|
||||
|
||||
[ALSA-Audio]
|
||||
BridgeChannels=2
|
||||
BridgeIndexType=1
|
||||
BridgeIndexType=2
|
||||
BridgeTool=alsa_in
|
||||
|
||||
[JACK]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -27,3 +27,7 @@ Pianoteq.*?2$
|
|||
# Audacity
|
||||
PortAudio:out_\d
|
||||
.*:Audacity/in-1
|
||||
|
||||
# Mumble
|
||||
mumble:output_1
|
||||
.*:Mumble/in-1
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
fi
|
||||
|
|
|
@ -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 &
|
||||
|
||||
|
|
|
@ -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...
|
||||
|
||||
|
|
Loading…
Reference in New Issue