Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## dkeg 2013;i3 config file (v4) ##
- 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
- font pango:Droid Sans 10px
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- #bindsym $mod+Return exec i3-sensible-terminal
- # 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+p exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -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
- set $WS1 »term
- set $WS2 »web
- set $WS3 »text
- set $WS4 »media
- set $WS5 »misc
- set $WS6 »system
- set $WS7 »office
- set $WS8 »mail
- # WINDOW CONTROL
- ## Float everything
- #for_window [class="[.]*"] floating enable
- assign [class="mplayer2"] $WS4
- assign [class="VirtualBox"] $WS6
- assign [class="libreoffice*|Evince"] $WS7
- assign [class="Sylpheed"] $WS8
- assign [instance="VCLSalFrame"] $WS7
- for_window [class="mplayer2"] floating enable
- ## BROWSER ASSIGNMENT (Navigator=Iceape)
- assign [instance="Navigator|chromium|filezilla|transmission-gtk"] $WS2
- for_window [title="Skype"] floating enable
- for_window [class="Arandr"] floating enable
- #for_window [title="download"] floating enable
- for_window [title="TrueCrypt"] floating enable
- #for_window [title="Browser"] floating enable
- for_window [title="Catfish"] 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
- for_window [title="Preferences"] floating enable
- for_window [class="Gsimplecal"] floating enable
- for_window [class="Alarm-clock"] floating enable
- for_window [class="Viewnior"] floating enable
- for_window [class="Lxappearance"] floating enable
- for_window [class="Nitrogen"] floating enable
- for_window [title="Xfce-notifyd"] floating enable
- #for_window [class="URxvt"] floating enable
- #for_window [class="URxvt"] border 1pixel
- assign [class="Thunar|Gimp|Eclipse|Pinta|Blender|Catfish|Galculator"] $WS5
- #for_window [class="Thunar"] floating enable
- for_window [class="mousepad"] floating enable
- assign [instance="mousepad|leafpad|geany"] $WS3
- assign [instance="terminator|urxvt"] $WS1
- assign [instance="shotwell|nitrogen|simple-scan|quodlibet|gnome-mplayer|brasero|devede|imagination|picard|wxcam|google-musicmanager|sound-juicer"] $WS4
- assign [instance="syncbackup|bleachbit|caffeine|gparted|hardinfo|truecrypt"] $WS6
- #for_window [class="Mousepad"] floating enable
- #assign [class="Turpial" ] $WS4
- #for_window [class="Turpial" ] 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+H move left
- bindsym $mod+Shift+J move down
- bindsym $mod+Shift+K move up
- bindsym $mod+Shift+L move right
- # split in horizontal orientation
- bindsym $mod+bar split h
- # split in vertical orientation
- bindsym $mod+underscore split v
- # 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 $WS1
- bindsym $mod+2 workspace $WS2
- bindsym $mod+3 workspace $WS3
- bindsym $mod+4 workspace $WS4
- bindsym $mod+5 workspace $WS5
- bindsym $mod+6 workspace $WS6
- bindsym $mod+7 workspace $WS7
- bindsym $mod+8 workspace $WS8
- bindsym $mod+9 workspace 9
- bindsym $mod+0 workspace 10
- # move focused container to workspace
- bindsym $mod+Shift+exclam move container to workspace $WS1
- bindsym $mod+Shift+at move container to workspace $WS2
- bindsym $mod+Shift+numbersign move container to workspace $WS3
- bindsym $mod+Shift+dollar move container to workspace $WS4
- bindsym $mod+Shift+percent move container to workspace $WS5
- bindsym $mod+Shift+asciicircum move container to workspace $WS6
- bindsym $mod+Shift+ampersand move container to workspace $WS7
- bindsym $mod+Shift+asterisk move container to workspace $WS8
- bindsym $mod+Shift+parenleft move container to workspace 9
- bindsym $mod+Shift+parenright move container to workspace 10
- # 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
- # 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 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 Mod1+Print exec $HOME/bin/screen.sh active
- # colors
- # class border backgr. text
- ## LIME GREEN ACTIVE BORDER
- client.focused #9fbc00 #9fbc00 #111111
- ## BLUE ACTIVE BORDER
- #client.focused #2b6cc4 #2b6cc4 #111111
- ## RED ACTIVE BORDER
- #client.focused #bf3f34 #bf3f34 #111111
- ## LIGHTER RED ACTIVE BORDER
- #client.focused #cc5555 #cc5555 #111111
- client.unfocused #444444 #444444 #315858
- client.focused_inactive #444444 #444444 #2c2c2f
- client.urgent #383a3b #383a3b #ee0000
- ### ADDED KEY BINDINGS ###
- bindsym $MOD+SHIFT+f exec thunar
- bindsym $MOD+Return exec --no-startup-id urxvt -g 90x16+15+425
- #bindsym $MOD+Return exec --no-startup-id terminator
- bindsym $mod+w exec firefox
- bindsym $mod+b exec /home/ajibola/downloads/tor-browser_en-US/start-tor-browser
- bindsym $mod+e exec geany
- bindsym Mod1+e exec sylpheed
- bindsym $mod+i exec urxvt -e irssi
- bindsym $MOD+SHIFT+t exec urxvt -e 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"
- # Start i3bar to display a workspace bar (plus the system information i3status
- # finds out, if available)
- bar {
- status_command $HOME/bin/conky-i3bar
- tray_output none
- position top
- mode dock
- # font pango:fixed 6
- font pango:Convergence 9px
- colors {
- statusline #999999
- background #252525
- # class border backgrd text
- focused_workspace #292929 #292929 #cccccc
- active_workspace #252525 #252525 #696f89
- inactive_workspace #252525 #252525 #6b6b6b
- urgent_workspace #252525 #252525 #c7a551
- }
- }
- ## BACKGROUND OPTIONS (STARTED IN .XINITRC)
- # AUTOSTART
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement