# 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" # Go back to normal mode bindsym Escape mode "default" } bindsym $mod+s mode "config" # 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 # 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 Shift+$mod+n exec --no-startup-id tidal-hifi