############################### ############################### # Doc : http://i3wm.org/docs/userguide.html set $mod Mod4 set $alt Mod1 #Workspace back and forth workspace_auto_back_and_forth yes ############################### # APPARENCE # ############################### # Focus la fenêtre au survol focus_follows_mouse no # Police à utiliser font pango: DroidSansMono Nerd Font 12 # Fond d'écran si pas de multi-screen exec_always --no-startup-id ~/.config/i3/bing-wallpaper.sh ############################### # KEYBINDING # ############################### # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec --no-startup-id gnome-terminal # start i3lock bindsym $mod+Shift+q exec --no-startup-id i3lock # kill focused window bindsym $mod+Shift+A kill # dmenu-desktop comme lanceur d'application bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # Changement du Focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # Déplacement des fenêtre bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # Changement du mode de split (vertical ou horizontal) bindsym $mod+Shift+b split h bindsym $mod+Shift+v split v # Permet de changer de mode bindsym $mod+f fullscreen toggle bindsym $mod+s layout stacking bindsym $mod+z layout tabbed bindsym $mod+x layout toggle split bindsym $mod+Shift+f floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+q focus parent # focus the child container # bindsym $mod+d focus child # Rechargement / Actualisation de la configuration bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart # Quitter i3 bindsym $mod+0 mode "$mode_system" set $mode_system System (k) lock, (l) logout, (u) suspend, (h) hibernate, (r) reboot, (s) shutdown mode "$mode_system" { bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default" bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default" bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default" bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default" bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default" bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } # Ouvrir l'exploreur de fichier bindsym $mod+e exec nautilus # 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 j resize shrink width 5 px or 5 ppt bindsym k resize grow height 5 px or 5 ppt bindsym l resize shrink height 5 px or 5 ppt bindsym m resize grow width 5 px or 5 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 5 px or 5 ppt bindsym Down resize grow height 5 px or 5 ppt bindsym Up resize shrink height 5 px or 5 ppt bindsym Right resize grow width 5 px or 5 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # Audio bindsym F3 exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym F2 exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym F4 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle #Brightness bindsym F6 exec --no-startup-id brightnessctl set 10%+; exec notify-send --expire-time=100 "LCD Backlight $(printf %.0f%% $(brightnessctl g))" bindsym F5 exec --no-startup-id brightnessctl set 10%-; exec notify-send --expire-time=100 "LCD Backlight $(printf %.0f%% $(brightnessctl g))" # Capture d'écran bindsym Print exec flameshot gui ############################### # SOURIS # ############################### ############################### # WORKSPACES # ############################### # Workspaces set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" #set $monitorCenter DP-1 #set $monitorLeft DP-3 #set $monitorRight HDMI-0 # Ecran associé à chaque Workspace #workspace $ws1 output $monitorCenter #workspace $ws2 output $monitorCenter #workspace $ws3 output $monitorCenter #workspace $ws4 output $monitorCenter #workspace $ws5 output $monitorLeft #workspace $ws6 output $monitorLeft #workspace $ws7 output $monitorRight #workspace $ws8 output $monitorRight # Changmeent de Workspace bindsym $mod+ampersand workspace $ws1 bindsym $mod+eacute workspace $ws2 bindsym $mod+quotedbl workspace $ws3 bindsym $mod+apostrophe workspace $ws4 bindsym $mod+parenleft workspace $ws5 bindsym $mod+minus workspace $ws6 bindsym $mod+egrave workspace $ws7 bindsym $mod+underscore workspace $ws8 bindsym $mod+ccedilla workspace $ws9 bindsym $mod+agrave workspace $ws10 bindsym $mod+Tab workspace next bindsym $mod+Shift+Tab workspace prev bindsym $mod+Ctrl+Right workspace next bindsym $mod+Ctrl+Left workspace prev bindsym $mod+Ctrl+h workspace next bindsym $mod+Ctrl+l workspace prev # Taille des fenêtres flottantes floating_minimum_size 75 x 50 floating_maximum_size -1 x -1 # Force certaines apps à des wokspaces dédiés assign [class="Gnome-terminal"] $ws1 assign [class="firefox"] $ws2 assign [class="thunderbird"] $ws3 assign [class="Nautilus"] $ws4 assign [class="obsidian"] $ws5 # bar bar { position top font pango:DroidSansMono Nerd Font 10 status_command i3status tray_padding 1 strip_workspace_numbers yes colors { separator #1f222d background #1f222d statusline #81a1c1 # border background text focused_workspace #1f222d #1f222d #81a1c1 active_workspace #1f222d #252936 #5e81ac inactive_workspace #1f222d #1f222d #4c566a urgent_workspace #1f222d #1f222d #ee829f binding_mode #1f222d #81a1c1 #2e3440 } } #Theme # Window color settings # class border backgr. text indicator client.focused #81a1c1 #81a1c1 #ffffff #81a1c1 client.unfocused #2e3440 #1f222d #888888 #1f222d client.focused_inactive #2e3440 #1f222d #888888 #1f222d client.placeholder #2e3440 #1f222d #888888 #1f222d client.urgent #900000 #900000 #ffffff #900000 client.background #242424 ############################### # MISC # ############################### # Applications au démarrage #exec --no-startup-id nvidia-settings --load-config-only exec --no-startup-id firefox exec --no-startup-id thunderbird exec --no-startup-id gnome-terminal -x zsh -c "tmux";exec zsh"" exec --no-startup-id nautilus exec --no-startup-id obsidian # I3 Gaps for_window [class="^.*"] border pixel 2 for_window [class=".*"] title_format " %title" gaps inner 5 smart_borders on smart_gaps on # Bluetooth i3bar exec --no-startup-id blueman-applet # Wireless i3bar exec --no-startup-id nm-applet # i3lock-autolock exec xautolock -time 3 -locker i3lock &