You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
5.7 KiB

3 years ago
## autostart
3 years ago
3 years ago
# locker
exec --no-startup-id betterlockscreen -l dim
# auto tiling
#exec_always --no-startup-id ~/.config/i3/alternating_layouts.py
3 years ago
# bar
5 years ago
exec_always --no-startup-id ~/.config/polybar/launch.sh
3 years ago
# compton
exec_always --no-startup-id ~/.config/compton/launch.sh
3 years ago
# dunst
exec_always --no-startup-id ~/.config/dunst/launch.sh
# keyboard remap
exec_always --no-startup-id xmodmap ~/.Xmodmap
# wallpaper
exec_always --no-startup-id hsetroot -solid "#44475a"
3 years ago
#exec_always --no-startup-id feh --bg-fill ~/pictures/wp.jpg
# load xresources
exec_always --no-startup-id xrdb -load ~/.Xresources
5 years ago
5 years ago
3 years ago
## appearance
3 years ago
# colours
4 years ago
# class border bg text indicator child_border
3 years ago
client.focused #151718 #151718 #A074C4 #ffffff #ffffff
3 years ago
client.focused_inactive #151718 #151718 #d0d0d0 #2c2e2f #2c2e2f
client.unfocused #151718 #151718 #d0d0d0 #2c2e2f #2c2e2f
4 years ago
client.urgent #151718 #151718 #e6cd69 #e6cd69
5 years ago
3 years ago
# font
font pango:SF Mono 18
5 years ago
3 years ago
# gaps
gaps inner 60
5 years ago
3 years ago
# no borders
for_window [class=".*"] border pixel 0
# window titles
for_window [class=".*"] title_format " %title"
## keybinds
# mod key
set $mod Mod4
# brightness
bindsym XF86MonBrightnessUp exec brightnessctl set +10% && sleep 0.1 && brightnessctl get
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && sleep 0.1 && brightnessctl get
5 years ago
3 years ago
# floating windows
5 years ago
floating_modifier $mod
5 years ago
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
3 years ago
bindsym $mod+Control+space move position center
3 years ago
# fullscreen
bindsym $mod+f fullscreen toggle
5 years ago
3 years ago
# gaps
4 years ago
bindsym $mod+g mode "gaps: [i]nner | [o]uter"
mode "gaps: [i]nner | [o]uter" {
5 years ago
bindsym o mode "gaps_outer"
bindsym i mode "gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
3 years ago
bindsym r gaps inner current set 60
5 years ago
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
3 years ago
bindsym r gaps outer current set 0
5 years ago
bindsym Return mode "default"
bindsym Escape mode "default"
}
3 years ago
# layout (tiling, tabbed, stacked)
5 years ago
bindsym $mod+t layout toggle
3 years ago
# lock/suspend
3 years ago
bindsym $mod+l exec betterlockscreen -l dim
bindsym $mod+s exec betterlockscreen -s dim
5 years ago
3 years ago
# kill window
bindsym $mod+Shift+q kill
# media controls
5 years ago
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioStop exec playerctl stop
3 years ago
# move window within workspace
5 years ago
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
3 years ago
# reload/restart i3
5 years ago
bindsym $mod+Shift+w reload
bindsym $mod+Shift+r restart
3 years ago
# resizing windows
5 years ago
bindsym $mod+r mode "resize"
mode "resize" {
5 years ago
bindsym Up resize grow height
bindsym Down resize shrink height
bindsym Right resize grow width
bindsym Left resize shrink width
5 years ago
5 years ago
bindsym Escape mode "default"
5 years ago
}
3 years ago
# rofi (launcher)
#bindsym $mod+d exec rofi -show run
bindsym $mod+d exec rofi -show run -run-list-command ". ~/.config/rofi/zsh_aliases_functions" -run-command "/bin/zsh -i -c '{cmd}'" -rnow
5 years ago
bindsym $mod+w exec rofi -show window
3 years ago
# scratchpad
4 years ago
bindsym $mod+End move scratchpad
bindsym $mod+Home scratchpad show
3 years ago
# screenshots and recording
bindsym $mod+Shift+s exec nougat --screenshot -cst && dunstify "area/window screenshot copied"
bindsym Print exec nougat --screenshot -fcst && dunstify "fullscreen screenshot copied"
bindsym $mod+Print exec nougat --screenshot -fcs && dunstify "fullscreen screenshot saved"
5 years ago
3 years ago
# terminal
5 years ago
bindsym $mod+Return exec urxvt --depth 32
3 years ago
# window focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# volume
4 years ago
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 5
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 5
bindsym XF86AudioMute exec pulseaudio-ctl mute
3 years ago
# window split direction
5 years ago
bindsym $mod+h split h
bindsym $mod+v split v
3 years ago
# workspaces
5 years ago
workspace_auto_back_and_forth yes
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
4 years ago
bindsym $mod+Next workspace next
bindsym $mod+Prior workspace prev
5 years ago
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
3 years ago
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Ctrl+1 move container to workspace 1; workspace 1
bindsym $mod+Ctrl+2 move container to workspace 2; workspace 2
bindsym $mod+Ctrl+3 move container to workspace 3; workspace 3
bindsym $mod+Ctrl+4 move container to workspace 4; workspace 4
bindsym $mod+Ctrl+5 move container to workspace 5; workspace 5
bindsym $mod+Ctrl+6 move container to workspace 6; workspace 6
bindsym $mod+Ctrl+7 move container to workspace 7; workspace 7
bindsym $mod+Ctrl+8 move container to workspace 8; workspace 8
bindsym $mod+Ctrl+9 move container to workspace 9; workspace 9
bindsym $mod+Ctrl+0 move container to workspace 10; workspace 10