Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # vim:filetype=i3
- # syntax available at: https://github.com/PotatoesMaster/i3-vim-syntax.git
- # ------------------------------------------------------------------------------
- # General settings
- # ------------------------------------------------------------------------------
- set $mod Mod4
- set $alt Mod1
- set $term terminator
- font pango:Inconsolata Mono 10
- set $lime #9FBC00
- set $darklime #505e00
- set $blue #131D24
- set $lightblue #232D34
- set $lightgray #DDEEDD
- set $darkgray #444444
- set $white #FFFFFF
- set $urgentred #B33A3A
- bar {
- status_command i3status -c $HOME/.i3/i3status.conf
- font pango:Inconsolata Mono, FontAwesome, fontawesome-webfont, ionicons, icons 8
- colors {
- background #3f3f3f
- statusline #dcdccc
- focused_workspace #93b3a3 #3f3f3f #93b3a3
- active_workspace #ffcfaf #3f3f3f #ffcfaf
- inactive_workspace #636363 #3f3f3f #dcdccc
- urgent_workspace #dca3a3 #3f3f3f #dca3a3
- separator #9FBC00
- }
- }
- # colors
- # from: https://gist.github.com/paulbdavis/4956329
- # class border backgr. text indicator
- client.focused #dcdccc #dcdccc #3c3b37 #ffcfaf
- client.focused_inactive #3c3b37 #3c3b37 #7f9f7f #3c3b37
- client.unfocused #3c3b37 #3c3b37 #dcdccc #3c3b37
- client.urgent #dca3a3 #dca3a3 #dcdccc #3c3b37
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- #bindsym $mod+Return exec i3-sensible-terminal
- bindsym $mod+Return exec $term
- # kill focused window
- bindsym $alt+F4 kill
- # lock screen
- bindsym Control+$alt+l exec $HOME/.i3/i3-lock-wrapper
- # start dmenu (a program launcher)
- bindsym $mod+d exec dmenu_run -i -p "Search:" -nb "$blue" -nf "$lightgray" -sb "$lightblue" -sf "$lime"
- bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop --dmenu='dmenu -i -p "Search:" -nb "$blue" -nf "$lightgray" -sb "$lightblue" -sf "$lime"'
- # no window border
- for_window [class="^.*"] border none
- # ------------------------------------------------------------------------------
- # Orientation
- # ------------------------------------------------------------------------------
- # change focus
- bindsym $mod+Left focus left
- bindsym $mod+Down focus down
- bindsym $mod+Up focus up
- bindsym $mod+Right 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
- #Alternative, using hjkl
- # 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
- #Ok, wtf?
- # split in horizontal orientation
- # Yup, split v will split in horizontal...
- bindsym $mod+o split v
- # split in vertical orientation
- bindsym $mod+e split h
- # 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+t layout tabbed
- bindsym $mod+Shift+s 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+q focus parent
- # focus the child container
- #bindsym $mod+d focus child
- # ------------------------------------------------------------------------------
- # Workspaces
- # ------------------------------------------------------------------------------
- set $WS1 1
- set $WS2 2
- set $WS3 3
- set $WS4 4
- set $WS5 5
- set $WS6 6
- set $WS7 7
- set $WS8 8
- set $WS9 9
- set $WS10 10
- # switch to workspace
- bindsym $mod+ampersand workspace $WS1
- bindsym $mod+eacute workspace $WS2
- bindsym $mod+quotedbl workspace $WS3
- bindsym $mod+apostrophe workspace $WS4
- bindsym $mod+parenleft workspace $WS5
- bindsym $mod+minus workspace $WS6
- bindsym $mod+egrave workspace $WS7
- bindsym $mod+underscore workspace $WS8
- bindsym $mod+ccedilla workspace $WS9
- bindsym $mod+agrave workspace $WS10
- # move focused container to workspace
- bindsym $mod+Shift+ampersand move container to workspace $WS1
- bindsym $mod+Shift+eacute move container to workspace $WS2
- bindsym $mod+Shift+quotedbl move container to workspace $WS3
- bindsym $mod+Shift+apostrophe move container to workspace $WS4
- bindsym $mod+Shift+5 move container to workspace $WS5
- bindsym $mod+Shift+minus move container to workspace $WS6
- bindsym $mod+Shift+egrave move container to workspace $WS7
- bindsym $mod+Shift+underscore move container to workspace $WS8
- bindsym $mod+Shift+ccedilla move container to workspace $WS9
- bindsym $mod+Shift+agrave move container to workspace $WS10
- # ------------------------------------------------------------------------------
- # Window properties
- # ------------------------------------------------------------------------------
- #for_window [class="Gvim"] floating enable, border none
- for_window [class="Vlc"] floating enable, border none
- for_window [class="nautilus"] floating enable, border none
- # Correct handling of dialogs
- for_window [class="Lxappearance"] floating enable
- for_window [class="Xarchiver"] floating enable
- for_window [instance="Msgcompose"] floating enable
- for_window [title="Preferences$"] floating enable
- for_window [window_role="pop-up"] floating enable
- for_window [window_role="task_dialog"] floating enable
- for_window [window_role="About"] floating enable
- # ------------------------------------------------------------------------------
- # Application settings
- # ------------------------------------------------------------------------------
- # volume controle
- bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -- -7%
- bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -- +5%
- bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
- # Screenshot
- bindsym --release Print exec --no-startup-id scrot '%s_%Y-%m-%d-.png' -e 'mv $f ~'
- bindsym --release Shift+Print exec --no-startup-id scrot '%s_%Y-%m-%d-.png' -s -e 'mv $f ~'
- # 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)
- set $i3exitdialog "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'"
- bindsym $mod+Shift+e exec $i3exitdialog
- bindsym $mod+Delete exec $i3exitdialog
- # ------------------------------------------------------------------------------
- # Modes
- # ------------------------------------------------------------------------------
- # resize window (you can also use the mouse for that)
- mode "resize" {
- # These bindings trigger as soon as you enter the resize mode
- bindsym j resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym l resize shrink height 10 px or 10 ppt
- bindsym m 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"
- # System mode
- set $sysmenu "system: [r]eload [l]ogout [p]oweroff re[b]oot"
- bindsym $mod+Escape mode $sysmenu
- mode $sysmenu {
- bindsym r restart
- bindsym l exec --no-startup-id ~/.i3/i3exit logout, mode "default"
- bindsym p exec --no-startup-id ~/.i3/i3exit shutdown, mode "default"
- bindsym b exec --no-startup-id ~/.i3/i3exit reboot, mode "default"
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- # Wallpaper
- exec_always --no-startup-id feh --bg-center $HOME/Pictures/HAT7K5Y.png
- # start tray applications
- exec --no-startup-id gnome-settings-daemon
- exec --no-startup-id nm-applet
- exec --no-startup-id gnome-sound-applet
- exec --no-startup-id dropbox start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement