LINUX.ORG.RU

urxvt в i3wm

 , ,


0

1

Как решить проблему: urxvt в i3wm отображается только в верхней левой четверти экрана поверх всех окон, фокус получает только тогда, когда наводишь курсор мыши на окно и только в том случае, если нет других окошек на рабочем столе. Висит на всех рабочих столах в таком режиме. Если есть какие-либо другие окна, висит поверх них и чтобы него закрыть нужно переключаться на другой десктоп. Собственно как вылечить? С lxterminal все нормально. Дистр: arch Конфиг i3 прилагается.

wladimir on arch-dv5000 ~ % grep -ve "^#\|^$" ~/.i3/config
set $mod Mod4
font pango:Droid Sans Mono 8
floating_modifier $mod
bindsym $mod+Return exec lxterminal
bindsym $mod+Shift+q kill
bindsym $mod+d exec dmenu_run  -nb '#d4d4d4' -sb '#4d4d4d' -nf '#4d4d4d' -sf '#d4d4d4' -fn 'Droid Sans Mono-8' -l 5
bindsym $mod+h focus left
bindsym $mod+l focus right
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+semicolon 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+h move left
bindsym $mod+Shift+l move right
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+semicolon 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+z split h
bindsym $mod+v split v
bindsym $mod+f fullscreen
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+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"
bindsym $mod+Ctrl+l exec "~/Dropbox/bin/dmenu-power.sh"
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 semicolon 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"
assign [class="urxvt"] 1
assign [class="lxterminal"] 1
assign [class="midori4"] 2
focus_follows_mouse no
bar
{
        id                                      top-bar
    i3bar_command       /usr/bin/i3bar
        status_command      conky -c ~/.i3/conkyi3
        #status_command      sh ~/.i3/conkyi3.sh
        #status_command      i3status -c ~/.i3/i3status.conf
        mode                dock
        workspace_buttons   yes
        position            top
    font                pango:Droid Sans 10
    colors
    {
            background         #d4d4d4
            separator          #d4d4d4
            statusline         #2c2c2c
            #class             border  backgr. text
            focused_workspace  #F9F9F9 #F9F9F9 #2c2c2c
            active_workspace   #d4d4d4 #d4d4d4 #2c2c2c
            inactive_workspace #d4d4d4 #d4d4d4 #2c2c2c
            urgent_workspace   #d4d4d4 #F9F9F9 #ffffff
    }

}
new_window none
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q set Master 5%+ unmute
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q set Master 5%- unmute
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15
exec --no-startup-id setxkbmap -layout "us,ru" -option "grp:caps_toggle,compose:ralt,terminate:ctrl_alt_bksp"
exec --no-startup-id xset r rate 250 25
exec --no-startup-id feh --bg-scale ~/Pictures/trava-kapli-boke-voda.png
exec --no-startup-id clipit &
wladimir on arch-dv5000 ~ % grep -v "^#\|^$" ~/.i3/config
set $mod Mod4
font pango:Droid Sans Mono 8
floating_modifier $mod
bindsym $mod+Return exec lxterminal
bindsym $mod+Shift+q kill
bindsym $mod+d exec dmenu_run  -nb '#d4d4d4' -sb '#4d4d4d' -nf '#4d4d4d' -sf '#d4d4d4' -fn 'Droid Sans Mono-8' -l 5
bindsym $mod+h focus left
bindsym $mod+l focus right
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+semicolon 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+h move left
bindsym $mod+Shift+l move right
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+semicolon 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+z split h
bindsym $mod+v split v
bindsym $mod+f fullscreen
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+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"
bindsym $mod+Ctrl+l exec "~/Dropbox/bin/dmenu-power.sh"
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 semicolon 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"
assign [class="urxvt"] 1
assign [class="lxterminal"] 1
assign [class="midori4"] 2
focus_follows_mouse no
bar
{
        id                                      top-bar
    i3bar_command       /usr/bin/i3bar
        status_command      conky -c ~/.i3/conkyi3
        #status_command      sh ~/.i3/conkyi3.sh
        #status_command      i3status -c ~/.i3/i3status.conf
        mode                dock
        workspace_buttons   yes
        position            top
    font                pango:Droid Sans 10
    colors
    {
            background         #d4d4d4
            separator          #d4d4d4
            statusline         #2c2c2c
            #class             border  backgr. text
            focused_workspace  #F9F9F9 #F9F9F9 #2c2c2c
            active_workspace   #d4d4d4 #d4d4d4 #2c2c2c
            inactive_workspace #d4d4d4 #d4d4d4 #2c2c2c
            urgent_workspace   #d4d4d4 #F9F9F9 #ffffff
    }

}
new_window none
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q set Master 5%+ unmute
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q set Master 5%- unmute
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15
exec --no-startup-id setxkbmap -layout "us,ru" -option "grp:caps_toggle,compose:ralt,terminate:ctrl_alt_bksp"
exec --no-startup-id xset r rate 250 25
exec --no-startup-id feh --bg-scale ~/Pictures/trava-kapli-boke-voda.png
exec --no-startup-id clipit &

Проблема может быть в файлах, устанавливающих ресурсы для окон urxvt в X, ~/.Xresources, например. Или ещё был какой-то ~/.x-что-то-там, который древнее ~/.Xresources. А вообще i3 user guide можно найти в гугле и обычно на локальной машине. Адрес IRC канала висит на сайте.

deterenkelt
()

кстати, пока не разбежались.. с чем связана мееедленная отрисовка urxvt? а то пришлось заюзать крысотерминал.

Avial ★★★★★
()
Ответ на: комментарий от deterenkelt

Спасибо за подсказку. Проблема оказалась в ~/.Xresources:

URxvt*borderLess:              true
Закомментил и заработало.

Crow
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.