Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set $mod Mod4
- # 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
- # 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:liberation sans 10
- exec --no-startup-id nitrogen --restore
- exec --no-startup-id tree ~ > tree
- exec --no-startup-id xrdb ~/.Xresources
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start programs
- exec --no-startup-id compton
- exec --no-startup-id pnmixer
- exec --no-startup-id nm-applet
- exec --no-startup-id feh --bg-fill ~/Downloads/backup/blank.jpg
- bindsym $mod+z exec --no-startup-id i3-input -f dejavu sans mono -F 'exec "%s"' -P 'run> '
- bindsym $mod+Return exec --no-startup-id xfce4-terminal
- bindsym $mod+w exec --no-startup-id firefox
- bindsym $mod+p exec --no-startup-id pavucontrol
- bindsym $mod+f exec --no-startup-id thunar
- bindsym $mod+t exec --no-startup-id urxvt
- bindsym $mod+g exec --no-startup-id gimp
- bindsym $mod+l exec --no-startup-id deluge
- bindsym $mod+Shift+s exec --no-startup-id cd ~/Pictures/Screenshots && scrot -b
- bindsym $mod+space exec --no-startup-id mpc toggle
- bindsym $mod+Shift+m exec --no-startup-id mpc next
- bindsym $mod+Shift+n exec --no-startup-id mpc prev
- #bindsym $mod+t exec --no-startup-id java -jar ~/Downloads/Chatty/Chatty.jar
- # kill focused window
- bindsym $mod+q kill
- # start dmenu (a program launcher)
- bindsym $mod+d exec --no-startup-id dmenu_extended_run -p "Menu" -nb "#1F1F1F" -nf "#bebbbb" -sb "#bebbbb" -sf "#000000" -i #-h 20 -fn "Terminus-10"
- # 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.
- # 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
- # 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
- # 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+x fullscreen
- # change container layout (stacked, tabbed, toggle split)
- #bindsym $mod+w layout tabbed
- #bindsym $mod+s layout stacking
- #bindsym $mod+e layout toggle split
- # toggle tiling / floating
- bindsym $mod+Shift+space floating toggle
- # focus the parent container
- bindsym $mod+a focus parent
- # focus the child container
- #bindsym $mod+d focus child
- # split in horizontal orientation
- bindsym $mod+h split h
- # split in vertical orientation
- bindsym $mod+v split v
- # customize workspace names
- # set $ws1 1: Web
- # set $ws2 2: Code
- # set $ws3 3: Terminal
- # set $ws4 4: Media
- # switch to workspace3
- bindsym $mod+1 workspace 1
- bindsym $mod+2 workspace 2
- bindsym $mod+3 workspace 3
- bindsym $mod+4 workspace 4
- bindsym $mod+5 workspace 5
- bindsym $mod+6 workspace 6
- bindsym $mod+7 workspace 7
- bindsym $mod+8 workspace 8
- bindsym $mod+9 workspace 9
- bindsym $mod+0 workspace 10
- # move focused container to workspace
- bindsym $mod+Shift+1 move container to workspace 1
- bindsym $mod+Shift+2 move container to workspace 2
- bindsym $mod+Shift+3 move container to workspace 3
- bindsym $mod+Shift+4 move container to workspace 4
- bindsym $mod+Shift+5 move container to workspace 5
- bindsym $mod+Shift+6 move container to workspace 6
- bindsym $mod+Shift+7 move container to workspace 7
- bindsym $mod+Shift+8 move container to workspace 8
- bindsym $mod+Shift+9 move container to workspace 9
- bindsym $mod+Shift+0 move container to workspace 0
- # colors
- client.focused #4a5252 #4a5252 #4a5252 #4a5252
- #client.unfocused #333333 #222222 #888888 #292d2e
- client.unfocused #333939 #333939 #333939 #333939
- client.focused_inactive #333939 #333939 #333939 #333939
- client.urgent #2f343a #900000 #ffffff #900000
- # fer / titlebar
- new_window normal
- hide_edge_borders vertical
- bindsym Control+Shift+x [class="^.*"] border toggle
- for_window [class="^.*"] border pixel 2
- #for_window [class="URxvt"] border normal
- #for_window [class="[.]*"] floating enable
- # 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'"
- # resize window (you can also use the mouse for that)
- mode "resize" {
- # These bindings trigger as soon as you enter the resize mode
- # Pressing left will shrink the window’s width.
- # Pressing right will grow the window’s width.
- # Pressing up will shrink the window’s height.
- # Pressing down will grow the window’s height.
- bindsym j resize shrink width 5 px or 5 ppt
- bindsym k resize grow height 5 px or 5 ppt
- bindsym l resize shrink height 5 px or 5 ppt
- bindsym k resize grow width 5 px or 5 ppt
- # same bindings, but for the arrow keys
- bindsym Right resize shrink width 5 px or 5 ppt
- bindsym Down resize grow height 5 px or 5 ppt
- bindsym Up resize shrink height 5 px or 5 ppt
- bindsym Left resize grow width 5 px or 5 ppt
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- # resize with $mod+r
- bindsym $mod+r mode "resize"
- # Start i3bar to display a workspace bar (plus the system information i3status
- # finds out, if available)
- bar {
- #mode hide
- hidden_state hide
- modifier Mod4
- status_command i3status
- position top
- height 18
- font pango:ubunadatu mono 10
- colors {
- background #1F1F1F
- statusline #bebbbb
- separator #1F1F1F
- focused_workspace #1F1F1F #383838 #bebbbb
- active_workspace #1F1F1F #1F1F1F #bebbbb
- inactive_workspace #1F1F1F #1F1F1F #bebbbb
- urgent_workspace #3c4d43 #bebbbb #121838
- }
- }
- # xmodmap ~/.Xmodmap &
- #gap_size 12
- gaps inner 15
- gaps outer 0
- # Touchpad controls
- #bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
- for_window [class="mpv"] floating enable
- for_window [class="Pavucontrol"] floating enable
- for_window [class="feh"] floating enable
- #bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 1%-
- #bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 1%+
- bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
- bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
- bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
- bindsym $mod+ctrl+Right gaps inner all plus 5
- bindsym $mod+ctrl+Left gaps inner all minus 5
- bindsym $mod+ctrl+Up gaps outer all plus 5
- bindsym $mod+ctrl+Down gaps outer all minus 5
- bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -1% && killall -SIGUSR1 i3status
- bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +1% && killall -SIGUSR1 i3status
Advertisement
Add Comment
Please, Sign In to add comment