Created
August 16, 2017 19:47
-
-
Save pono/d8409536f47fb5725f7592b43dfd6954 to your computer and use it in GitHub Desktop.
i3config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $mod Mod4 | |
exec --no-startup-id sh ~/.fehbg & | |
# I don't like borders | |
new_window 1pixel | |
new_float 1pixel | |
# some stupid shit for i3-gaps | |
for_window [class="^.*"] border pixel 0 | |
#smart_gaps off | |
#workspace "1" gaps inner 10 | |
#workspace "1" gaps outer 9 | |
#gaps inner 12 | |
#smart_borders no_gaps | |
#bindsym $mod+y gaps inner current minus 6 | |
#bindsym $mod+u gaps inner current plus 6 | |
# Pretend to have alt+tab | |
#bindsym $mod+Tab workspace back_and_forth | |
bindsym $MOD+Tab focus right | |
bindsym $MOD+Shift+Tab focus left | |
bindsym $mod+Left workspace prev | |
bindsym $mod+Right workspace next | |
# lockscreen > vim bindings | |
bindsym $mod+Shift+l exec i3lock | |
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% | |
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% | |
#bindsym XF86AudioRaiseVolume amixer set Master 3%+ | |
#bindsym XF86AudioLowerVolume amixer set Master 3%- | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle | |
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle | |
bindsym XF86MonBrightnessDown exec "xbacklight -dec 15" | |
bindsym XF86MonBrightnessUp exec "xbacklight -inc 15" | |
bindsym XF86Calculator exec xeyes | |
assign [class="firefox"] 2 | |
assign [class="hipchat"] 3 | |
assign [class="hipchat4"] 3 | |
assign [class="evince"] 4 | |
assign [class="spotify"] 6 | |
# 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 | |
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec lxterminal | |
# kill focused window | |
bindsym $mod+Shift+c kill | |
# start dmenu (a program launcher) | |
#bindsym $mod+p exec dmenu_run | |
# use rofi instead | |
bindsym $mod+p exec rofi -show run | |
bindsym $mod+s exec rofi -show ssh | |
bindsym $mod+f exec rofi -show window | |
# change focus | |
bindsym $mod+j focus left | |
bindsym $mod+k focus down | |
bindsym $mod+l focus up | |
bindsym $mod+semicolon focus right | |
# move focused window | |
bindsym $mod+Shift+j move left | |
bindsym $mod+Shift+k move down | |
#bindsym $mod+Shift+l move up | |
bindsym $mod+Shift+semicolon 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 | |
# split in horizontal orientation | |
bindsym $mod+h split h | |
# split in vertical orientation | |
bindsym $mod+v split v | |
# 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+w layout tabbed | |
bindsym $mod+e 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+a focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
# switch to workspace | |
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 10 | |
# 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'" | |
# hide status bar unless alt is pressed | |
bar { | |
status_command i3status --config ~/.i3/i3status | |
mode hide | |
modifier Mod1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment