Skip to content

Instantly share code, notes, and snippets.

@druu
Created March 7, 2017 10:47
Show Gist options
  • Select an option

  • Save druu/19655aa5e775a6d069508842a016e902 to your computer and use it in GitHub Desktop.

Select an option

Save druu/19655aa5e775a6d069508842a016e902 to your computer and use it in GitHub Desktop.
# Output Setup
output HDMI-A-1 pos 0,0 res 1920x1080
output HDMI-A-2 pos 1920,0 res 1920x1080
output VGA-1 pos 3840,0 res 1920x1080
workspace "1: emacs" output HDMI-A-1
workspace "2: web" output HDMI-A-2
workspace "3: xcom" output VGA-1
# Mod Key = Super Left
set $mod Mod4
# Hybrid colors (solarized)
set $black #002B36
set $white #839496
set $gray #CCCCCC
set $darkgray #666666
set $green #799F26
set $blue #4D73AA
set $purple #8473A7
set $red #B58900
set $orange #E59847
set $cyan #2AA198
set $dark #00252E
# Font
font pango:PragmataPro 9
# Floating
floating_modifier $mod
# Follow Mouse
focus_follows_mouse yes
# Open Terminal
bindsym $mod+Return exec i3-sensible-terminal
# Kill Window
bindsym $mod+Shift+q kill
# Open dmenu (j4)
set $menu j4-dmenu-desktop --no-generic --term=termite --dmenu="dmenu -i -b -fn 'xft:PragmataPro:pixelsize=14' -sb '#98971a' -nb '#1f1f1f' -sf '#1f1f1f'"
bindsym $mod+d exec $menu
# Volume Control
bindsym $mod+Shift+KP_Add exec amixer -c 1 sset 'Master' 2dB+ unmute
bindsym $mod+Shift+KP_Subtract exec amixer -c 1 sset 'Master' 2dB- unmute
# Screenlock
set $Locker swaylock -c 333333 && date
bindsym $mod+Shift+Pause exec --no-startup-id $Locker, mode "default"
# reload the configuration file
bindsym $mod+Shift+Scroll_Lock reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+Print restart
# change focus
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+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# switch to workspace
bindsym $mod+1 workspace "1: emacs"
bindsym $mod+2 workspace "2: web"
bindsym $mod+3 workspace "3: xcom"
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
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace "1: emacs"
bindsym $mod+Shift+2 move container to workspace "2: web"
bindsym $mod+Shift+3 move container to workspace "3: xcom"
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
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
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"
# split containers
bindsym $mod+b splith
bindsym $mod+v splitv
# layouts
bindsym $mod+Shift+s layout stacking
bindsym $mod+Shift+w layout tabbed
bindsym $mod+Shift+e layout toggle split
# Bar
bar {
position top
font pango:PragmataPro, FontAwesome 9
status_command i3status --config ~/.i3status.conf
colors {
statusline #999999
background $black
# Colors border backgr. text
focused_workspace $white $white $black
active_workspace #073642 #073642 #696f89
inactive_workspace #073642 #073642 $white
urgent_workspace $orange $orange $dark
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment