## i3 config file # Puara MPU # Edu Meneses - 2022 # Metalab - Société des Arts Technologiques (SAT) # IDMIL - CIRMMT - McGill University set $mod Mod1 # set fixed resolution for headless use exec --no-startup-id "if ! xrandr | grep -q \\" connected \\" ; then xrandr --fb 1280x800; fi" # The middle button over a titlebar kills the window bindsym --release button2 kill # 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 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec --no-startup-id dmenu_run # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon 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+semicolon 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 # 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 # toggle tiling / floating bindsym $mod+m floating toggle # change focus between tiling / floating windows #bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $workspace1 "1-Jack Graph" set $workspace2 "2-Jack Patchbay" set $workspace3 "3-Jack Control" set $workspace4 "4-Session" set $workspace5 "5-Cadence" set $workspace6 "6-Carla" set $workspace7 "7-Catia" set $workspace8 "8-Pure Data" set $workspace9 "9-SuperCollider" set $workspace0 "0-Terminal" # switch to workspace bindsym Control+1 workspace $workspace1 bindsym Control+2 workspace $workspace2 bindsym Control+3 workspace $workspace3 bindsym Control+4 workspace $workspace4 bindsym Control+5 workspace $workspace5 bindsym Control+6 workspace $workspace6 bindsym Control+7 workspace $workspace7 bindsym Control+8 workspace $workspace8 bindsym Control+9 workspace $workspace9 bindsym Control+0 workspace $workspace0 # move focused container to workspace bindsym Control+Shift+1 move container to workspace $workspace1 bindsym Control+Shift+2 move container to workspace $workspace2 bindsym Control+Shift+3 move container to workspace $workspace3 bindsym Control+Shift+4 move container to workspace $workspace4 bindsym Control+Shift+5 move container to workspace $workspace5 bindsym Control+Shift+6 move container to workspace $workspace6 bindsym Control+Shift+7 move container to workspace $workspace7 bindsym Control+Shift+8 move container to workspace $workspace8 bindsym Control+Shift+9 move container to workspace $workspace9 bindsym Control+Shift+0 move container to workspace $workspace0 assign [class="QjackCtl" title="Graph*"] $workspace1 assign [class="QjackCtl" title="Patchbay*"] $workspace2 assign [class="QjackCtl" title="JACK Audio Connection Kit*"] $workspace3 for_window [class="QjackCtl"] focus assign [class="Claudia"] $workspace4 for_window [class="Claudia"] focus assign [class="Cadence"] $workspace5 for_window [class="Cadence"] focus assign [class="Carla2"] $workspace6 for_window [class="Carla2"] focus assign [class="Catia"] $workspace7 for_window [class="Catia"] focus assign [class="PdWindow"] $workspace8 for_window [class="PdWindow"] focus assign [class="PatchWindow"] $workspace8 for_window [class="PdWindow"] focus assign [class="scide"] $workspace9 for_window [class="scide"] focus assign [class="X-terminal-emulator"] $workspace0 for_window [class="X-terminal-emulator"] focus for_window [class="PdWindow"] floating enable for_window [class="PatchWindow"] floating enable for_window [class="QjackCtl" title="JACK Audio Connection Kit*"] floating enable # 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 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 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 or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { font pango:DejaVu Sans Mono, FontAwesome status_command i3status } # set wallpaper exec feh --bg-scale --no-fehbg ~/Pictures/wallpaper.png