Skip to content

Instantly share code, notes, and snippets.

@jschmid1
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save jschmid1/2dd14f9533c3b313670e to your computer and use it in GitHub Desktop.

Select an option

Save jschmid1/2dd14f9533c3b313670e to your computer and use it in GitHub Desktop.
## dkeg 2013;i3 config file (v4) ##
exec setxkbmap us
exec setxkbmap -option ctrl:nocaps
exec xset m 1.3 0
exec xchat
#exec plasma-windowed org.kde.networkmanagement
exec feh --bg-fill ~/.i3/wallpaper.jpg
exec sh /home/jxs/.screenlayout/3mon.sh
exec owncloud
exec gajim
exec thunderbird
exec firefox
exec nm-applet
set $mod Mod4
#set $MOD MOD1
# SET MODE SWITCH
#set Mode_switch $MOD5
#default, floating, tabbed
#new container floating
# TOGGLE FLOATING / TILING
#bindsym $MOD+SHIFT+t floating toggle
# new window default border
#new_window 1pixel
#new_window pixel 2
#new_float 1pixel
#new_float pixel 2
# HIDE EDGE BORDERS
#hide_edge_borders <none|vertical|horizontal|both>
#hide_edge_borders both
# font for window titles. ISO 10646 = Unicode
font fixed
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Back and Forth
workspace_auto_back_and_forth yes
# kill focused window
bindsym $mod+q kill
#bindsym $mod+Shift+Q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-30-*-*-*-*-*-*-*' -nb '#111111' -nf '#555555' -sb '#111111' -sf '#aadb0f'
# CHANGING BORDER STYLE
bindsym $mod+t border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
# BORDERLESS CONTAINER
#i3-msg border none
# browser pop-ups
for_window [window_role="pop-up"] floating enable,move absolute center
# ASSIGN WORKSPACE VARIABLES
workspace 6:mail output HDMI1
workspace 1:status output HDMI1
workspace 2:cmd output HDMI1
workspace 3:ide output HDMI1
workspace 4:web output VGA1
workspace 5:ide-ext output eDP1
workspace 7:chat output HDMI1
workspace 8:write output eDP1
workspace 9:utils output VGA1
workspace 10:notes output VGA1
# WINDOW CONTROL
## Float everything
for_window [class="Xfce4-notifyd"] floating enable; border none; focus mode_toggle`
assign [class="libreoffice"] "8:write"
assign [class="Thunderbird"] "6:mail"
assign [class="Thunar"] "1:status"
assign [class="gajim"] "7:chat"
assign [class="Gajim"] "7:chat"
assign [class="Xchat"] "7:chat"
assign [class="plasma-windowed"] "10:notes"
#assign [class="Firefox"] "4:web"
#assign [class="Rubymine"] "3:ide"
for_window [title="pavucontrol"] floating enable
for_window [title="Preferences"] floating enable
for_window [title="Xfce-notifyd"] floating enable
bindsym $MOD+Tab focus right
# SCRATCHPAD CREATE
#bindsym $MOD+SHIFT+plus move scratchpad
# SCRATCHPAD SHOW
#bindsym $MOD+plus scratchpad show
# OPEN TERMINAL HERE (not working yet)
#bindsym $MOD+n exec $HOME/bin/shell.sh
# HANDLE POPUPS
#popup_during_fullscreen smart
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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
# split in horizontal orientation
bindsym $mod+v split v
# split in vertical orientation
bindsym $mod+b split h
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+x layout tabbed
bindsym $mod+z layout default
# 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 "1:status"
bindsym $mod+2 workspace "2:cmd"
bindsym $mod+3 workspace "3:ide"
bindsym $mod+4 workspace "4:web"
bindsym $mod+5 workspace "5:ide-ext"
bindsym $mod+6 workspace "6:mail"
bindsym $mod+7 workspace "7:chat"
bindsym $mod+8 workspace "8:write"
bindsym $mod+9 workspace "9:utils"
bindsym $mod+0 workspace "10:notes"
# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace "1:status"
bindsym $mod+Shift+at move container to workspace "2:cmd"
bindsym $mod+Shift+numbersign move container to workspace "3:ide"
bindsym $mod+Shift+dollar move container to workspace "4:web"
bindsym $mod+Shift+percent move container to workspace "5:ide-ext"
bindsym $mod+Shift+asciicircum move container to workspace "6:mail"
bindsym $mod+Shift+ampersand move container to workspace "7:chat"
bindsym $mod+Shift+asterisk move container to workspace "8:write"
bindsym $mod+Shift+parenleft move container to workspace "9:utils"
bindsym $mod+Shift+parenright move container to workspace "10:notes"
# 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 exit
# locks screen
bindsym $mod+Shift+L exec sh /home/jxs/.i3/i3lock-wrapper
# 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
# arrow keys #
# bindsym 113 right
# bindsym 116 up
# bindsym 111 left
# bindsym 114 down
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#EXAMPLE USING THE i3 bar
# Create Log out, Reboot, Poweroff bindings
mode "Exit >> (L)ogout, (X)eboot, (P)oweroff (C)Reload (R)Restart" {
bindsym Mod1+x exec systemctl reboot
bindsym Mod1+l exit
bindsym Mod1+p exec systemctl poweroff
bindsym Mod1+c reload
bindsym Mod1+r restart
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+Control+q mode "Exit >> (L)ogout, (X)eboot, (P)oweroff (C)Reload (R)Restart"
# take screenshot
bindsym Print exec gnome-screenshot
# colors
# class border backgr. text
## LIME GREEN ACTIVE BORDER
## BLUE ACTIVE BORDER
#client.focused #ff40404 #2b6cc4 #111111
## RED ACTIVE BORDER
#client.focused #bf3f34 #bf3f34 #111111
## LIGHTER RED ACTIVE BORDER
#client.focused #cc5555 #cc5555 #111111
#client.focused #9fbc00 #9fbc00 #111111
#client.unfocused #444444 #444444 #315858
#client.focused_inactive #444444 #444444 #2c2c2f
#client.urgent #383a3b #383a3b #ee0000
set $blue #005588
set $gray1 #4F305E
set $gray2 #333333
set $orange #FF8000
set $purple #3B0B24
#client.focused $gray1 $gray1 #FFFFFF #333333
#client.focused $orange $orange #FFFFFF #333333
client.focused $blue $blue #FFFFFF #333333
client.focused_inactive $gray2 $gray2 #FFFFFF #000000
client.unfocused $gray2 $gray2 #FFFFFF #000000
### ADDED KEY BINDINGS ###
#bindsym $MOD+SHIFT+f exec pcmanfm
#bindsym $MOD+Return exec --no-startup-id urxvt -g 90x16+15+425
bindsym $MOD+Return exec gnome-terminal --command='zsh'
bindsym $mod+i exec xfce4-terminal --command="htop"
# VOLUME ADJUSTMENT
bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
#bindsym $MOD+SHIFT+Up exec amixer set Master 5.0%+
#bindsym $MOD+SHIFT+Down exec amixer set Master 5.0%-
bindsym XF86AudioPlay exec "mpc toggle"
bindsym XF86AudioStop exec "mpc stop"
bindsym XF86AudioNext exec "mpc next"
bindsym XF86AudioPrev exec "mpc prev"
bindsym $mod+shift+F12 exec "sh /home/jxs/.screenlayout/3mon.sh"
bindsym $mod+shift+F10 exec "sh /home/jxs/.screenlayout/work.sh"
bindsym $mod+shift+F11 exec "sh /home/jxs/.screenlayout/home.sh"
bindsym $mod+shift+F9 exec "sh /home/jxs/.screenlayout/singlemon.sh"
bindsym $mod+shift+s exec xscreensaver-command -lock
bindsym $mod+p exec gnome-screenshot
bindsym $mod+m exec pavucontrol
bar {
status_command /home/jxs/bin/conky-i3bar
#output HDMI1
#output VGA1
#output eDP1
position top
mode dock
font pango:fixed 8
colors {
statusline #00ff7f
background #000000
# class border backgrd text
focused_workspace #292929 #3B0B24 #93e1b3
inactive_workspace #252525 #252525 #696f89
active_workspace #252525 #252525 #696f89
urgent_workspace #252525 #ffd700 #fd482f
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment