# xwayland disable # Setup sound # exec /usr/libexec/pipewire-launcher # exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway input * { xkb_layout "fr" } input xkb_model "pc101" bar { status_command i3status } output * bg #103040 solid_color # output eDP-1 scale 1.25 input type:touchpad { tap enabled natural_scroll enabled } # font Monospace 9 font pango:MiscFixedSC613 9 set $mod Mod4 bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+q kill bindsym $mod+Return exec --no-startup-id foot #bindsym $mod+Return exec --no-startup-id xt #bindsym $mod+d exec --no-startup-id bemenu-run #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop -dmenu="bemenu -i -fn 'Mono-12' --hf '#00ff00' --tf '#00ff00'" #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop -dmenu="wmenu-run" #bindsym $mod+d exec --no-startup-id wemenu-run bindsym $mod+d exec --no-startup-id fuzzel -T foot bindsym XF86Sleep exec echo "mem" | sudo tee /sys/power/state bindsym XF86ScreenSaver exec swaylock -c 103040 bindsym XF86RFKill exec sudo rfkill toggle wlan && doas pkill -USR1 udhcpc bindsym XF86WLAN exec sudo rfkill toggle wlan && doas pkill -USR1 udhcpc # Use pactl to ajust volume in PulseAudio/PipeWire bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -USR1 i3status bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -USR1 i3status bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -USR1 i3status for_window [app_id="firefox"] floating enable for_window [app_id="google-chrome"] floating enable for_window [app_id="pavucontrol-qt"] floating enable for_window [app_id="signal"] floating enable for_window [class="XEyes"] floating enable # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+m 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+m 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+z layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space 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 # 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 $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+ampersand workspace number $ws1 bindsym $mod+eacute workspace number $ws2 bindsym $mod+quotedbl workspace number $ws3 bindsym $mod+apostrophe workspace number $ws4 bindsym $mod+parenleft workspace number $ws5 bindsym $mod+minus workspace number $ws6 bindsym $mod+egrave workspace number $ws7 bindsym $mod+underscore workspace number $ws8 bindsym $mod+ccedilla workspace number $ws9 bindsym $mod+agrave workspace number $ws10 # move focused container to workspace bindsym $mod+Shift+ampersand move container to workspace number $ws1 bindsym $mod+Shift+eacute move container to workspace number $ws2 bindsym $mod+Shift+quotedbl move container to workspace number $ws3 bindsym $mod+Shift+apostrophe move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+minus move container to workspace number $ws6 bindsym $mod+Shift+egrave move container to workspace number $ws7 bindsym $mod+Shift+underscore move container to workspace number $ws8 bindsym $mod+Shift+ccedilla move container to workspace number $ws9 bindsym $mod+Shift+agrave move container to workspace number $ws10 # Cycle through active workspaces bindsym $mod+Tab workspace next bindsym $mod+Shift+Tab workspace prev # 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'" bindsym $mod+Ctrl+backspace exec killall sway # 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 m 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" # Move a workspace to a different monitor bindsym $mod+greater move workspace to output right bindsym $mod+less move workspace to output left