LINUX.ORG.RU

История изменений

Исправление alex07, (текущая версия) :

Прилагаю, но изучил уже вдоль и поперек, вроде ничего толкового.

По ходу дела, я в X11 что то наковырял.

set $mod     Mod4
set $altMod  Mod1	

set $w1 ""
set $w2 ""
set $w3 ""
set $w4 ""
set $w5 ""
set $w6 ""
set $w7 ""
set $w8 ""
set $w9 ""

font pango:DejaVu Sans Mono for Powerline, FontAwesome 12

floating_modifier $mod

bindsym $mod+Return exec i3-sensible-terminal

bindsym $mod+Shift+q kill

bindsym $mod+d exec /home/xand/bin/dmenu_run.sh 

bindsym $mod+j focus left
bindsym $mod+ntilde focus down
bindsym $mod+l focus up
bindsym $mod+k focus right

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ntilde move right

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

bindsym $mod+h split h

bindsym $mod+v split v

bindsym $mod+f fullscreen toggle

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle

bindsym $mod+space focus mode_toggle

bindsym $mod+a focus parent

bindsym $mod+g exec --no-startup-id xscreensaver-command -lock

bindcode mod1+62 exec --no-startup-id "/home/xand/bin/kb_layout.py"

bindsym $mod+1 exec --no-startup-id "/home/xand/bin/switch_to_tmux.sh"
bindsym $mod+2 exec --no-startup-id "/home/xand/bin/switch_to_editor.sh" 
bindsym $mod+3 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w3
bindsym $mod+4 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w4
bindsym $mod+5 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w5
bindsym $mod+6 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w6
bindsym $mod+7 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w7
bindsym $mod+8 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w8
bindsym $mod+9 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w9

bindsym $mod+0 exec --no-startup-id /home/xand/bin/webstorm-show-debugger.py

bindsym $mod+Shift+1 move container to workspace $w1
bindsym $mod+Shift+2 move container to workspace $w2
bindsym $mod+Shift+3 move container to workspace $w3
bindsym $mod+Shift+4 move container to workspace $w4
bindsym $mod+Shift+5 move container to workspace $w5
bindsym $mod+Shift+6 move container to workspace $w6
bindsym $mod+Shift+7 move container to workspace $w7
bindsym $mod+Shift+8 move container to workspace $w8
bindsym $mod+Shift+9 move container to workspace $w9

bindsym $mod+Shift+o exec --no-startup-id /home/xand/bin/vol_control.sh mute
bindsym $mod+Shift+d exec --no-startup-id /home/xand/bin/vol_control.sh down
bindsym $mod+Shift+u exec --no-startup-id /home/xand/bin/vol_control.sh up

bindcode --release 107 exec --no-startup-id /home/xand/bin/screenshot.sh

bindsym $mod+m exec --no-startup-id /home/xand/bin/mv_i3_ws.py


bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# configuration for WebStorm workspace
#bindsym $mod+Shift+a exec --no-startup-id /home/xand/bin/webstorm-show-debugger.py

# specific window configuration
for_window [class="^.*"] border pixel 20 
for_window [title="MultiMonitorConfiguration"] floating enable
for_window [title="MultiMonitorConfiguration"] move window to workspace number 10
for_window [title="^tmux$"] move window to workspace $w1
for_window [title="^emacs@xatitude$"] move window to workspace $w2
for_window [title=" GVIM$"] move window to workspace $w2

for_window [title="Chromium$"] move window to workspace $w8
for_window [class="^jetbrains-idea$"] move window to workspace $w3
for_window [title="^Telegram$"] move window to workspace $w6
for_window [title="Mozilla Thunderbird$"] move window to workspace $w5

for_window [class="^jetbrains-webstorm$"] move window to workspace $w0
for_window [window_role="browser" instance=".*/data-chrome-70-debug.*"] move window to workspace $w0

for_window [class="^Pinentry-gtk-2$"] floating enable
for_window [title="^youtube-video$"] floating enable
for_window [title="^pip-video$"] floating enable
#for_window [title="floating-process-monitor"] floating enable; resize shrink width 10000px; resize grow width 400px; resize shrink height 10000px; resize grow height 800px;

# startup
#exec --no-startup-id xterm -T tmux -e /home/xand/.gem/ruby/2.5.0/bin/tmuxinator start general -p /home/xand/.config/tmuxinator/general.yml
exec --no-startup-id termite -t tmux -e "tmux -f /home/xand/.config/tmux/tmux.conf new-session -s general"
exec --no-startup-id emacs
exec --no-startup-id chromium http://gmail.com
exec --no-startup-id /home/xand/software/idea-IU-139.659.2/bin/idea.sh
exec --no-startup-id /home/xand/bin/profile_switcher.py
exec --no-startup-id /home/xand/software/Telegram/Telegram
exec --no-startup-id chromix-server
exec --no-startup-id /home/xand/software/davmail/davmail.sh /home/xand/software/davmail/davmail.properties
exec --no-startup-id /home/xand/bin/vga_control.py
exec --no-startup-id /usr/bin/gvim
exec --no-startup-id sudo xkeysnail --watch /home/xand/.config/xkeysnail/config.py
exec --no-startup-id xscreensaver -no-splash

exec --no-startup-id thunderbird

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym ntilde resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink 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 grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        tray_output none
        font pango:DejaVu Sans Mono for Powerline, FontAwesome 12
        #font pango:Liberation Sans Mono 9
	#font pango:Inconsolata This 12
	position	top
        # status_command i3status --config ~/.i3status.conf
	status_command i3blocks
}

Исходная версия alex07, :

Прилагаю, но изучил уже вдоль и поперек, вроде ничего толкового.

set $mod     Mod4
set $altMod  Mod1	

set $w1 ""
set $w2 ""
set $w3 ""
set $w4 ""
set $w5 ""
set $w6 ""
set $w7 ""
set $w8 ""
set $w9 ""

font pango:DejaVu Sans Mono for Powerline, FontAwesome 12

floating_modifier $mod

bindsym $mod+Return exec i3-sensible-terminal

bindsym $mod+Shift+q kill

bindsym $mod+d exec /home/xand/bin/dmenu_run.sh 

bindsym $mod+j focus left
bindsym $mod+ntilde focus down
bindsym $mod+l focus up
bindsym $mod+k focus right

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ntilde move right

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

bindsym $mod+h split h

bindsym $mod+v split v

bindsym $mod+f fullscreen toggle

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle

bindsym $mod+space focus mode_toggle

bindsym $mod+a focus parent

bindsym $mod+g exec --no-startup-id xscreensaver-command -lock

bindcode mod1+62 exec --no-startup-id "/home/xand/bin/kb_layout.py"

bindsym $mod+1 exec --no-startup-id "/home/xand/bin/switch_to_tmux.sh"
bindsym $mod+2 exec --no-startup-id "/home/xand/bin/switch_to_editor.sh" 
bindsym $mod+3 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w3
bindsym $mod+4 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w4
bindsym $mod+5 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w5
bindsym $mod+6 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w6
bindsym $mod+7 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w7
bindsym $mod+8 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w8
bindsym $mod+9 exec --no-startup-id "/home/xand/bin/kb_layout.py set us"; workspace $w9

bindsym $mod+0 exec --no-startup-id /home/xand/bin/webstorm-show-debugger.py

bindsym $mod+Shift+1 move container to workspace $w1
bindsym $mod+Shift+2 move container to workspace $w2
bindsym $mod+Shift+3 move container to workspace $w3
bindsym $mod+Shift+4 move container to workspace $w4
bindsym $mod+Shift+5 move container to workspace $w5
bindsym $mod+Shift+6 move container to workspace $w6
bindsym $mod+Shift+7 move container to workspace $w7
bindsym $mod+Shift+8 move container to workspace $w8
bindsym $mod+Shift+9 move container to workspace $w9

bindsym $mod+Shift+o exec --no-startup-id /home/xand/bin/vol_control.sh mute
bindsym $mod+Shift+d exec --no-startup-id /home/xand/bin/vol_control.sh down
bindsym $mod+Shift+u exec --no-startup-id /home/xand/bin/vol_control.sh up

bindcode --release 107 exec --no-startup-id /home/xand/bin/screenshot.sh

bindsym $mod+m exec --no-startup-id /home/xand/bin/mv_i3_ws.py


bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# configuration for WebStorm workspace
#bindsym $mod+Shift+a exec --no-startup-id /home/xand/bin/webstorm-show-debugger.py

# specific window configuration
for_window [class="^.*"] border pixel 20 
for_window [title="MultiMonitorConfiguration"] floating enable
for_window [title="MultiMonitorConfiguration"] move window to workspace number 10
for_window [title="^tmux$"] move window to workspace $w1
for_window [title="^emacs@xatitude$"] move window to workspace $w2
for_window [title=" GVIM$"] move window to workspace $w2

for_window [title="Chromium$"] move window to workspace $w8
for_window [class="^jetbrains-idea$"] move window to workspace $w3
for_window [title="^Telegram$"] move window to workspace $w6
for_window [title="Mozilla Thunderbird$"] move window to workspace $w5

for_window [class="^jetbrains-webstorm$"] move window to workspace $w0
for_window [window_role="browser" instance=".*/data-chrome-70-debug.*"] move window to workspace $w0

for_window [class="^Pinentry-gtk-2$"] floating enable
for_window [title="^youtube-video$"] floating enable
for_window [title="^pip-video$"] floating enable
#for_window [title="floating-process-monitor"] floating enable; resize shrink width 10000px; resize grow width 400px; resize shrink height 10000px; resize grow height 800px;

# startup
#exec --no-startup-id xterm -T tmux -e /home/xand/.gem/ruby/2.5.0/bin/tmuxinator start general -p /home/xand/.config/tmuxinator/general.yml
exec --no-startup-id termite -t tmux -e "tmux -f /home/xand/.config/tmux/tmux.conf new-session -s general"
exec --no-startup-id emacs
exec --no-startup-id chromium http://gmail.com
exec --no-startup-id /home/xand/software/idea-IU-139.659.2/bin/idea.sh
exec --no-startup-id /home/xand/bin/profile_switcher.py
exec --no-startup-id /home/xand/software/Telegram/Telegram
exec --no-startup-id chromix-server
exec --no-startup-id /home/xand/software/davmail/davmail.sh /home/xand/software/davmail/davmail.properties
exec --no-startup-id /home/xand/bin/vga_control.py
exec --no-startup-id /usr/bin/gvim
exec --no-startup-id sudo xkeysnail --watch /home/xand/.config/xkeysnail/config.py
exec --no-startup-id xscreensaver -no-splash

exec --no-startup-id thunderbird

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym ntilde resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink 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 grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        tray_output none
        font pango:DejaVu Sans Mono for Powerline, FontAwesome 12
        #font pango:Liberation Sans Mono 9
	#font pango:Inconsolata This 12
	position	top
        # status_command i3status --config ~/.i3status.conf
	status_command i3blocks
}