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.
 
 
 
 

307 lines
7.3 KiB

#####################################################
# __ __ _ __ ___ ___ _
# / //_/(_)___ ___ _ / /__ |_ | |_ |( )___
# / ,< / // _ \/ _ `// '_// __/ / __/ |/(_-<
# /_/|_|/_//_//_/\_, //_/\_\/____//____/ /___/
# /___/
# _ ____ _____ ___ _
# (_)|_ / / ___/___ ___ / _/(_)___ _
# / /_/_ < / /__ / _ \ / _ \ / _// // _ `/
# /_//____/ \___/ \___//_//_//_/ /_/ \_, /
# /___/
#
#####################################################
## auto start locker
exec --no-startup-id betterlockscreen -l dim
## bar
exec_always --no-startup-id ~/.config/polybar/launch.sh
## borders
for_window [class=".*"] border pixel 0
for_window [class="URxvt"] border pixel 8
for_window [class="Zathura"] border pixel 8
## brightness
bindsym XF86MonBrightnessUp exec brightnessctl set +10% && sleep 0.1 && brightnessctl get
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && sleep 0.1 && brightnessctl get
## colours
# class border bg text indicator child_border
client.focused #151718 #151718 #A074C4 #A074C4 #A074C4
client.focused_inactive #151718 #151718 #d0d0d0 #2c2e2f #2c2e2f
client.unfocused #151718 #151718 #d0d0d0 #2c2e2f #2c2e2f
client.urgent #151718 #151718 #e6cd69 #e6cd69
## compton
exec_always --no-startup-id compton
## change window focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
## dunst
exec_always --no-startup-id ~/.config/dunst/launch.sh
## floating windows
floating_modifier $mod
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+Control+space move position center
## font
font pango:iosevka 18
## gaps
gaps inner 60
gaps outer 0
bindsym $mod+g mode "gaps: [i]nner | [o]uter"
mode "gaps: [i]nner | [o]uter" {
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
bindsym r gaps inner current set 30
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
bindsym r gaps outer current set 10
bindsym Return mode "default"
bindsym Escape mode "default"
}
## kill window
bindsym $mod+Shift+q kill
## layout
bindsym $mod+f fullscreen toggle
bindsym $mod+t layout toggle
## lock + suspend
#bindsym $mod+l exec i3lock-fancy -pt ""
#bindsym $mod+s exec i3lock-fancy -pt "" && systemctl suspend
bindsym $mod+l exec betterlockscreen -l dim
bindsym $mod+s exec betterlockscreen -s dim
## media controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioStop exec playerctl stop
## mod key
set $mod Mod4
## move window to workspace
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
## move window to workspace and go to workspace
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
## move window within workspace
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## power menu
bindsym $mod+x mode "power: [l]ock | [r]eboot | [s]uspend | sh[u]tdown"
mode "power: [l]ock | [r]eboot | [s]uspend | sh[u]tdown" {
bindsym l exec i3-msg mode "default" && i3lock-fancy -pt ""
bindsym r mode "reboot: [y]es or [n]o"
bindsym s exec i3-msg mode "default" && i3lock-fancy -pt "" && systemctl suspend
bindsym u mode "shutdown: [y]es or [n]o"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "reboot: [y]es or [n]o" {
bindsym y exec systemctl reboot
bindsym n mode "default"
bindsym Return exec systemctl reboot
bindsym Escape mode "default"
}
mode "shutdown: [y]es or [n]o" {
bindsym y exec systemctl poweroff
bindsym n mode "default"
bindsym Return exec systemctl poweroff
bindsym Escape mode "default"
}
## reload/restart i3
bindsym $mod+Shift+w reload
bindsym $mod+Shift+r restart
## resize windows
bindsym $mod+r mode "resize"
mode "resize" {
bindsym Up resize grow height
bindsym Down resize shrink height
bindsym Right resize grow width
bindsym Left resize shrink width
bindsym Return mode "default"
bindsym Escape mode "default"
}
## rofi (replacing dmenu)
bindsym $mod+d exec rofi -show run
bindsym $mod+w exec rofi -show window
## scratchpad
bindsym $mod+End move scratchpad
bindsym $mod+Home scratchpad show
## screenshot (nougat)
bindsym $mod+Ctrl+f exec nougat --screenshot -fcs && dunstify "fullscreen screenshot saved"
bindsym $mod+Shift+f exec nougat --screenshot -fcst && dunstify "fullscreen screenshot copied"
bindsym $mod+Ctrl+s exec nougat --screenshot -cs && dunstify "area/window screenshot saved"
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"
## URxvt
bindsym $mod+Return exec urxvt --depth 32
## volume
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 5
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 5
bindsym XF86AudioMute exec pulseaudio-ctl mute
## wallpaper/colours
exec_always --no-startup-id xrdb -load ~/.Xresources
exec_always --no-startup-id hsetroot -solid "#151718"
## window titles
for_window [class=".*"] title_format " %title"
## window split direction
bindsym $mod+h split h
bindsym $mod+v split v
## workspace switching settings
workspace_auto_back_and_forth yes
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
bindsym $mod+Next workspace next
bindsym $mod+Prior workspace prev
## workspace switching
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