dotwryn/config/i3.conf
yage 4c274248f1 MISC
- added sync media directories
- zsh plugin update
2022-03-07 12:35:14 -07:00

192 lines
7.0 KiB
Plaintext

# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
font pango:monospace 20
################################################################################
## Custom Utility ##############################################################
################################################################################
set $UTILS /home/w0ryn/.config/i3/utils
# Audio
bindsym XF86AudioRewind exec --no-startup-id $UTILS prev
bindsym XF86AudioPrev exec --no-startup-id $UTILS prev
bindsym XF86AudioForward exec --no-startup-id $UTILS next
bindsym XF86AudioNext exec --no-startup-id $UTILS next
bindsym XF86AudioPlay exec --no-startup-id $UTILS play
bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeup
bindsym XF86AudioLowerVolume exec --no-startup-id $UTILS volumedown
bindsym XF86AudioMute exec --no-startup-id $UTILS volumemute
bindsym XF86AudioMicMute exec --no-startup-id $UTILS micmute
bindsym $mod+backslash exec --no-startup-id $UTILS micmute
# Screen brightness
bindsym XF86MonBrightnessUp exec --no-startup-id $UTILS backlightup
bindsym XF86MonBrightnessDown exec --no-startup-id $UTILS backlightdown
# Quick applications
bindsym $mod+Shift+m exec --no-startup-id $UTILS launch android-messages-desktop
bindsym $mod+Shift+d exec --no-startup-id $UTILS launch discord
bindsym $mod+c exec --no-startup-id $UTILS launch google-voice-desktop
bindsym $mod+m exec --no-startup-id $UTILS launch youtubemusic-nativefier
bindsym $mod+a exec --no-startup-id $UTILS launch pavucontrol ^Pavucontrol
bindsym $mod+Shift+p exec --no-startup-id $UTILS launch scrcpy
bindsym $mod+Shift+o exec --no-startup-id $UTILS launch obs ^obs
# Terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+shift+Return exec --no-startup-id $UTILS alternateterm
# Other
bindsym $mod+p exec --no-startup-id $UTILS bgrandomize
bindsym $mod+Shift+minus exec --no-startup-id $UTILS lock
bindsym $mod+space exec --no-startup-id dmenu_run -c -l 5 -fn 'DejaVu Sans Mono-25'
################################################################################
## Window Management and Navigation ############################################
################################################################################
bindsym $mod+q kill
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+b split h
bindsym $mod+v split v
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+f focus parent; fullscreen; focus child
bindsym $mod+BackSpace open
bindsym $mod+1 workspace number "1"
bindsym $mod+2 workspace number "2"
bindsym $mod+3 workspace number "3"
bindsym $mod+4 workspace number "4"
bindsym $mod+5 workspace number "5"
bindsym $mod+6 workspace number "6"
bindsym $mod+7 workspace number "7"
bindsym $mod+8 workspace number "8"
bindsym $mod+9 workspace number "9"
bindsym $mod+0 workspace number "0"
bindsym $mod+Shift+1 move container to workspace number "1"
bindsym $mod+Shift+2 move container to workspace number "2"
bindsym $mod+Shift+3 move container to workspace number "3"
bindsym $mod+Shift+4 move container to workspace number "4"
bindsym $mod+Shift+5 move container to workspace number "5"
bindsym $mod+Shift+6 move container to workspace number "6"
bindsym $mod+Shift+7 move container to workspace number "7"
bindsym $mod+Shift+8 move container to workspace number "8"
bindsym $mod+Shift+9 move container to workspace number "9"
bindsym $mod+Shift+0 move container to workspace number "0"
mode "resize" {
bindsym h resize grow 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 shrink width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# floating window / scratchpad
bindsym $mod+Shift+space floating toggle
bindsym $mod+d focus mode_toggle
floating_modifier $mod
bindsym $mod+Shift+Tab move scratchpad
bindsym $mod+Tab scratchpad show
set $GAMES_CLIENT_CLASSES ^(Steam)|(dolphin-emu)|(Visualboyadvance-m)$
bindsym $mod+Shift+x [class=$GAMES_CLIENT_CLASSES] scratchpad show
set $TERMINAL_EMULATOR_CLASSES ^(kitty)$
bindsym $mod+x [class=$TERMINAL_EMULATOR_CLASSES] scratchpad show
################################################################################
## i3 Settings #################################################################
################################################################################
bindsym $mod+Shift+e exec $UTILS logout
bindsym $mod+Shift+r restart
bindsym $mod+Shift+c reload
# for use after any command which should refresh the statusbar
set $refresh_statusbar killall -SIGUSR1 i3status
bar {
status_command i3status
}
# i3-gaps settings
for_window [class="^.*"] border pixel 4
gaps inner 10
gaps outer 10
bindsym $mod+z gaps outer current plus 2; gaps inner current plus 2;
bindsym $mod+shift+z gaps outer current minus 2; gaps inner current minus 2;
################################################################################
## Miscellaneous ###############################################################
################################################################################
exec --no-startup-id compton
# color settings
set $FOCUSED_BORDER #288B52
set $FOCUSED_BACKGROUND #288B52
set $FOCUSED_TEXT #CCDDFF
set $FOCUSED_INDICATOR #55C9B5
set $FOCUSED_CHILD_BORDER #225925
set $INACTIVE_BORDER #690420
set $INACTIVE_BACKGROUND #690420
set $INACTIVE_TEXT #CCDDFF
set $INACTIVE_INDICATOR #800040
set $INACTIVE_CHILD_BORDER #400010
set $UNFOCUSED_BORDER #614F41
set $UNFOCUSED_BACKGROUND #614F41
set $UNFOCUSED_TEXT #CCDDFF
set $UNFOCUSED_INDICATOR #614F41
set $UNFOCUSED_CHILD_BORDER #614F41
set $URGENT_BORDER #FFFFFF
set $URGENT_BACKGROUND #FFFFFF
set $URGENT_TEXT #FF1440
set $URGENT_INDICATOR #FFFFFF
set $URGENT_CHILD_BORDER #FFFFFF
set $PLACEHOLDER_BORDER #614F41
set $PLACEHOLDER_BACKGROUND #614F41
set $PLACEHOLDER_TEXT #CCDDFF
set $PLACEHOLDER_INDICATOR #614F41
set $PLACEHOLDER_CHILD_BORDER #614F41
client.focused $FOCUSED_BORDER $FOCUSED_BACKGROUND $FOCUSED_TEXT $FOCUSED_INDICATOR $FOCUSED_CHILD_BORDER
client.focused_inactive $INACTIVE_BORDER $INACTIVE_BACKGROUND $INACTIVE_TEXT $INACTIVE_INDICATOR $INACTIVE_CHILD_BORDER
client.unfocused $UNFOCUSED_BORDER $UNFOCUSED_BACKGROUND $UNFOCUSED_TEXT $UNFOCUSED_INDICATOR $UNFOCUSED_CHILD_BORDER
client.urgent $URGENT_BORDER $URGENT_BACKGROUND $URGENT_TEXT $URGENT_INDICATOR $URGENT_CHILD_BORDER
client.placeholder $PLACEHOLDER_BORDER $PLACEHOLDER_BACKGROUND $PLACEHOLDER_TEXT $PLACEHOLDER_INDICATOR $PLACEHOLDER_CHILD_BORDER