Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # modifiers
- set $mod Mod4
- set $wmod Mod1
- # custom colors
- set $termbg #0f0320
- set $termfg #e0d8d1
- # Use feh to set background to ~/Pictures/wallpaper.jpg, which can be symlinked
- exec_always --no-startup-id feh --bg-fill /home/verusgott/Pictures/wallpaper.jpg
- exec_always --no-startup-id compton -bC --config /home/verusgott/.config/compton.conf
- # load up default terminal config for ws1, and then fire off some default progs
- exec --no-startup-id "i3-msg 'workspace $ws1; append_layout /home/verusgott/.config/i3/ws1.json'"
- exec --no-startup-id "i3-msg exec urxvt\; exec urxvt\; exec urxvt\; exec urxvt"
- exec --no-startup-id firefox
- exec --no-startup-id mopidy -q
- # mpc bindings (ncmpcpp control)
- bindsym $wmod+Right exec --no-startup-id mpc next
- bindsym $wmod+Left exec --no-startup-id mpc prev
- #bindsym $wmod+Shift+Right exec --no-startup-id mpc seek +0:0:7
- #bindsym $wmod+Shift+Left exec --no-startup-id mpc seek -0:0:7
- bindsym $wmod+space exec --no-startup-id mpc toggle
- bindsym $wmod+z exec --no-startup-id mpc random
- # custom key assignments
- bindsym $mod+d exec --no-startup-id rofi -show run
- # vim-keybindings for movement
- # change focus
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- # alternatively, you can use the cursor keys:
- bindsym $mod+Left focus left
- bindsym $mod+Down focus down
- bindsym $mod+Up focus up
- bindsym $mod+Right focus right
- # move focused window
- bindsym $mod+Shift+h move left
- bindsym $mod+Shift+j move down
- bindsym $mod+Shift+k move up
- bindsym $mod+Shift+l move right
- # alternatively, you can use the cursor keys:
- bindsym $mod+Shift+Left move left
- bindsym $mod+Shift+Down move down
- bindsym $mod+Shift+Up move up
- bindsym $mod+Shift+Right move right
- # split in horizontal orientation
- # b for besides.
- bindsym $mod+b split h
- # split in vertical orientation
- bindsym $mod+v split v
- # Change floating behaviors with space
- # toggle tiling / floating
- bindsym $mod+space floating toggle
- # change focus between tiling / floating windows
- bindsym $mod+Shift+space focus mode_toggle
- ########################
- # windows/workspaces #
- ########################
- # grayscale colors
- set $white #ffffff
- set $alive #aaaaaa
- set $sixes #666666
- set $fives #555555
- set $fours #444444
- set $threes #333333
- set $twos #222222
- set $ones #111111
- set $black #000000
- # ws names
- set $ws1
- set $ws2
- set $ws3
- set $ws4
- set $ws5 5
- set $ws6 6
- set $ws7 7
- set $ws8
- set $ws9 9
- set $ws0 0
- # window assignments
- assign [class="Firefox"] $ws2
- assign [class="Atom"] $ws3
- assign [class="libreoffice"] $ws4
- assign [class="^Inkscape$"] $ws8
- assign [class="Gimp"] $ws8
- # floating windows
- for_window [class="feh"] floating enable
- for_window [class="Lxappearance"] floating enable
- for_window [class="Display"] floating enable
- for_window [class="Zenmap"] floating enable
- for_window [class="Thunar"] floating enable
- for_window [class="Yad"] floating enable
- for_window [class="Xarchive"] floating enable
- # switch to workspace
- bindsym $mod+1 workspace $ws1
- bindsym $mod+2 workspace $ws2
- bindsym $mod+3 workspace $ws3
- bindsym $mod+4 workspace $ws4
- bindsym $mod+5 workspace $ws5
- bindsym $mod+6 workspace $ws6
- bindsym $mod+7 workspace $ws7
- bindsym $mod+8 workspace $ws8
- bindsym $mod+9 workspace $ws9
- bindsym $mod+0 workspace $ws0
- # move focused container to workspace
- bindsym $mod+Shift+1 move container to workspace $ws1
- bindsym $mod+Shift+2 move container to workspace $ws2
- bindsym $mod+Shift+3 move container to workspace $ws3
- bindsym $mod+Shift+4 move container to workspace $ws4
- bindsym $mod+Shift+5 move container to workspace $ws5
- bindsym $mod+Shift+6 move container to workspace $ws6
- bindsym $mod+Shift+7 move container to workspace $ws7
- bindsym $mod+Shift+8 move container to workspace $ws8
- bindsym $mod+Shift+9 move container to workspace $ws9
- bindsym $mod+Shift+0 move container to workspace $ws0
- # borders
- # termfg border on focus; blend with termbg if not
- #
- # state border bg text indicator
- client.focused $termfg $termfg $white $termfg
- client.unfocused $termbg $termbg $alive $termbg
- client.focused_inactive $termbg $termbg $alive $termbg
- client.urgent $termfg $termfg $white $termfg
- ###########
- # i3bar #
- ###########
- bar {
- #status_command i3status
- status_command i3blocks
- tray_output primary
- position top
- font pango: Awesome 9, Tewi 9
- colors {
- background $termbg
- statusline $termfg
- #selection #border #fill #text
- focused_workspace $termfg $termfg $termbg
- active_workspace $termbg $termbg $termfg
- inactive_workspace $termbg $termbg $termfg
- urgent_workspace $termfg $termfg $termbg
- binding_mode $termfg $termbg $termfg
- }
- }
- ####################
- # i3-gaps config #
- ####################
- # Disable window titlebars entirely
- for_window [class="^.*"] border pixel 5
- # # Set inner/outer gaps
- gaps inner 15
- gaps outer 10
- # Additionally, you can issue commands with the following syntax. This is
- # useful to bind keys to changing the gap size.
- #gaps inner|outer current|all set|plus|minus <px>
- #gaps inner all set 10
- #gaps outer all plus 5
- # Smart gaps (gaps used if only more than one container on the workspace)
- #smart_gaps on
- # Smart borders (draw borders around container only if it is not the only
- # container on this workspace)
- # on|no_gaps (on=always activate and no_gaps=only activate if the gap size
- # to the edge of the screen is 0)
- smart_borders on
- # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying
- # outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or
- # 0 (remove gaps for current workspace). If you also press Shift with these
- # keys, the change will be global for all workspaces.
- set $mode_gaps Gaps: (O) Outer, (I) Inner
- set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
- set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
- bindsym $mod+Shift+g mode "$mode_gaps"
- mode "$mode_gaps" {
- bindsym Escape mode "default"
- bindsym Return mode "default"
- bindsym o mode "$mode_gaps_outer"
- bindsym i mode "$mode_gaps_inner"
- bindsym Shift+o mode "$mode_gaps_outer"
- bindsym Shift+I mode "$mode_gaps_inner"
- }
- mode "$mode_gaps_inner" {
- bindsym plus gaps inner current plus 5
- bindsym minus gaps inner current minus 5
- bindsym 0 gaps inner current set 0
- bindsym Shift+plus gaps inner all plus 5
- bindsym Shift+minus gaps inner all minus 5
- bindsym Shift+0 gaps inner all set 0
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- mode "$mode_gaps_outer" {
- bindsym plus gaps outer current plus 5
- bindsym minus gaps outer current minus 5
- bindsym 0 gaps outer current set 0
- bindsym Shift+plus gaps outer all plus 5
- bindsym Shift+minus gaps outer all minus 5
- bindsym Shift+0 gaps outer all set 0
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- ###################
- # power options #
- ###################
- bindsym $mod+Escape exec --no-startup-id /usr/lib/i3blocks/power-menu
- #################
- # resize mode #
- #################
- set $resize Resize
- bindsym $mod+r 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.
- bindsym j resize shrink width 5 px or 5 ppt
- bindsym k resize grow height 5 px or 5 ppt
- bindsym l resize shrink height 5 px or 5 ppt
- bindsym semicolon resize grow width 5 px or 5 ppt
- # same bindings, but for the arrow keys
- bindsym Left resize shrink width 5 px or 5 ppt
- bindsym Down resize grow height 5 px or 5 ppt
- bindsym Up resize shrink height 5 px or 5 ppt
- bindsym Right resize grow width 5 px or 5 ppt
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- ############
- # defaults #
- ############
- # Font for window titles. Will also be used by the bar unless a different font
- # is used in the bar {} block below.
- # font pango:monospace 8
- # This font is widely installed, provides lots of unicode glyphs, right-to-left
- # text rendering and scalability on retina/hidpi displays (thanks to pango).
- font pango:Open Sans 8
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec i3-sensible-terminal
- # kill focused window
- bindsym $mod+Shift+q kill
- # enter fullscreen mode for the focused container
- bindsym $mod+f fullscreen toggle
- # change container layout (stacked, tabbed, toggle split)
- #bindsym $mod+s layout stacking
- #bindsym $mod+w layout tabbed
- #bindsym $mod+e layout toggle split
- # focus the parent container
- bindsym $mod+a focus parent
- # focus the child container
- #bindsym $mod+d focus child
- # reload the configuration file
- 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 'Do you want to exit out of i3?' -b 'Yes, exit i3' 'i3-msg exit'"
Advertisement
Add Comment
Please, Sign In to add comment