Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
254 lines (206 sloc) 9.23 KB
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# color schemes → https://coolors.co/002b36-dc322f-fdf6e3-859900-f3f4f5
set $maastricht-blue #002B36
set $permanent-geranium-lake #DC322F
set $old-lace #FDF6E3
set $olive #859900
set $anti-flash-white #F3F4F5
set $ash-grey #B2B2B2
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.
font pango:Fira Sans Medium 10
exec --no-startup-id xrandr --output eDP-1 --primary --output HDMI-2 --above eDP-1
gaps inner 10
gaps outer 5
for_window [class="^.*"] border pixel 1
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal - use $TERMINAL to set the wanted terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+Q kill
# Kill Window - The middle button over a titlebar kills the window
bindsym --release button2 kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -fn "Fira Mono-14" -p "❯" -nb "$maastricht-blue" -nf "$ash-grey" -sb "$olive" -sf "$anti-flash-white"
# 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
# move workspaces
bindsym $mod+Ctrl+Up move workspace to output up
bindsym $mod+Ctrl+Right move workspace to output right
bindsym $mod+Ctrl+Down move workspace to output down
bindsym $mod+Ctrl+Left move workspace to output left
# 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 toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the first scratchpad window
bindsym $mod+minus scratchpad show
# Show the sup-mail scratchpad window, if any
bindsym $mod+s+minus [title="^Sup ::"] scratchpad show
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [title="Preferences$"] floating enable
for_window [window_role="About"] floating enable
for_window [class="zazu"] floating enable
for_window [class="Eog"] floating enable
for_window [class="Peek"] floating enable
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# back to previous workspace http://www.slackword.net/?p=657
workspace_auto_back_and_forth yes
bindsym $mod+z workspace back_and_forth
bindsym $mod+Shift+z move container to workspace back_and_forth
# focus the parent container
bindsym $mod+q focus parent
# Define workspace
set $ws1 "1: Terminal 📺"
set $ws2 "2: Browser 🦊"
set $ws3 "3: Misc. 🎮"
set $ws4 "4: Comm 📟"
set $ws5 "5: Devel 🐐💨"
set $ws6 "6: Devel 🐝💨"
set $ws7 "7: Devel 🐋💨"
set $ws8 "8: Devel 🐑💨"
set $ws9 "9:"
set $ws10 "10:"
# pomodoro
bindsym $mod+F9 exec "python /opt/i3-gnome-pomodoro/pomodoro-client.py start"
bindsym $mod+F10 exec "python /opt/i3-gnome-pomodoro/pomodoro-client.py toggle"
bindsym $mod+F11 exec "python /opt/i3-gnome-pomodoro/pomodoro-client.py skip"
bindsym $mod+F12 exec "python /opt/i3-gnome-pomodoro/pomodoro-client.py stop"
exec python /opt/i3-gnome-pomodoro/pomodoro-client.py daemon 4 --nagbar &
# put client on specific Workspace
assign [class="^Firefox"] → $ws2
assign [class="^Nightly$"] → $ws2
assign [class="^Hexchat$"] → $ws4
assign [class="^Thunderbird$"] → $ws4
assign [class="^Mumble$"] → $ws4
assign [class="^Rambox$"] $ws4
# 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 $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# 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 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"
# Pulse Audio Controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle
# Keyboard Backlight Controls
# Pre-requisites → install asus-kbd-backlight.aur
#bindsym XF86KbdBrightnessUp exec --no-startup-id asus-kbd-backlight up
#bindsym XF86KbdBrightnessDown exec --no-startup-id asus-kbd-backlight down
# Brightness Consols
#bindsym XF86MonBrightnessDown exec xbacklight -steps 1 -time 0 -dec 5
#bindsym XF86MonBrightnessUp exec xbacklight -steps 1 -time 0 -inc 10
# Lock Screen
bindsym $mod+l exec --no-startup-id i3lock-fancy -gpf Fira-Sans -- scrot -z
# Open File Explorer
bindsym $mod+t exec --no-startup-id thunar
# Computer lock/logout/suspend/reboot/hibernate/shutdown Menu
set $Locker i3lock && sleep 1
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"
# NetworkManager Applet
exec --no-startup-id nm-applet
# Notifications
exec --no-startup-id dunst
# Windows colors
# border background text indicator
client.focused $maastricht-blue $old-lace $olive $old-lace
client.unfocused $maastricht-blue $maastricht-blue $ash-grey $old-lace
client.focused_inactive $maastricht-blue $maastricht-blue $ash-grey $old-lace
client.urgent $permanent-geranium-lake $permanent-geranium-lake $anti-flash-white $old-lace
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3blocks
position top
font pango: Fira Mono 12
separator_symbol " "
colors {
background $maastricht-blue
separator $old-lace
# border background text
focused_workspace $maastricht-blue $maastricht-blue $olive
inactive_workspace $maastricht-blue $maastricht-blue $old-lace
urgent_workspace $permanent-geranium-lake $permanent-geranium-lake $anti-flash-white
}
}
# Wallpaper
exec_always feh --bg-fill /home/enguerran/Pictures/Wallpaper.jpg
exec --no-startup-id compton -b -c -f
# Print Screen
#bindsym --release Print exec --no-startup-id exec scrot -ube 'mv $f ~/Pictures/' && sleep 1 && notify-send 'screenshot has been saved in ~/Pictures/'
#bindsym --release Shift+Print exec --no-startup-id exec scrot -se 'mv $f ~/Pictures/' && sleep 1 && notify-send 'screenshot has been saved in ~/Pictures/'
#bindsym --release Ctrl+Shift+Print exec --no-startup-id imgur-screenshot >> ~/imgur-upload.log && notify-send 'screenshot has been saved in ~/Pictures/'