dotfiles/i3_config

211 lines
6.9 KiB
Text
Raw Permalink Normal View History

2021-07-10 00:36:21 -04:00
# _ _____ ____ __ __
# (_)__ / / _/___ / /____ _________ ____ _/ /____
# / / /_ < / // __ \/ __/ _ \/ ___/ __ \/ __ `/ / ___/
# / /___/ / _/ // / / / /_/ __/ / / / / / /_/ / (__ )
#/_//____/ /___/_/ /_/\__/\___/_/ /_/ /_/\__,_/_/____/
#
# Super Key
set $mod Mod4
# Workspace Names
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"
# Appearance
default_border none
2021-07-10 00:36:21 -04:00
gaps inner 15
font pango:DejaVu Sans Mono 2
for_window [class=".*"] title_format "<span alpha='0'></span>"
2022-05-22 15:32:36 -04:00
# ______ __
# / ____/___ / /___ __________
# / / / __ \/ / __ \/ ___/ ___/
#/ /___/ /_/ / / /_/ / / (__ )
#\____/\____/_/\____/_/ /____/
#
# class title backgr. text indic. border
# BASIC
#client.focused #323232 #7575ff #ffffff #161d2f #5e6668
#client.focused_inactive#323232 #4545ff #ffffff #161d2f #323232
#client.unfocused #323232 #161d2f #ffffff #161d2f #323232
#client.urgent #323232 #ff7b19 #ffffff #900000 #d4d4d4
# NORDIC
#client.focused #323232 #81A1C1 #FFFFFF #2E3440 #E5E9F0
#client.focused_inactive#323232 #5E81AC #FFFFFF #2E3440 #D8DEE9
#client.unfocused #323232 #2E3449 #FFFFFF #2E3440 #D8DEE9
#client.urgent #323232 #D08770 #FFFFFF #BF616A #D8DEE9
# HYBRID
client.focused #323232 #81A1C1 #FFFFFF #161D2F #6E7678
client.focused_inactive #323232 #5E81AC #FFFFFF #161D2F #323232
client.unfocused #323232 #2E3449 #FFFFFF #161D2F #323232
client.urgent #323232 #D08770 #FFFFFF #161D2F #424242
2021-07-10 00:36:21 -04:00
# __ __ __ _ __
# / //_/__ __ __/ /_ (_)___ ____/ /____
# / ,< / _ \/ / / / __ \/ / __ \/ __ / ___/
# / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
#/_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
# /____/
# i3
bindsym $mod+Shift+r restart
bindsym $mod+Shift+c reload
# WM Interacts
2022-05-22 15:32:36 -04:00
bindsym $mod+Return exec wezterm
2021-07-10 00:36:21 -04:00
bindsym $mod+Shift+q kill
bindsym $mod+space exec rofi -show run
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+space floating toggle
floating_modifier $mod
# Tiling
bindsym $mod+h split h
bindsym $mod+v split v
# Layout
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Focus
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Down focus down
bindsym $mod+Left focus left
bindsym $mod+a focus parent
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Left move left
# Workspaces
bindsym Ctrl+$mod+Left workspace prev
bindsym Ctrl+$mod+Right workspace next
bindsym $mod+BackSpace workspace back_and_forth
bindsym $mod+grave scratchpad show
bindsym $mod+Shift+grave floating enable, move scratchpad
2022-05-22 15:32:36 -04:00
bindsym $mod+Tab+grave floating enable, move scratchpad
2021-07-10 00:36:21 -04:00
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# Resize Mode
mode "resize" {
2022-05-22 15:32:36 -04:00
bindsym Left resize shrink width 4 px or 2 ppt
bindsym Down resize grow height 4 px or 2 ppt
bindsym Up resize shrink height 4 px or 2 ppt
bindsym Right resize grow width 4 px or 2 ppt
bindsym Ctrl+Left resize shrink width 2 px or 1 ppt
bindsym Ctrl+Down resize grow height 2 px or 1 ppt
bindsym Ctrl+Up resize shrink height 2 px or 1 ppt
bindsym Ctrl+Right resize grow width 2 px or 1 ppt
bindsym Shift+Left resize shrink width 8 px or 4 ppt
bindsym Shift+Down resize grow height 8 px or 4 ppt
bindsym Shift+Up resize shrink height 8 px or 4 ppt
bindsym Shift+Right resize grow width 8 px or 4 ppt
bindsym Ctrl+Shift+Left resize shrink width 16 px or 8 ppt
bindsym Ctrl+Shift+Down resize grow height 16 px or 8 ppt
bindsym Ctrl+Shift+Up resize shrink height 16 px or 8 ppt
bindsym Ctrl+Shift+Right resize grow width 16 px or 8 ppt
2021-07-10 00:36:21 -04:00
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Utility
bindsym $mod+Escape exec dunstctl close
bindsym Shift+$mod+Escape exec dunstctl close-all
2022-05-22 15:32:36 -04:00
bindsym Menu exec /home/val/.config/eww/menu_script
bindsym XF86AudioPlay exec playerctl --player=spotify play-pause
bindsym XF86AudioNext exec playerctl --player=spotify next
bindsym XF86AudioPrev exec playerctl --player=spotify previous
2021-07-10 12:12:13 -04:00
2022-05-22 15:32:36 -04:00
bindsym Shift+XF86AudioPlay exec playerctl play-pause
bindsym Shift+XF86AudioNext exec playerctl next
bindsym Shift+XF86AudioPrev exec playerctl previous
2021-07-10 00:36:21 -04:00
bindsym $mod+Shift+s exec scrot ~/Images/scrot/%Y-%m-%d_%H:%M:%S.png
2021-07-10 00:36:21 -04:00
# _____ __ __
# / ___// /_____ ______/ /___ ______
# \__ \/ __/ __ `/ ___/ __/ / / / __ \
# ___/ / /_/ /_/ / / / /_/ /_/ / /_/ /
#/____/\__/\__,_/_/ \__/\__,_/ .___/
# /_/
exec_always feh --bg-scale ~/.background
2021-07-10 12:12:13 -04:00
exec_always xrdb ~/.Xresources
2022-05-22 15:32:36 -04:00
exec picom
2021-07-10 00:36:21 -04:00
exec redshift &
exec dunst
exec eww daemon
2022-05-22 15:32:36 -04:00
exec eww open bar
exec unclutter
exec --no-startup-id fcitx5 -d
2021-07-10 00:36:21 -04:00
exec ~/.script/nosleep.sh
exec_always ~/.script/hid/trackball_speed.sh 0.3 1
2021-07-10 00:36:21 -04:00
# _ ___ __ ____
#| | / (_)___ ____/ /___ _ __ / __ \_________ ____ _____
#| | /| / / / __ \/ __ / __ \ | /| / / / /_/ / ___/ __ \/ __ \/ ___/
#| |/ |/ / / / / / /_/ / /_/ / |/ |/ / / ____/ / / /_/ / /_/ (__ )
#|__/|__/_/_/ /_/\__,_/\____/|__/|__/ /_/ /_/ \____/ .___/____/
# /_/
2022-05-22 15:32:36 -04:00
for_window [title="Blanket" class="python3"] floating enable
for_window [class="Blueman-manager"] floating enable
2021-07-10 00:36:21 -04:00
for_window [class="eww"] floating enable
for_window [class="Fractal"] floating enable
2022-05-22 15:32:36 -04:00
for_window [class="Gnome-calendar"] floating enable
for_window [class="org.gnome.Nautilus"] floating enable
for_window [class="org.gnome.SoundRecorder"] floating enable
2021-07-10 00:36:21 -04:00
for_window [class="Pick-colour-picker"] floating enable
for_window [class="Tk" title="sysmenu"] floating enable
2022-05-22 15:32:36 -04:00
for_window [class="Steam" title="Friends List"] floating enable
for_window [class="Steam" title="Steam Keyboard"] floating enable
2021-07-10 12:12:13 -04:00
2022-05-22 15:32:36 -04:00
no_focus [window_role="pop-up"]
focus_on_window_activation none