# i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! # # This config file uses keycodes (bindsym) and was written for the QWERTY # layout. # # To get a config file with the same key positions, but for your current # layout, use the i3-config-wizard # # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, its unicode glyph coverage is limited, the old # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn’t scale on retina/hidpi displays. # use these keys for focus, movement, and resize directions when reaching for # the arrows is not convenient set $up o set $down l set $left k set $right m # use Mouse+Mod4 to drag floating windows to their wanted position floating_modifier Mod4 # start a terminal bindsym Mod4+Return exec i3-sensible-terminal # kill focused window bindsym Mod4+Shift+q kill # start dmenu (a program launcher) #bindsym Mod4+d exec dmenu_run #start rofi bindsym Mod4+p exec rofi -show run # 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. # bindsym Mod4+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym Mod4+$left focus left bindsym Mod4+$down focus down bindsym Mod4+$up focus up bindsym Mod4+$right focus right # alternatively, you can use the cursor keys: bindsym Mod4+Left focus left bindsym Mod4+Down focus down bindsym Mod4+Up focus up bindsym Mod4+Right focus right # move focused window bindsym Mod4+Shift+$left move left bindsym Mod4+Shift+$down move down bindsym Mod4+Shift+$up move up bindsym Mod4+Shift+$right move right # alternatively, you can use the cursor keys: bindsym Mod4+Shift+Left move left bindsym Mod4+Shift+Down move down bindsym Mod4+Shift+Up move up bindsym Mod4+Shift+Right move right # split in horizontal orientation bindsym Mod4+h split h # split in vertical orientation bindsym Mod4+v split v # enter fullscreen mode for the focused container bindsym Mod4+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym Mod4+s layout stacking bindsym Mod4+w layout tabbed bindsym Mod4+e layout toggle split # toggle tiling / floating bindsym Mod4+Shift+space floating toggle # change focus between tiling / floating windows bindsym Mod4+space focus mode_toggle # focus the parent container bindsym Mod4+a focus parent # focus the child container #bindsym Mod4+d focus child # move the currently focused window to the scratchpad bindsym Mod4+Shift+minus move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym Mod4+minus scratchpad show # media keys bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +1% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -1% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # Sreen brightness controls bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness # multimedia keys bindsym XF86AudioPlay exec "mpc toggle" bindsym XF86AudioStop exec "mpc stop" bindsym XF86AudioNext exec "mpc next" bindsym XF86AudioPrev exec "mpc prev" #custom keybinds #screenshot bindsym Print exec scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/Screenshots/' # workspace names set $WS1 I set $WS2 II set $WS3 III set $WS4 IV set $WS5 V set $WS6 VI set $WS7 VII set $WS8 VIII set $WS9 IX set $WS10 X # switch to workspace bindsym Mod4+1 workspace $ws1 bindsym Mod4+2 workspace $ws2 bindsym Mod4+3 workspace $ws3 bindsym Mod4+4 workspace $ws4 bindsym Mod4+5 workspace $ws5 bindsym Mod4+6 workspace $ws6 bindsym Mod4+7 workspace $ws7 bindsym Mod4+8 workspace $WS8 bindsym Mod4+9 workspace $WS9 bindsym Mod4+0 workspace $WS10 # move focused container to workspace bindsym Mod4+Shift+1 move container to workspace $ws1 bindsym Mod4+Shift+2 move container to workspace $ws2 bindsym Mod4+Shift+3 move container to workspace $ws3 bindsym Mod4+Shift+4 move container to workspace $ws4 bindsym Mod4+Shift+5 move container to workspace $ws5 bindsym Mod4+Shift+6 move container to workspace $ws6 bindsym Mod4+Shift+7 move container to workspace $ws7 bindsym Mod4+Shift+8 move container to workspace $ws8 bindsym Mod4+Shift+9 move container to workspace $ws9 bindsym Mod4+Shift+0 move container to workspace $ws10 # open applications on specific workspaces assign [class="^URxvt$"] $ws1 assign [class="Subl3"] $ws2 assign [class="^Wicd"] $ws3 assign [class="Firefox"] $ws3 assign [class="mpv|Mplayer|baka-mplayer"] $ws4 assign [class="Thunar"] $ws4 assign [class="YACReaderLibrary"] $ws5 assign [class="YACReader"] $ws5 assign [class="^zathura$"] $ws5 assign [class="zeal"] $ws5 assign [class="Inkscape"] $ws6 assign [class="discord"] $ws7 assign [class="Wine|Steam|dontstarve"] $ws8 #for_window [class="^YACReader$"] floating enable, resize set 1200 600 #floating for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable for_window [title="File Operation Progress" class="Thunar"] floating enable for_window [window_role="pop-up"] floating enable,move absolute center #pour verouiller l'ecran bindsym Mod4+Shift+v exec i3lock -i /home/encrypted/.wallpapers/lock.jpg # reload the configuration file bindsym Mod4+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym Mod4+Shift+r restart # exit i3 (logs you out of your X session) bindsym Mod4+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 # same bindings, but for the arrow keys 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 Mod4+r mode "resize" # Hybrid colors set $black #0f1419 set $white #e6e1cf set $gray #CCCCCC set $darkgray #666666 set $green #3a5336 set $blue #4D73AA set $purple #8473A7 set $red #ff3333 set $orange #f29718 set $cyan #3d7982 set $dark #404152 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { status_command i3blocks -c ~/.config/i3/i3blocks.conf position top strip_workspace_numbers yes font pango:SourceCodePro-12,fontawesome height 25 # Color panel colors { statusline #999999 background $black # Colors border backgr. text focused_workspace $green $green $white active_workspace $black $black $white inactive_workspace $black $black $white urgent_workspace $red $red $white } } #class border backgr. text indicator client.focused $black $green #FFFFFF $black client.unfocused $dark $dark $white $dark client.focused_inactive $dark $dark $white $dark client.urgent $red $red $white $red # gaps gaps inner 20 gaps outer 20 #bordure for_window [class="^.*"] border pixel 10 for_window [class="^URxvt$"] border pixel 5 # WALLPAPER exec_always --no-startup-id feh --bg-scale --no-xinerama /home/encrypted/.wallpapers/green_eyes.jpg exec --no-startup-id dunst exec --no-startup-id /usr/bin/compton --config /home/encrypted/.config/i3/.compton.conf exec --no-startup-id urxvt exec --no-startup-id xautolock -time 10 -locker 'i3lock -d -c 000000'