# i3 config file (v4) # Please see http://i3wm.org/docs/userguide.html for a complete reference! # Set mod key (Mod1=, Mod4=) set $mod Mod4 # set default desktop layout (default is tiling) # workspace_layout tabbed ################################################################################################ ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## ################################################################################################ exec --no-startup-id volumeicon bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' #exec --no-startup-id pulseaudio #exec --no-startup-id pa-applet #bindsym $mod+Ctrl+m exec pavucontrol ################################################################################################ ############## ####SCREEN#### ############## # Screen brightness controls # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" # focus_follows_mouse no ############ ###BORDER### ############ # Configure border style new_window pixel 2 new_float normal # Hide borders hide_edge_borders none # Border Toggle bindsym Mod4+Shift+b border toggle ############ ####FONT#### ############ # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:Cantarell 9 ########## ###MENU### ########## # start program launcher bindsym $mod+d exec --no-startup-id dmenu_recency #bindsym $mod+d exec dmenu_run # Start Bmenu bindsym $mod+Shift+d exec terminal -e 'bmenu' ################# ####LAUNCHERS#### ################# # ASCII!!! bindsym $mod+Ctrl+1 exec /usr/bin/urxvtc +sb -bg black -fg white -e asciiquarium bindsym $mod+Ctrl+2 exec /usr/bin/urxvtc +sb -bg black -fg white -e ascii_invaders bindsym $mod+Ctrl+3 exec /usr/bin/asciisec # bindsym $mod+Ctrl+4 exec /usr/bin/asciiportal bindsym $mod+Ctrl+5 exec /usr/bin/retroblazer bindsym $mod+Ctrl+9 exec /usr/bin/urxvtc +sb -bg black -fg white -e weatherspect bindsym $mod+Ctrl+0 exec /usr/bin/tdfsb # HACKER MODE bindsym $mod+Ctrl+Shift+h exec killall conky & exec ~/.Conky/start_conky.sh #& feh --bg-scale ~/.i3/background.jpg # USER MODE bindsym $mod+Ctrl+Shift+u exec killall conky & exec ~/.Conky/conky_side.sh # music player (cmus pithos) bindsym $mod+m exec /usr/bin/urxvtc +sb -bg black -fg white -e cmus bindsym $mod+Shift+m exec pithos # xfe & ranger & pcmanfm file managers bindsym $mod+n exec pcmanfm bindsym $mod+Shift+n exec gksu pcmanfm #bindsym $mod+Shift+Ctrl+n exec /usr/bin/urxvtc +sb -bg black -fg white -e mc bindsym $mod+Shift+Ctrl+n exec rox bindsym $mod+Ctrl+n exec terminator -e ranger #bindsym $mod+Ctrl+n exec terminal -e 'mocp' # editor bindsym $mod+t exec subl # htop bindsym $mod+o exec /usr/bin/urxvtc +sb -bg black -fg white -e htop # X11 Composing bindsym $mod+b exec --no-startup-id pkill compton bindsym $mod+Ctrl+b exec --no-startup-id compton -b # Notification Daemon bindsym $mod+Shift+z --release exec "killall dunst; exec notify-send 'restart dunst'" # start a terminal bindsym $mod+Return exec /usr/bin/urxvtc bindsym $mod+Ctrl+Return exec terminator #bindsym $mod+Ctrl+Return exec terminator -e dvtm # urxvtc terminal BLACK #bindsym $mod+Shift+Return exec /usr/bin/urxvtc +sb -bg black -fg white ################ ####PRINTSCR#### ################ bindsym Print exec "scrot -e 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'" bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'" bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/Screenshots'; scrot -se 'mv $f ~/Screenshots'" ########### ###FOCUS### ########### # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+odiaeresis focus right # 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+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+odiaeresis 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 # Focus The Parent Container bindsym $mod+p focus parent;exec notify-send 'parent window' # Focus The Child Container bindsym $mod+c focus child;exec notify-send 'child window' ########################## ###WINDOW MANULIPLATION### ########################## # Go to the next urgent workspace, latest first bindsym $mod+u [urgent="latest"] focus # Cycle through bstacked windows (dwm style) bindsym $mod+Tab focus down # Focus last floating/tiling container bindsym $mod+Shift+Tab focus mode_toggle # Kill focused window bindsym $mod+Shift+q kill # Xkill bindsym $mod+Ctrl+x exec xkill ############## ####Tiling#### ############## # Split In Horizontal Orientation bindsym $mod+h split h;exec notify-send 'tile horizontally' # Split In Vertical Orientation bindsym $mod+v split v;exec notify-send 'tile vertically' # Enter Fullscreen Mode For The Focused Container bindsym $mod+f fullscreen toggle;exec notify-send 'fullscreen' # Change Container Layout (Stacked, Tabbed, Toggle Split) bindsym $mod+s layout stacking;exec notify-send 'stacking' bindsym $mod+w layout tabbed;exec notify-send 'tabbed' bindsym $mod+e layout toggle split;exec notify-send 'split' ###################### ###FLOATING WINDOWS### ###################### # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # Toggle Tiling / Floating bindsym $mod+Shift+space floating toggle # Change Focus Between Tiling / Floating Windows bindsym $mod+space focus mode_toggle # toggle sticky bindsym $mod+Shift+s sticky toggle ################## ####WORKSPACES#### ################## # Custom Variables For Workspaces set $ws1 main set $ws2 term set $ws3 WWW set $ws4 GFX set $ws5 video set $ws6 ♪ ♫ set $ws7 c0de set $ws8 server set $ws9 ↓load set $ws10 /dev/null # Switch To Workspace bindsym $mod+1 workspace 1 $ws1 bindsym $mod+2 workspace 2 $ws2 bindsym $mod+3 workspace 3 $ws3 bindsym $mod+4 workspace 4 $ws4 bindsym $mod+5 workspace 5 $ws5 bindsym $mod+6 workspace 6 $ws6 bindsym $mod+7 workspace 7 $ws7 bindsym $mod+8 workspace 8 $ws8 bindsym $mod+9 workspace 9 $ws9 bindsym $mod+0 workspace 10 $ws10 # Move Focused Container To Workspace bindsym $mod+Shift+1 move container to workspace 1 $ws1 bindsym $mod+Shift+2 move container to workspace 2 $ws2 bindsym $mod+Shift+3 move container to workspace 3 $ws3 bindsym $mod+Shift+4 move container to workspace 4 $ws4 bindsym $mod+Shift+5 move container to workspace 5 $ws5 bindsym $mod+Shift+6 move container to workspace 6 $ws6 bindsym $mod+Shift+7 move container to workspace 7 $ws7 bindsym $mod+Shift+8 move container to workspace 8 $ws8 bindsym $mod+Shift+9 move container to workspace 9 $ws9 bindsym $mod+Shift+0 move container to workspace 10 $ws10 #navigate workspaces next / previous bindsym $mod+Ctrl+Right workspace next bindsym $mod+Ctrl+Left workspace prev ################################### ###application specific settings### ################################### # Open specific applications in floating mode for_window [title="alsamixer"] floating enable border pixel 2 for_window [class="Calamares"] floating enable border normal for_window [class="Clipgrab"] floating enable for_window [title="File Transfer*"] floating enable for_window [class="Galculator"] floating enable border pixel 2 for_window [class="GParted"] floating enable border normal for_window [title="i3_help"] floating enable sticky enable border normal for_window [class="Lightdm-gtk-greeter-settings"] floating enable for_window [class="Lxappearance"] floating enable sticky enable border normal for_window [class="manjaro-settings-manager-gui"] floating enable border normal for_window [class="Manjaro Welcome"] floating enable for_window [title="MuseScore: Play Panel"] floating enable for_window [class="Nitrogen"] floating enable sticky enable border normal for_window [class="Oblogout"] fullscreen enable for_window [class="octopi"] floating enable for_window [class="Pamac-manager"] floating enable for_window [class="Pamac-updater"] floating enable for_window [class="Pavucontrol"] floating enable for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal for_window [class="Simple-scan"] floating enable border normal for_window [class="(?i)System-config-printer.py"] floating enable border normal for_window [class="Skype"] floating enable border normal for_window [class="Thus"] floating enable border normal for_window [class="Timeset-gui"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal #for_window [class="Gimp"] floating enable for_window [class="exaile"] floating enable #for_window [class="feh"] floating enable for_window [class="Gmrun"] floating enable for_window [class="Wicd-client.py"] floating enable for_window [class="libreoffice"] floating enable for_window [class="Vlc"] floating enable for_window [class="Firefox" instance="Browser"] floating enable for_window [class="Firefox" instance="Dialog"] floating enable for_window [class="Firefox" instance="Extension"] floating enable for_window [class="Firefox" instance="Abp"] floating enable for_window [class="Firefox" instance="Febe"] floating enable ####################### ###PROGRAM WS ASSIGN### ####################### #1 main, 2 term, 3 WWW, 4 GFX, 5 video, 6 ♪ ♫, 7 c0de, 8 server, 9 /dev/null # assign the following to specific workspaces #1 main assign [class="k3b"] 1 main #2 term assign [title="htop"] 2 term #3 WWW assign [class="Firefox"] 3 WWW assign [class="Chromium"] 3 WWW #4 GFX assign [class="Gimp"] 4 GFX #5 video assign [class="Vlc"] 5 video assign [class="devede"] 5 video #6 ♪ ♫ assign [class="Pithos"] 6 ♪ ♫ assign [class="Xnoise"] 6 ♪ ♫ assign [class="Exaile"] 6 ♪ ♫ assign [class="Gnome-alsamixer"] 6 ♪ ♫ assign [title="ncmpcpp"] 6 ♪ ♫ assign [title="cmus"] 6 ♪ ♫ #7 c0de assign [class="subl"] 7 c0de #8 server assign [class="Wicd-client.py"] 8 server assign [class="Vidalia"] 8 server #9 ↓load assign [class="Nicotine"] 9 ↓load assign [class="Ktorrent"] 9 ↓load #10 /dev/null ############## ####RESIZE#### ############## # Enter Resize Mode bindsym $mod+r mode "resize" # 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 semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize grow width 10 px or 10 ppt bindsym Down resize shrink height 10 px or 10 ppt bindsym Up resize grow height 10 px or 10 ppt bindsym Right resize shrink width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } ####################### ####SAFETY COMMANDS#### ####################### # reload the configuration file bindsym $mod+Shift+a reload # restart i3 inplace (preserves your layout/session) 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'" # Lock screen bindsym $mod+q exec --no-startup-id blurlock # Set shut down, restart and locking features bindsym $mod+Shift+e mode "$mode_system" set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown mode "$mode_system" { bindsym l exec --no-startup-id i3exit lock, mode "default" bindsym s exec --no-startup-id i3exit suspend, mode "default" bindsym u exec --no-startup-id i3exit switch_user, mode "default" bindsym e exec --no-startup-id i3exit logout, mode "default" bindsym h exec --no-startup-id i3exit hibernate, mode "default" bindsym r exec --no-startup-id i3exit reboot, mode "default" bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" # exit system mode: "Enter" or "Escape" bindsym Return mode "default" bindsym Escape mode "default" } ############# ####i3bar#### ############# # Start i3bar to display a workspace bar (plus the system information i3status if available) bar { status_command i3status # wheel_up_cmd nop # wheel_down_cmd nop font pango:Cantarell,Icons 9 colors { separator #2ECC71 background #000000 statusline #DDDDDD focused_workspace #FFFFFF #2ECC71 #000000 active_workspace #000000 #A4A28D #FFFFFF inactive_workspace #A4A28D #000000 #DDDDDD urgent_workspace #2ECC71 #900000 #FFFFFF } } ############################## #### WINDOW BORDER COLOURS#### ############################## # Theme colors client.focused #2ECC71 #2ECC71 #000000 #FFFFFF client.unfocused #222222 #222222 #2ECC71 #222222 client.urgent #274D01 #900000 #FFFFFF #900000 # class border backgr. text indicator #client.focused #4c7899 #285577 #ffffff #2e9ef4 #client.focused_inactive #333333 #5f676a #ffffff #484e50 #client.unfocused #333333 #222222 #888888 #292d2e #client.urgent #2f343a #900000 #ffffff #900000 ############################# ### settings for i3-gaps: ### ############################# # Disable window titlebars entirely for_window [class="^.*"] border pixel 2 # Set inner/outer gaps gaps inner 10 gaps outer 0 # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size. # gaps inner|outer current|all set|plus|minus # gaps inner all set 10 # gaps outer all plus 5 # Smart gaps (gaps used if only more than one container on the workspace) smart_gaps on # Smart borders (draw borders around container only if it is not the only container on this workspace) # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) smart_borders on # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) bindsym $mod+Shift+g mode "$mode_gaps" mode "$mode_gaps" { bindsym o mode "$mode_gaps_outer" bindsym i mode "$mode_gaps_inner" bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_inner" { bindsym plus gaps inner current plus 5 bindsym minus gaps inner current minus 5 bindsym 0 gaps inner current set 0 bindsym Shift+plus gaps inner all plus 5 bindsym Shift+minus gaps inner all minus 5 bindsym Shift+0 gaps inner all set 0 bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_outer" { bindsym plus gaps outer current plus 5 bindsym minus gaps outer current minus 5 bindsym 0 gaps outer current set 0 bindsym Shift+plus gaps outer all plus 5 bindsym Shift+minus gaps outer all minus 5 bindsym Shift+0 gaps outer all set 0 bindsym Return mode "default" bindsym Escape mode "default" } ################ ###AUTO-START### ################ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Wireless exec --no-startup-id nm-applet # Power Manager exec --no-startup-id xfce4-power-manager # System Tray exec --no-startup-id pamac-tray # Clipboard exec --no-startup-id clipit # Bluetooth Manager #exec --no-startup-id blueman # I DONT KNOW # exec_always --no-startup-id sbxkb # Compton Composing exec --no-startup-id compton -b # urxvtc exec --no-startup-id /usr/bin/urxvtd # Blur Lockscreen exec --no-startup-id xautolock -time 10 -locker blurlock # Conky exec --no-startup-id /usr/bin/conky # HAL #exec --no-startup-id /usr/sbin/hald --daemon=yes # Cairo #exec --no-startup-id cairo-compmgr # Nitrogen Background #exec --no-startup-id nitrogen --restore # background exec --no-startup-id feh --bg-scale ~/.i3/background.jpg