Skip to content

Instantly share code, notes, and snippets.

@hd9
Created January 13, 2020 17:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hd9/adb99fd63f946f2b0926c4de1f7ae037 to your computer and use it in GitHub Desktop.
Save hd9/adb99fd63f946f2b0926c4de1f7ae037 to your computer and use it in GitHub Desktop.
#################################
# Source: https://blog.hildenco.com/2019/08/how-i-fell-in-love-with-i3.html
#################################
# start a terminal
bindsym $mod+Return exec gnome-terminal
# kill focused window
bindsym $mod+x kill
# change focus (vim-based hjkl)
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# i3bar
bar {
i3bar_command i3bar --transparency
status_command i3status
position top
colors{
#background #202020EE
background #000000BB
statusline #ffffff
# class boarder backgr text
focused_workspace #545454 #3c3c3c #ffffff
inactive_workspace #545454 #202020 #ffffff
active_workspace #545454 #202020 #ffffff
urgent_workspace #545454 #202020 #ffffff
}
}
# nice transitions
exec_always --no-startup-id compton -f --config ~/.config/compton/config
# network icon/manager
exec --no-startup-id nm-applet
# kbd
bindsym $mod+space exec ~/.config/i3/kbd-switch.sh
# Custom Keybindings mapping keyboard Fkeys
bindsym $mod+f exec firefox
bindsym $mod+Shift+f exec firefox --private-window
bindsym $mod+g exec chromium-browser
bindsym $mod+Shift+g exec chromium-browser --incognito
bindsym $mod+F2 exec nautilus -w
bindsym $mod+F3 exec gedit
bindsym $mod+F4 exec keepassxc
bindsym $mod+F5 exec gnome-boxes
bindsym $mod+Shift+F9 exec --no-startup-id i3-msg lock
bindsym $mod+F10 exec --no-startup-id i3lock -c 000000
bindsym $mod+Shift+F11 exec --no-startup-id shutdown now
bindsym Print exec gnome-screenshot -i
bindsym XF86Calculator exec gnome-calculator
# workspace back and forth
# switch between the current and the previously focused one
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+Shift+Tab move container to workspace back_and_forth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment