Skip to content

Instantly share code, notes, and snippets.

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

  • Save pry0cc/e634e3d815df3990d40a to your computer and use it in GitHub Desktop.

Select an option

Save pry0cc/e634e3d815df3990d40a to your computer and use it in GitHub Desktop.
## okubax 2014;i3 config file (v2) - Edited by Pry0c
#default, floating, tabbed
#new container floating
# TOGGLE FLOATING / TILING
#bindsym Mod4+SHIFT+t floating toggle
## New window default border
#new_window 1pixel
new_window pixel 2
#new_float 1pixel
new_float pixel 2
# font for window titles. ISO 10646 = Unicode
#font fixed
font pango:Droid Sans 9px
# Use Mouse+Mod4 to drag floating windows to their wanted position
floating_modifier Mod4
# start a terminal
# bindsym Mod4+Return exec i3-sensible-terminal
# Back and Forth
workspace_auto_back_and_forth yes
# kill focused window
bindsym Mod4+q kill
#bindsym Mod4+Shift+Q kill
# start dmenu (a program launcher)
#bindsym Mod4+p exec --no-startup-id "j4-dmenu-desktop --dmenu='dmenu -i -b -fn '-*-profont-*-*-*-*-11-*-*-*-*-*-*-*''"
bindsym Mod4+Return exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -nb '#111111' -nf '#555555' -sb '#111111' -sf '#aadb0f'
# CHANGING BORDER STYLE
bindsym Mod4+t border normal
bindsym Mod4+y border 1pixel
bindsym Mod4+u border none
# BORDERLESS CONTAINER
#i3-msg border none
# ASSIGN WORKSPACE VARIABLES
set $WS1 term
set $WS2 web
set $WS3 text
set $WS4 media
set $WS5 misc
set $WS6 system
set $WS7 office
set $WS8 mail
set $WS9 games
# WINDOW CONTROL
# Float
## Float everything
#for_window [class="[.]*"] floating enable
#for_window [class=""] floating enable
for_window [class="xpad" instance="scratchpad"] move scratchpad
for_window [class="MPlayer|Gnome-mplayer|Galculator|Gsimplecal|Viewnior|Alarm-clock|xpad|Java|Clamtk"] floating enable
for_window [class="File-roller|Lxappearance|Nitrogen|Arandr|Caffeine|Pavucontrol|emulator64-arm|Transmission-gtk|sublime-text"] floating enable
for_window [title="Preferences|Xfce-notifyd|Skype|TrueCrypt|Catfish|Google Keep|Pocket|irssi|update-manager"] floating enable
for_window [title="File Operation Progress" class="Thunar"] floating enable
for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable
for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable
# browser pop-ups
for_window [window_role="pop-up"] floating enable,move absolute center
## Move to workspace
assign [instance="terminator|urxvt|i3-sensible-terminal"] $WS1
assign [instance="Navigator|chromium|filezilla|transmission-gtk|Dialog"] $WS2
assign [class="jetbrains-android-studio"] $WS2
assign [class="sublime-text"] $WS3
assign [instance="mousepad|leafpad|geany"] $WS3
assign [instance="shotwell|nitrogen|simple-scan|quodlibet|gnome-mplayer|brasero|devede|imagination|picard|wxcam|google-musicmanager|sound-juicer|goobox"] $WS4
assign [class="MPlayer|mpv|Xfburn|Sonata|Pitivi"] $WS4
assign [class="Thunar|Gimp|Eclipse|Pinta|Blender|Catfish|Galculator"] $WS5
assign [class="VirtualBox"] $WS6
assign [instance="syncbackup|bleachbit|gparted|hardinfo|truecrypt"] $WS6
assign [instance="VCLSalFrame"] $WS7
assign [class="libreoffice*|Zathura"] $WS7
assign [class="Claws-mail"] $WS8
assign [class="Wine|Steam|dontstarve"] $WS9
## KEY BINDINGS
bindsym Mod4+Tab focus right
# SCRATCHPAD CREATE
bindsym Mod4+SHIFT+plus move scratchpad
# SCRATCHPAD SHOW
# bindsym Mod4+plus scratchpad show
# OPEN TERMINAL HERE (not working yet)
#bindsym Mod4+n exec $HOME/bin/shell.sh
# HANDLE POPUPS
#popup_during_fullscreen smart
# change focus
bindsym Mod4+h focus left
bindsym Mod4+j focus down
bindsym Mod4+k focus up
bindsym Mod4+l focus right
# move focused window
bindsym Mod4+Shift+H move left
bindsym Mod4+Shift+J move down
bindsym Mod4+Shift+K move up
bindsym Mod4+Shift+L move right
# split in horizontal orientation
bindsym Mod4+plus split h
# split in vertical orientation
bindsym Mod4+underscore split v
# enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen
# change container layout (stacked, tabbed, default)
bindsym Mod4+s layout stacking
bindsym Mod4+x layout tabbed
bindsym Mod4+z layout default
# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle
# focus the parent container
bindsym Mod4+a focus parent
# focus the child container
bindsym Mod4+d focus child
# switch to workspace
bindsym Mod4+1 workspace $WS1
bindsym Mod4+2 workspace $WS2
bindsym Mod4+3 workspace $WS3
bindsym Mod4+4 workspace $WS4
bindsym Mod4+5 workspace $WS5
bindsym Mod4+6 workspace $WS6
bindsym Mod4+7 workspace $WS7
bindsym Mod4+8 workspace $WS8
bindsym Mod4+9 workspace $WS9
bindsym Mod4+0 workspace 10
# move focused container to workspace
bindsym Mod4+Shift+exclam move container to workspace $WS1
bindsym Mod4+Shift+at move container to workspace $WS2
bindsym Mod4+Shift+numbersign move container to workspace $WS3
bindsym Mod4+Shift+dollar move container to workspace $WS4
bindsym Mod4+Shift+percent move container to workspace $WS5
bindsym Mod4+Shift+asciicircum move container to workspace $WS6
bindsym Mod4+Shift+ampersand move container to workspace $WS7
bindsym Mod4+Shift+asterisk move container to workspace $WS8
bindsym Mod4+Shift+parenleft move container to workspace 9
bindsym Mod4+Shift+parenright move container to workspace 10
# reload the configuration file
bindsym Mod4+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym Mod4+Shift+E exit
# 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 Mod4+r mode "resize"
#EXAMPLE USING THE i3 bar
# Create Log out, Reboot, Poweroff bindings
set Mod4e_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "Mod4e_system" {
bindsym l exec --no-startup-id $HOME/bin/i3exit lock, mode "default"
bindsym e exec --no-startup-id $HOME/bin/i3exit logout, mode "default"
bindsym s exec --no-startup-id $HOME/bin/i3exit suspend, mode "default"
bindsym h exec --no-startup-id $HOME/bin/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id $HOME/bin/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id $HOME/bin/i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+Shift+Q mode "Mod4e_system"
# take screenshot
# bindsym Print exec scrot '%Y-%m-%d-%t_$wx$h.png' -e 'mv $ $f ~/images/'
#bindsym Print exec scrot 'Screenshot - %Y-%m-%d--%_$wx$h_scrot.png' -e 'mv $f ~/images/screenshots'
bindsym Print exec $HOME/bin/screen.sh root
bindsym Mod4+Print exec $HOME/bin/screen.sh active
# colors
#class border backgr. text
client.focused #909737 #909737 #111111
client.focused_inactive #111111 #111111 #999999
client.unfocused #222222 #222222 #999999
client.urgent #a5a5a5 #a5a5a5 #2e3436
client.background #161616
### ADDED KEY BINDINGS ###
#bindsym Mod4+Return exec --no-startup-id urxvt
bindsym Mod4+SHIFT+f exec thunar
bindsym Mod4+w exec chromium
bindsym Mod4+SHIFT+w exec firefox
bindsym Mod4+b exec $HOME/downloads/tor-browser_en-US/start-tor-browser
bindsym Mod4+e exec geany
bindsym Mod4+o exec i3lock -i $HOME/images/walls/TF2_2.png
bindsym Mod4+i exec i3-sensible-terminal
bindsym Mod4+SHIFT+t exec urxvt -e htop
# VOLUME ADJUSTMENT
bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume 0 -- +2%"
bindsym XF86AudioLowerVolume exec "pactl set-sink-volume 0 -- -2%"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
#bindsym Mod4+SHIFT+Up exec amixer set Master 5.0%+
#bindsym Mod4+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"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command ~/.i3/conky
tray_output none
position top
mode dock
# font pango:fixed 6
# font pango:Droid Sans Bold 10px
font -*-profont-*-*-*-*-11-*-*-*-*-*-*-*
# font pango:Consolas Bold 9px
colors {
background #161616
statusline #605c5a
# class border backgrd text
focused_workspace #161616 #909737 #ffffff
active_workspace #161616 #161616 #a5a5a5
inactive_workspace #161616 #545454 #a5a5a5
urgent_workspace #161616 #545454 #a5a5a5
}
}
## BACKGROUND OPTIONS (STARTED IN .XINITRC)
# AUTOSTART
exec --no-startup-id sh ~/.fehbg
exec gnome-settings-daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment