Skip to content

Instantly share code, notes, and snippets.

Created January 14, 2015 20:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/c69d0db9bdb76f9b308a to your computer and use it in GitHub Desktop.
Save anonymous/c69d0db9bdb76f9b308a to your computer and use it in GitHub Desktop.
~/.i3/config
exec --no-startup-id compton -CGb --vsync opengl-swc --glx-no-stencil true --glx-no-rebind-pixmap true --paint-on-overlay --shadow-exclude 'argb && _NET_WM_OPAQUE_REGION@:c'
set $mod Mod4
set $ALT Mod1
set $ws1 1:term
set $ws2 2:web
set $ws3 3:steam
set $ws4 4:other
font pango:Droid Sans Mono 10
floating_modifier $mod
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+d exec dmenu_run -fn 'Droid Sans Mono-9'
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $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
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+f fullscreen
bindsym $ALT+F4 kill
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 -- +10% && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -10% && killall -SIGUSR1 i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace nubmer 9
bindsym $mod+0 workspace number 0
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 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'"
for_window [class="Roxterm"] border none
for_window [class="Firefox"] border none
for_window [class="Google-chrome.*"] border none
for_window [class="Steam"] border none
for_window [title=".*Counter-Strike.*"] fullscreen
for_window [class="Wine"] floating enable
assign [class="Roxterm"] $ws1
assign [class="Firefox"] $ws2
assign [class="Steam"] $ws3
assign [title="Steam"] $ws3
assign [title=".*Counter-Strike.*"] $ws3
assign [class="Google-chrome.*"] $ws4
exec firefox
exec steam
exec roxterm
exec start-pulseaudio-x11
exec ~/.fehbg
exec setxkbmap -option grp:alt_shift_toggle -layout "us,ua,ru"
bar {
i3bar_command /usr/bin/i3bar
status_command py3status -c ~/.i3status.conf
mode dock
workspace_buttons yes
position bottom
colors {
separator #666666
background #222222
statusline #dddddd
focused_workspace #0088CC #0088CC #ffffff
active_workspace #333333 #333333 #ffffff
inactive_workspace #333333 #333333 #888888
urgent_workspace #2f343a #900000 #ffffff
}
}
client.focused #0088CC #0088CC #ffffff #dddddd
client.focused_inactive #333333 #333333 #888888 #292d2e
client.unfocused #333333 #333333 #888888 #292d2e
client.urgent #2f343a #900000 #ffffff #90000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment