Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # i3 config file (v4)
- #-----------------------------------------------------------------------
- # variables
- #-----------------------------------------------------------------------
- set $mod Mod4
- set $terminal termite
- #-----------------------------------------------------------------------
- # colors
- #-----------------------------------------------------------------------
- set_from_resource $color0 color0 #000000
- set_from_resource $color8 color8 #000000
- set_from_resource $color1 color1 #000000
- set_from_resource $color9 color9 #000000
- set_from_resource $color2 color2 #000000
- set_from_resource $color10 color10 #000000
- set_from_resource $color3 color3 #000000
- set_from_resource $color11 color11 #000000
- set_from_resource $color4 color4 #000000
- set_from_resource $color12 color12 #000000
- set_from_resource $color5 color5 #000000
- set_from_resource $color13 color13 #000000
- set_from_resource $color6 color6 #000000
- set_from_resource $color14 color14 #000000
- set_from_resource $color7 color7 #000000
- set_from_resource $color15 color15 #000000
- #-----------------------------------------------------------------------
- # workspaces
- #-----------------------------------------------------------------------
- set $display_01 HDMI-1
- set $display_02 HDMI-2
- set $workspace_01 "1:term"
- set $workspace_02 "2:code"
- set $workspace_03 "3:code"
- set $workspace_04 "4:misc"
- set $workspace_05 "5:inet"
- set $workspace_06 "6:read"
- set $workspace_07 "7:chat"
- set $workspace_08 "8:misc"
- workspace $workspace_01 output $display_01
- workspace $workspace_02 output $display_01
- workspace $workspace_03 output $display_01
- workspace $workspace_04 output $display_01
- workspace $workspace_05 output $display_02
- workspace $workspace_06 output $display_02
- workspace $workspace_07 output $display_02
- workspace $workspace_08 output $display_02
- bindsym $mod+1 workspace $workspace_01
- bindsym $mod+2 workspace $workspace_02
- bindsym $mod+3 workspace $workspace_03
- bindsym $mod+4 workspace $workspace_04
- bindsym $mod+5 workspace $workspace_05
- bindsym $mod+6 workspace $workspace_06
- bindsym $mod+7 workspace $workspace_07
- bindsym $mod+8 workspace $workspace_08
- bindsym $mod+Tab workspace back_and_forth
- bindsym $mod+Shift+1 move container to workspace number $workspace_01
- bindsym $mod+Shift+2 move container to workspace number $workspace_02
- bindsym $mod+Shift+3 move container to workspace number $workspace_03
- bindsym $mod+Shift+4 move container to workspace number $workspace_04
- bindsym $mod+Shift+5 move container to workspace number $workspace_05
- bindsym $mod+Shift+6 move container to workspace number $workspace_06
- bindsym $mod+Shift+7 move container to workspace number $workspace_07
- bindsym $mod+Shift+8 move container to workspace number $workspace_08
- bindsym $mod+Shift+9 move container to workspace number $workspace_09
- #-----------------------------------------------------------------------
- # behavior
- #-----------------------------------------------------------------------
- focus_on_window_activation none
- workspace_auto_back_and_forth yes
- for_window [window_role="pop-up"] floating enable
- for_window [window_role="bubble"] floating enable
- for_window [window_role="dialog"] floating enable
- for_window [window_type="dialog"] floating enable
- for_window [class="(?i)pinentry"] floating enable
- assign [class="(?i)skype"] $workspace_07
- assign [class="(?i)TelegramDesktop"] $workspace_07
- #-----------------------------------------------------------------------
- # bindings
- #-----------------------------------------------------------------------
- # use mouse+$mod to drag windows
- floating_modifier $mod
- # start applications
- bindsym $mod+Return exec --no-startup-id $terminal
- bindsym $mod+d exec --no-startup-id rofi -show run
- # kill focused window
- bindsym $mod+q kill
- # i3 config
- bindsym $mod+Shift+c reload
- bindsym $mod+Shift+r restart
- bindsym $mod+Shift+e exit
- # switch layouts
- bindsym $mod+x split vertical
- bindsym $mod+z split horizontal
- bindsym $mod+f fullscreen
- bindsym $mod+t layout toggle all
- bindsym $mod+space floating toggle
- # move focus [vimlike]
- bindsym $mod+h focus left
- bindsym $mod+l focus right
- bindsym $mod+k focus up
- bindsym $mod+j focus down
- # move focus [arrows]
- bindsym $mod+Left focus left
- bindsym $mod+Right focus right
- bindsym $mod+Up focus up
- bindsym $mod+Down focus down
- # move focused window [vimlike]
- bindsym $mod+Shift+h move left
- bindsym $mod+Shift+l move right
- bindsym $mod+Shift+k move up
- bindsym $mod+Shift+j move down
- # move focused window [arrows]
- bindsym $mod+Shift+Left move left
- bindsym $mod+Shift+Right move right
- bindsym $mod+Shift+Up move up
- bindsym $mod+Shift+Down move down
- # pulse audio controls
- bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5
- bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5
- bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute
- #-----------------------------------------------------------------------
- # modes
- #-----------------------------------------------------------------------
- bindsym $mod+r mode "resize"
- mode "resize" {
- # change window's size [vimlike]
- bindsym h resize shrink width 10 px or 10 ppt
- bindsym j resize grow height 10 px or 10 ppt
- bindsym k resize shrink height 10 px or 10 ppt
- bindsym l resize grow width 10 px or 10 ppt
- # change window's size [arrows]
- 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
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- #-----------------------------------------------------------------------
- # appearance
- #-----------------------------------------------------------------------
- font pango:Noto Sans Mono Semibold 11, Font Awesome 5 Free 11
- set_from_resource $color0 color0 #000000
- set_from_resource $color1 color1 #000000
- set_from_resource $color2 color2 #000000
- set_from_resource $color3 color3 #000000
- set_from_resource $color4 color4 #000000
- set_from_resource $color5 color5 #000000
- set_from_resource $color6 color6 #000000
- set_from_resource $color7 color7 #000000
- set_from_resource $color8 color8 #000000
- set_from_resource $color9 color9 #000000
- set_from_resource $color10 color10 #000000
- set_from_resource $color11 color11 #000000
- set_from_resource $color12 color12 #000000
- set_from_resource $color13 color13 #000000
- set_from_resource $color14 color14 #000000
- set_from_resource $color15 color15 #000000
- # BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
- client.focused $color2 $color0 $color7 $color7 $color8
- client.focused_inactive $color8 $color0 $color7 $color7 $color8
- client.unfocused $color8 $color0 $color7 $color7 $color8
- client.urgent $color1 $color0 $color1 $color1 $color1
- client.placeholder $color8 $color0 $color7 $color7 $color8
- client.background $color0
- set $default_gaps_outer 0
- set $default_gaps_inner 10
- #gaps outer $default_gaps_outer
- #gaps inner $default_gaps_inner
- floating_minimum_size -1 x -1
- floating_maximum_size -1 x -1
- for_window [class="^.*"] border none
- #-----------------------------------------------------------------------
- # autostart
- #-----------------------------------------------------------------------
- exec --no-startup-id feh --no-fehbg --randomize --bg-scale $HOME/.config/themes/gruvbox/wallpapers/*
- exec --no-startup-id compton --config $HOME/.config/compton/config -b &
- exec --no-startup-id ~/.config/polybar/launch.sh
- exec --no-startup-id dunst &
- exec --no-startup-id telegram-desktop &
- #-----------------------------------------------------------------------
- # layout test
- #-----------------------------------------------------------------------
- assign [instance="termite-one"] $workspace_06
- assign [instance="termite-two"] $workspace_06
- assign [instance="termite-three"] $workspace_06
- exec --no-startup-id i3-msg "workspace 6:read; append_layout ~/.config/i3/layout.json"
- exec --no-startup-id termite --title "termite-one" --exec "echo 'termite 1'" --hold
- exec --no-startup-id termite --title "termite-two" --exec "echo 'termite 2'" --hold
- exec --no-startup-id termite --title "termite-three" --exec "echo 'termite 3'" --hold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement