Created
August 2, 2016 20:20
-
-
Save j0hn/10201a8d36d1c1679cdce1ed8988b7b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
set $mod Mod4 | |
# Colors | |
set $base00 #101218 | |
set $base01 #1f222d | |
set $base02 #252936 | |
set $base03 #7780a1 | |
set $base04 #C0C5CE | |
set $base05 #d1d4e0 | |
set $base06 #C9CCDB | |
set $base07 #ffffff | |
set $base08 #ee829f | |
set $base09 #f99170 | |
set $base0A #ffefcc | |
set $base0B #a5ffe1 | |
set $base0C #97e0ff | |
set $base0D #97bbf7 | |
set $base0E #c0b7f9 | |
set $base0F #fcc09e | |
set $workspace1 "1: " | |
set $workspace2 "2: " | |
set $workspace3 "3: " | |
set $workspace4 "4: " | |
set $workspace5 "5: " | |
set $workspace6 "6: " | |
set $workspace7 "7: " | |
set $workspace8 "8: " | |
set $workspace9 "9: " | |
set $workspace10 "10: " | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. ISO 10646 = Unicode | |
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
font pango:System San Francisco Display 10 | |
# The font above is very space-efficient, that is, it looks good, sharp and | |
# clear in small sizes. However, if you need a lot of unicode glyphs or | |
# right-to-left text rendering, you should instead use pango for rendering and | |
# chose a FreeType font, such as: | |
# font pango:DejaVu Sans Mono 10 | |
# 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+q kill | |
# start dmenu (a program launcher) | |
# bindsym $mod+d exec dmenu_run | |
bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 340 -opacity "85" -bw 0 -bc "$base01" -bg "$base01" -fg "$base07" -font "System San Francisco Displays 18" | |
# There also is the (new) i3-dmenu-desktop which only displays applications | |
# shipping a .desktop file. It is a wrapper around dmenu, so you need that | |
# installed. | |
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |
# | |
# Bind for applications | |
bindsym $mod+n exec nautilus --no-desktop | |
bindsym $mod+g exec google-chrome | |
bindsym $mod+p exec pidgin | |
# 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 | |
# 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 | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen | |
# change container layout (stacked, tabbed, toggle split) | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+e layout toggle split | |
# toggle tiling / floating | |
bindsym $mod+Shift+space floating toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
# switch to workspace | |
bindsym $mod+1 workspace $workspace1 | |
bindsym $mod+2 workspace $workspace2 | |
bindsym $mod+3 workspace $workspace3 | |
bindsym $mod+4 workspace $workspace4 | |
bindsym $mod+5 workspace $workspace5 | |
bindsym $mod+6 workspace $workspace6 | |
bindsym $mod+7 workspace $workspace7 | |
bindsym $mod+8 workspace $workspace8 | |
bindsym $mod+9 workspace $workspace9 | |
bindsym $mod+0 workspace $workspace10 | |
# Move workspaces from monitors | |
bindsym $mod+x move workspace to output right | |
# Printscreen | |
bindsym Print exec gnome-screenshot --interactive | |
# Set workspaces to monitors | |
workspace $workspace1 output DVI-I-1 | |
workspace $workspace2 output DVI-I-1 | |
workspace $workspace3 output VGA-1 | |
workspace $workspace4 output VGA-1 | |
workspace $workspace5 output VGA-1 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace $workspace1 | |
bindsym $mod+Shift+2 move container to workspace $workspace2 | |
bindsym $mod+Shift+3 move container to workspace $workspace3 | |
bindsym $mod+Shift+4 move container to workspace $workspace4 | |
bindsym $mod+Shift+5 move container to workspace $workspace5 | |
bindsym $mod+Shift+6 move container to workspace $workspace6 | |
bindsym $mod+Shift+7 move container to workspace $workspace7 | |
bindsym $mod+Shift+8 move container to workspace $workspace8 | |
bindsym $mod+Shift+9 move container to workspace $workspace9 | |
bindsym $mod+Shift+0 move container to workspace $workspace10 | |
# Force programs to workspaces | |
assign [class="google-chrome"] $workspace2 | |
assign [class="Pidgin"] $workspace5 | |
assign [class="Nautilus"] $workspace3 | |
assign [class="Transmission-gtk"] $workspace10 | |
# Cycle through active workspaces | |
bindsym $mod+Tab workspace next | |
bindsym $mod+Shift+Tab workspace prev | |
# Enable media keys | |
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +10% #increase sound volume | |
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -10% #decrease sound volume | |
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound | |
bindsym XF86AudioPlay exec mocp -G # toggle play/pause on mocp | |
# 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 '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'" | |
# lock screen | |
bindsym $mod+Shift+l exec i3lockblur | |
# resize window (you can also use the mouse for that) | |
mode "resize" { | |
# These bindings trigger as soon as you enter the resize mode | |
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 | |
# 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" | |
} | |
bindsym $mod+r mode "resize" | |
# General Configuration | |
hide_edge_borders both | |
for_window [class="^.*"] border pixel 1 | |
# Widow Colours | |
# border background text indicator | |
client.focused $base01 $base01 $base07 $base0F | |
client.focused_inactive $base02 $base02 $base03 $base0F | |
client.unfocused $base02 $base02 $base03 $base0F | |
client.urgent $base02 $base08 $base00 $base0F | |
# Startups | |
exec --no-startup-id nm-applet | |
exec xautolock -time 8 -locker "i3lockblur" | |
exec_always /home/ggarcia/.wallpaper.py | |
exec_always compton -cCGf -o 0.2 -D 5 --backend glx --vsync opengl | |
exec_always xrandr --output DVI-I-1 --auto --left-of VGA-1 | |
#exec_always update-manager | |
# Bottom bar | |
bar { | |
mode dock | |
status_command i3status | |
modifier Mod4 | |
colors { | |
separator $base03 | |
background $base01 | |
statusline $base05 | |
# border background text | |
focused_workspace $base01 $base01 $base07 | |
active_workspace $base01 $base02 $base03 | |
inactive_workspace $base01 $base01 $base03 | |
urgent_workspace $base01 $base01 $base08 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment