# vim: set fs=i3config # Mode for changing layout modes mode "config" { # Switch split mode bindsym j split vertical; mode "default" bindsym h split horizontal; mode "default" bindsym k split vertical; mode "default" bindsym l split horizontal; mode "default" # Switch layout bindsym y layout stacking; mode "default" bindsym u layout tabbed; mode "default" bindsym i layout toggle split; mode "default" # Swap modifier key bindsym s exec ~/.config/i3/swap_mod.sh; restart # Go back to normal mode bindsym Escape mode "default" } bindsym $mod+s mode "config" # Resize focused window mode "resize" { bindsym h resize shrink width 10 px or 10 ppt bindsym j resize shrink height 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt bindsym Shift+h resize shrink width 2 px or 2 ppt bindsym Shift+j resize shrink height 2 px or 2 ppt bindsym Shift+k resize grow height 2 px or 2 ppt bindsym Shift+l resize grow width 2 px or 2 ppt bindsym f floating toggle bindsym s sticky toggle bindsym Escape mode "default" } bindsym $mod+r mode "resize" # reload the configuration file bindsym $mod+Shift+c reload # Restart i3 in-place bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+q 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'" # Volume bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks bindsym $mod+XF86AudioRaiseVolume exec amixer -D pulse sset Master 1%+ && pkill -RTMIN+1 i3blocks bindsym $mod+XF86AudioLowerVolume exec amixer -D pulse sset Master 1%- && pkill -RTMIN+1 i3blocks bindsym XF86AudioMute exec amixer -D pulse set Master toggle # Backlight bindsym XF86MonBrightnessUp exec brightnessctl --device='intel_backlight' set +10% bindsym XF86MonBrightnessDown exec brightnessctl --device='intel_backlight' set 10%- # Keyboard brightness bindsym XF86KbdBrightnessUp exec brightnessctl --device='smc::kbd_backlight' set +10% bindsym XF86KbdBrightnessDown exec brightnessctl --device='smc::kbd_backlight' set 10%- # Screenshot bindsym --release Print exec "scrot -fis ~/Pictures/screenshots/%Y-%m-%d-%T.png" # Show shutdown menu bindsym $mod+Escape exec ~/.config/i3/scripts/shutdown_menu -p rofi -c # =====APPLICATIONS===== # start a terminal bindsym $mod+Return exec --no-startup-id st # Open a Zeal window bindsym $mod+w exec --no-startup-id zeal # Launch output device configuration bindsym $mod+m exec --no-startup-id pavucontrol -t 3 # Open dmenu bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu dmenu # Open Galculator bindsym XF86Calculator exec --no-startup-id galculator # Open tidal-hifi # This keybindg is rather unusual as it should imply "move window to $wstidal", # but because this workspace should only be used for tidal-hifi, it's okay. bindsym $mod+n scratchpad show