dotfiles/.config/i3/config
2022-01-25 17:00:57 +03:00

152 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set $mod Mod1
font pango:monospace 12
exec --no-startup-id nm-applet
exec_always --no-startup-id pkill picom; picom --no-use-damage --experimental-backends
exec_always --no-startup-id pkill dunst; dunst
exec_always --no-startup-id xrdb ~/.Xresources
exec_always --no-startup-id ~/.config/polybar/launch.sh
for_window [class="^.*"] border pixel 2
set_from_resource $fg i3wm.color1 #f0f0f0
set_from_resource $bg i3wm.color3 #ccaa00
set_from_resource $grayish i3wm.color15 #555555
client.focused $grayish $grayish $fg $bg $bg
gaps bottom 20
bindsym $mod+m exec ~/scripts/i3-layout-manager/layout_manager.sh
bindsym $mod+x exec ~/scripts/kill-process.sh
bindsym $mod+Tab workspace back_and_forth
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
floating_modifier $mod
bindsym $mod+Return exec st
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
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+f fullscreen toggle
bindsym $mod+minus layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+w layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+Control+space focus mode_toggle
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"
assign [class="Discord"] $ws9
assign [class="Firefox"] $ws2
assign [class="zoom"] $ws4
assign [class="streamlink-twitch-gui"] $ws3
bindsym $mod+e workspace prev
bindsym $mod+u workspace next
bindsym $mod+semicolon workspace number $ws1
bindsym $mod+comma workspace number $ws2
bindsym $mod+period workspace number $ws3
bindsym $mod+p workspace number $ws4
bindsym $mod+y workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+g workspace number $ws7
bindsym $mod+c workspace number $ws8
bindsym $mod+r workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+semicolon move container to workspace number $ws1
bindsym $mod+Shift+comma move container to workspace number $ws2
bindsym $mod+Shift+period move container to workspace number $ws3
bindsym $mod+Shift+p move container to workspace number $ws4
bindsym $mod+Shift+y move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+g move container to workspace number $ws7
bindsym $mod+Shift+c move container to workspace number $ws8
bindsym $mod+Shift+r move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym $mod+Shift+grave move scratchpad
bindsym $mod+grave scratchpad show
for_window [title="(?i)Terminator Preferences"]                  floating enable
for_window [title="^Calculator$"] floating enable
for_window [title="^Telegram$"] floating enable
for_window [urgent=latest] focus
bindsym $mod+Control+r restart
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l 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+s
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+s mode "default"
}
bindsym $mod+s mode "resize"