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.
 
 
 
 

358 lines
9.6 KiB

#####################################################
# __ __ _ __ ___ ___ _
# / //_/(_)___ ___ _ / /__ |_ | |_ |( )___
# / ,< / // _ \/ _ `// '_// __/ / __/ |/(_-<
# /_/|_|/_//_//_/\_, //_/\_\/____//____/ /___/
# /___/
# _ ____ _____ ___ _
# (_)|_ / / ___/___ ___ / _/(_)___ _
# / /_/_ < / /__ / _ \ / _ \ / _// // _ `/
# /_//____/ \___/ \___//_//_//_/ /_/ \_, /
# /___/
#
#####################################################
## 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="mpv"] border pixel 3
for_window [class="Zathura"] border pixel 3
#for_window [title="tty-clock -scD -C 4"] border pixel 5
## brightness
bindsym XF86MonBrightnessUp exec brightnessctl set +10% && sleep 0.1 && brightnessctl get
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- && sleep 0.1 && brightnessctl get
bindsym $mod+backslash mode "brightness"
mode "brightness" {
bindsym plus exec sudo brightnessctl set +10% && sleep 0.1 && brightnessctl get
bindsym minus exec sudo brightnessctl set 10%- && sleep 0.1 && brightnessctl get
bindsym Up exec sudo brightnessctl set +10% && sleep 0.1 && brightnessctl get
bindsym Down exec sudo brightnessctl set 10%- && sleep 0.1 && brightnessctl get
bindsym 1 exec sudo brightnessctl set 10% && sleep 0.1 && brightnessctl get
bindsym 2 exec sudo brightnessctl set 20% && sleep 0.1 && brightnessctl get
bindsym 3 exec sudo brightnessctl set 30% && sleep 0.1 && brightnessctl get
bindsym 4 exec sudo brightnessctl set 40% && sleep 0.1 && brightnessctl get
bindsym 5 exec sudo brightnessctl set 50% && sleep 0.1 && brightnessctl get
bindsym 6 exec sudo brightnessctl set 60% && sleep 0.1 && brightnessctl get
bindsym 7 exec sudo brightnessctl set 70% && sleep 0.1 && brightnessctl get
bindsym 8 exec sudo brightnessctl set 80% && sleep 0.1 && brightnessctl get
bindsym 9 exec sudo brightnessctl set 90% && sleep 0.1 && brightnessctl get
bindsym 0 exec sudo brightnessctl set 100% && sleep 0.1 && brightnessctl get
bindsym Return mode "default"
bindsym Escape mode "default"
}
## 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 --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
## font
font pango:iosevka 12
## gaps
gaps inner 30
gaps outer 10
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
bindsym $mod+l exec i3lock-fancy -pt ""
## 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+Shift+Delete 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 systemctl reboot
bindsym Escape mode "default"
}
mode "shutdown: [y]es or [n]o" {
bindsym y exec systemctl poweroff
bindsym n mode "default"
bindsym Return systemctl poweroff
bindsym Escape mode "default"
}
## reload/restart i3
bindsym $mod+Shift+w reload
bindsym $mod+Shift+r restart
## restart Mopidy
# bindsym $mod+Shift+m exec gksudo -m 'Restart Mopidy service' systemctl restart mopidy
## 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"
## suspend
bindsym $mod+s exec i3lock-fancy -pt "" && systemctl suspend
## URxvt
bindsym $mod+Return exec urxvt --depth 32
## volume
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 5 && ~/bin/volume
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 5 && ~/bin/volume
bindsym XF86AudioMute exec pulseaudio-ctl mute && ~/bin/volume
bindsym $mod+slash mode "volume"
mode "volume" {
bindsym plus exec pulseaudio-ctl up && ~/bin/volume
bindsym minus exec pulseaudio-ctl down && ~/bin/volume
bindsym Up exec pulseaudio-ctl up && ~/bin/volume
bindsym Down exec pulseaudio-ctl down && ~/bin/volume
bindsym 1 exec pulseaudio-ctl set 10 && ~/bin/volume
bindsym 2 exec pulseaudio-ctl set 20 && ~/bin/volume
bindsym 3 exec pulseaudio-ctl set 30 && ~/bin/volume
bindsym 4 exec pulseaudio-ctl set 40 && ~/bin/volume
bindsym 5 exec pulseaudio-ctl set 50 && ~/bin/volume
bindsym 6 exec pulseaudio-ctl set 60 && ~/bin/volume
bindsym 7 exec pulseaudio-ctl set 70 && ~/bin/volume
bindsym 8 exec pulseaudio-ctl set 80 && ~/bin/volume
bindsym 9 exec pulseaudio-ctl set 90 && ~/bin/volume
bindsym 0 exec pulseaudio-ctl set 100 && ~/bin/volume
bindsym m exec pulseaudio-ctl mute && ~/bin/volume
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+c exec status
## wallpaper/colours
exec_always --no-startup-id xrdb -load ~/.Xresources
exec_always --no-startup-id feh --bg-fill ~/pictures/wp/seti/black.png
## 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
## 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