#-------------------------------------- # Секция настройки шрифтов #-------------------------------------- font pango: Roboto Condensed 9 #-------------------------------------- # Секция переменных #-------------------------------------- # Доступная палитра # #EF5571 #8BABB6 #8BB3CC #E59757 # #C0A2BA #85B988 #C4BE67 #EE6555 # #DEDEDE #626262 #D64937 #21252E # Цвета классы set $cbfocol #DEDEDE set $cbgfocol #DEDEDE set $ctfocol #DEDEDE set $cifocol #DEDEDE set $cbficol #DEDEDE set $cbgficol #DEDEDE set $ctficol #DEDEDE set $cificol #DEDEDE set $cbuncol #DEDEDE set $cbguncol #DEDEDE set $ctuncol #DEDEDE set $ciuncol #DEDEDE set $cburcol #DEDEDE set $cbgurcol #DEDEDE set $cturcol #DEDEDE set $ciurcol #DEDEDE set $cbplcol #DEDEDE set $cbgplcol #DEDEDE set $ctplcol #DEDEDE set $ciplcol #DEDEDE # цвета ws set $wbgcolor #21252E set $wstcolor #f2ebc7 set $wspcolor #f2ebc7 set $fwbcolor #21252E set $fwbgcolor #769070 set $fwtcolor #16100b set $awbcolor #21252E set $awbgcolor #348899 set $awtcolor #16100b set $iwbcolor #21252E set $iwbgcolor #4C5356 set $iwtcolor #16100b set $uwbcolor #21252E set $uwbgcolor #AC4344 set $uwtcolor #16100b # gaps set $gaps_inner 6 set $gaps_outer 10 # Путь до папки с конфигом set $home /home/rain/.config/i3 # Клавиша windows set $mod Mod4 # l set $up 46 # k set $down 45 # j set $left 44 # ; set $right 47 # воркспейсы set $ws1 1: set $ws2 2: set $ws3 3: set $ws4 4: set $ws5 5: set $ws6 6: set $ws7 7: set $ws8 8: set $ws9 9: set $ws10 10: #-------------------------------------- # Бинд секция #-------------------------------------- # Терминал bindsym $mod+Return exec --no-startup-id urxvt bindsym $mod+Shift+Return exec --no-startup-id terminology # Закрыть окно mod + q bindcode $mod+24 kill # launcher mod + d bindcode $mod+40 exec --no-startup-id $home/bin/dmenu.sh bindcode $mod+Ctrl+40 exec --no-startup-id rofi # http://www.webupd8.org/2016/06/how-to-get-unity-like-hud-searchable.html # bindcode $mod+38 exec ~/.config/i3/bin/i3-hud-menu.py # Система # mod + ctrl + r bindcode $mod+Ctrl+27 exec shutdown -r now # mod + ctrl + o bindcode $mod+Ctrl+32 exec shutdown -h now # Перечитать файл конфига # Mod + shift + c bindcode $mod+Shift+54 reload # Перезапуск wm. (Сохраняет лэйаут) # Mod + shift + r bindcode $mod+Shift+27 restart # Выход (из X сессии) # Mod + shift + e bindcode $mod+Shift+26 exec "i3-nagbar -t warning -m 'Вы действительно хотите выйти?' -b 'Выход' 'i3-msg exit'" # Lock Mod + shift + l bindcode $mod+Ctrl+46 exec "xautolock -locknow" # Раскладки bindsym $mod+Ctrl+semicolon exec --no-startup-id $home/bin/set-dvorak.sh bindsym $mod+Ctrl+s exec --no-startup-id $home/bin/set-default.sh # фокус стрелками bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # Фокус bindcode $mod+$left focus left bindcode $mod+$down focus down bindcode $mod+$up focus up bindcode $mod+$right focus 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 # Перемещение окон bindcode $mod+Shift+$left move left bindcode $mod+Shift+$down move down bindcode $mod+Shift+$up move up bindcode $mod+Shift+$right move right # Разбить окно по горизонтали Mod + h bindcode $mod+43 split h # Разбить окно по вертикали Mod + v bindcode $mod+55 split v # Окно в фулскрин Mod + f bindcode $mod+41 fullscreen # Лайаут stacked, tabbed, toggle split # Mod + s bindcode $mod+39 layout stacking # Mod + w bindcode $mod+25 layout tabbed # Mod + e bindcode $mod+26 layout toggle split # tiling / floating bindsym $mod+Shift+space floating toggle # фокус между tiling / floating bindsym $mod+space focus mode_toggle # Фокус родителя # Mod + a bindcode $mod+38 focus parent # Фокус детей #bindsym $mod+d focus child # изменение бордюра # Mod + t bindcode $mod+28 border normal # Mod + y bindcode $mod+29 border 1pixel # Mod + u bindcode $mod+30 border none # Переключение по воркспейсам # Mod + z bindcode $mod+52 workspace prev # Mod + x bindcode $mod+53 workspace next # Mod + c bindcode $mod+54 workspace back_and_forth # Обои # Mod + n bindcode $mod+57 exec nitrogen --sort=time # Браузер # Mod + b bindcode $mod+56 exec $home/bin/apprun/browser.sh # IDE # Mod + m bindcode $mod+58 exec $home/bin/apprun/ide.sh # Функциональные клавиши ## скриншотим bindsym $mod+F3 exec scrot ## яркость bindsym $mod+F4 exec --no-startup-id $home/bin/br-down.sh #bindsym XF86MonBrightnessDown exec --no-startup-id $home/bin/br-down.sh bindsym $mod+F5 exec --no-startup-id $home/bin/br-up.sh #bindsym XF86MonBrightnessUp exec --no-startup-id $home/i3/bin/br-up.sh ## громкость bindsym $mod+F7 exec --no-startup-id $home/bin/vol-down.sh bindsym $mod+F8 exec --no-startup-id $home/bin/vol-up.sh ## плейер bindsym $mod+F9 exec --no-startup-id mpc toggle bindsym $mod+F10 exec --no-startup-id mpc stop bindsym $mod+F11 exec --no-startup-id mpc prev bindsym $mod+F12 exec --no-startup-id mpc next ## Настройка окон for_window [class="(i?)ktorrent"] floating enable for_window [class="Nitrogen"] floating enable for_window [window_role="pop-up"] floating enable for_window [class="xpad"] floating enable # окно в scratchpad Mod + shift + - bindcode $mod+Shift+20 move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # Mod + - bindcode $mod+20 scratchpad show # Переключение по воркспейсам # Mod + 1..9, 0 bindcode $mod+10 workspace $ws1 bindcode $mod+11 workspace $ws2 bindcode $mod+12 workspace $ws3 bindcode $mod+13 workspace $ws4 bindcode $mod+14 workspace $ws5 bindcode $mod+15 workspace $ws6 bindcode $mod+16 workspace $ws7 bindcode $mod+17 workspace $ws8 bindcode $mod+18 workspace $ws9 bindcode $mod+19 workspace $ws10 # Перемещение в воркспейс # Mod + shift + 1..9, 0 bindcode $mod+Shift+10 move container to workspace $ws1 bindcode $mod+Shift+11 move container to workspace $ws2 bindcode $mod+Shift+12 move container to workspace $ws3 bindcode $mod+Shift+13 move container to workspace $ws4 bindcode $mod+Shift+14 move container to workspace $ws5 bindcode $mod+Shift+15 move container to workspace $ws6 bindcode $mod+Shift+16 move container to workspace $ws7 bindcode $mod+Shift+17 move container to workspace $ws8 bindcode $mod+Shift+18 move container to workspace $ws9 bindcode $mod+Shift+19 move container to workspace $ws10 # Mod + shift + r bindcode $mod+27 mode "resize" # Ресайз окна (Можно юзать мышь) 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. bindcode $left resize shrink width 10 px or 10 ppt bindcode $down resize grow height 10 px or 10 ppt bindcode $up resize shrink height 10 px or 10 ppt bindcode $right resize grow width 10 px or 10 pptbindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status # 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" } #-------------------------------------- # Секция assign #-------------------------------------- # Раскидываем по воркспейсам assign [class="(?i)ktorrent"] → $ws2 assign [class="(?i)firefox"] → $ws3 assign [class="(?i)chromium"] → $ws3 assign [class="(?i)smplayer"] $ws4 assign [class="(?i)atom"] → $ws5 assign [class="(?i)ristretto"] → $ws6 assign [class="(?i)gwenview"] → $ws6 assign [class="(?i)okular"] → $ws6 assign [class="Viewnior"] $ws6 assign [class="(?i)libreoffice"] → $ws7 assign [class="(?i)gimp"] → $ws8 assign [class="(?i)inkscape"] → $ws8 assign [class="(?i)blender"] → $ws8 assign [class="(?i)nitrogen"] → $ws10 #-------------------------------------- # Другие параметры #-------------------------------------- # Mouse+$mod для перемещения плавающего окна floating_modifier $mod gaps inner $gaps_inner gaps outer $gaps_outer # Поребрик =) new_window none new_float pixel 2 hide_edge_borders both # Красим окна # class border backgr. text indicator client.focused $cbfocol $cbgfocol $ctfocol $cifocol client.focused_inactive $cbficol $cbgficol $ctficol $cificol client.unfocused $cbuncol $cbguncol $ctuncol $ciuncol client.urgent $cburcol $cbgurcol $cturcol $ciurcol client.placeholder $cbplcol $cbgplcol $ctplcol $ciplcol client.background #ffffff #-------------------------------------- # Автозагрузка #-------------------------------------- exec --no-startup-id $home/bin/autostart.sh # exec --no-startup-id $home/bin/i3-appmenu-service.py #-------------------------------------- # Бар #-------------------------------------- bar { font pango: Roboto Condensed 9 status_command i3status -c $home/i3status position top workspace_buttons yes # tray tray_output LVDS1 tray_padding 1 separator_symbol "" colors { background $wbgcolor statusline $wstcolor separator $wspcolor # ws border bg text focused_workspace $fwbcolor $fwbgcolor $fwtcolor active_workspace $awbcolor $awbgcolor $awtcolor inactive_workspace $iwbcolor $iwbgcolor $iwtcolor urgent_workspace $uwbcolor $uwbgcolor $uwtcolor } }