321 lines
9.5 KiB
Plaintext
321 lines
9.5 KiB
Plaintext
##### i3-config / RESLOVED #######################
|
|
|
|
##### GENERAL #####################################
|
|
|
|
set $mod Mod4
|
|
|
|
font pango:Go Mono 8
|
|
|
|
# APP VARIABLES
|
|
set $browser qutebrowser
|
|
set $solobrowser surf
|
|
set $term alacritty
|
|
|
|
# DIR VARIABLES
|
|
set $bin ~/bin
|
|
|
|
# RESIZE VARIABLES
|
|
set $center move absolute position center
|
|
|
|
# FLOATING
|
|
floating_modifier $mod
|
|
|
|
set $thick 0
|
|
#border_radius 2
|
|
|
|
# DEFAULT BORDER
|
|
for_window [class="^.*"] border pixel $thick
|
|
for_window [title="^.*"] border pixel $thick
|
|
|
|
# APPLICATION BORDERS
|
|
for_window [class="Emacs"] border pixel $thick
|
|
for_window [class="st"] border pixel $thick
|
|
|
|
# FLOATING APPLICATIONS
|
|
#for_window [class="Orca"] floating enable
|
|
for_window [class="Foliate"] floating enable
|
|
for_window [class="Foliate"] floating_maximum_size 800 x 400
|
|
|
|
# GAP VARIABLES
|
|
set $inner 12
|
|
set $outer 12
|
|
|
|
# SET GAPS
|
|
gaps inner $inner
|
|
gaps outer $outer
|
|
|
|
|
|
# START POLYBAR
|
|
#exec_always --no-startup-id ~/.config/polybar/launch.sh
|
|
bar {
|
|
position bottom
|
|
position top
|
|
status_command i3status -c ~/.config/i3status/i3status.conf
|
|
colors {
|
|
statusline #deedee
|
|
separator #777777
|
|
}
|
|
}
|
|
|
|
# CUSTOM BINDINGS
|
|
#bindsym $mod+shift+m exec --no-startup-id surf https://15five-dev.atlassian.net/secure/Dashboard.jspa
|
|
|
|
# SCRATCHPAD
|
|
bindsym $mod+Return exec $term
|
|
#bindsym $mod+BackSpace scratchpad show
|
|
#bindsym $mod+Shift+BackSpace floating enable, move position 48 px 48 px, move scratchpad
|
|
#bindsym $mod+Ctrl+BackSpace exec $term -e tmux new-session -A -s scratch
|
|
|
|
# KILL
|
|
bindsym $mod+Shift+q kill
|
|
bindsym $mod+Ctrl+x exec rofi-exit
|
|
bindsym $mod+Shift+x exec exit
|
|
|
|
# RELOAD
|
|
bindsym $mod+Shift+BackSpace reload
|
|
# RESTART
|
|
bindsym $mod+Shift+r restart
|
|
|
|
bindsym $mod+w layout toggle split
|
|
bindsym $mod+Ctrl+w layout stacked
|
|
bindsym $mod+Shift+w layout tabbed
|
|
title_align center
|
|
|
|
##### MOVEMENT ####################################
|
|
|
|
# FOCUS
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+l focus right
|
|
|
|
bindsym $mod+Left focus left
|
|
bindsym $mod+Down focus down
|
|
bindsym $mod+Up focus up
|
|
bindsym $mod+Right focus right
|
|
|
|
# MOVE
|
|
bindsym $mod+Ctrl+h move left
|
|
bindsym $mod+Ctrl+j move down
|
|
bindsym $mod+Ctrl+k move up
|
|
bindsym $mod+Ctrl+l move right
|
|
|
|
bindsym $mod+Ctrl+Left move left
|
|
bindsym $mod+Ctrl+Down move down
|
|
bindsym $mod+Ctrl+Up move up
|
|
bindsym $mod+Ctrl+Right move right
|
|
|
|
# RESIZE
|
|
bindsym $mod+Shift+h resize shrink width 10px or 10 ppt
|
|
bindsym $mod+Shift+j resize shrink height 10px or 10 ppt
|
|
bindsym $mod+Shift+k resize grow height 10px or 10 ppt
|
|
bindsym $mod+Shift+l resize grow width 10px or 10 ppt
|
|
|
|
bindsym $mod+Shift+Left resize shrink width 10px or 10 ppt
|
|
bindsym $mod+Shift+Down resize shrink height 10px or 10 ppt
|
|
bindsym $mod+Shift+Up resize grow height 10px or 10 ppt
|
|
bindsym $mod+Shift+Right resize grow width 10px or 10 ppt
|
|
|
|
bindsym $mod+Shift+Ctrl+h resize shrink width 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+j resize shrink height 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+k resize grow height 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+l resize grow width 1px or 1 ppt
|
|
|
|
bindsym $mod+Shift+Ctrl+Left resize shrink width 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+Down resize shrink height 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+Up resize grow height 1px or 1 ppt
|
|
bindsym $mod+Shift+Ctrl+Right resize grow width 1px or 1 ppt
|
|
|
|
# VERTICAL SPLIT
|
|
bindsym $mod+v split v
|
|
|
|
# HORIZONTAL SPLIT
|
|
bindsym $mod+b split h
|
|
|
|
# FULLSCREEN
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# TOGGLE FLOATING
|
|
#bindsym $mod+escape floating toggle; $center
|
|
|
|
# MODE TOGGLE
|
|
bindsym $mod+Shift+space focus mode_toggle
|
|
|
|
# PAPER MODE
|
|
bindsym $mod+Ctrl+space floating toggle; resize set 700px 975px; $center
|
|
|
|
# CENTER FLOATING
|
|
bindsym $mod+c $center
|
|
|
|
# DISPLAYS
|
|
bindsym $mod+F1 exec ~/.screenlayout/titan-one.sh
|
|
bindsym $mod+F2 exec ~/.screenlayout/titan-two.sh
|
|
bindsym $mod+F3 exec ~/.screenlayout/titan-three.sh
|
|
|
|
##### WORKSPACES ##################################
|
|
|
|
# WORKSPACES
|
|
set $ws1 number 1
|
|
set $ws2 number 2
|
|
set $ws3 number 3
|
|
set $ws4 number 4
|
|
set $ws5 number 5
|
|
set $ws6 number 6
|
|
set $ws7 number 7
|
|
set $ws8 number 8
|
|
set $ws9 number 9
|
|
#set $ws10 "10"
|
|
|
|
# SWITCH TO WORKSPACE
|
|
bindsym $mod+1 workspace $ws1
|
|
bindsym $mod+2 workspace $ws2
|
|
bindsym $mod+3 workspace $ws3
|
|
bindsym $mod+4 workspace $ws4
|
|
bindsym $mod+5 workspace $ws5
|
|
bindsym $mod+6 workspace $ws6
|
|
bindsym $mod+7 workspace $ws7
|
|
bindsym $mod+8 workspace $ws8
|
|
bindsym $mod+9 workspace $ws9
|
|
|
|
bindsym $mod+Mod2+KP_1 workspace $ws1
|
|
bindsym $mod+Mod2+KP_2 workspace $ws2
|
|
bindsym $mod+Mod2+KP_3 workspace $ws3
|
|
bindsym $mod+Mod2+KP_4 workspace $ws4
|
|
bindsym $mod+Mod2+KP_5 workspace $ws5
|
|
bindsym $mod+Mod2+KP_6 workspace $ws6
|
|
bindsym $mod+Mod2+KP_7 workspace $ws7
|
|
bindsym $mod+Mod2+KP_8 workspace $ws8
|
|
bindsym $mod+Mod2+KP_9 workspace $ws9
|
|
|
|
# MOVE WINDOW TO WORKSPACE
|
|
bindsym $mod+Shift+1 move container to workspace $ws1
|
|
bindsym $mod+Shift+2 move container to workspace $ws2
|
|
bindsym $mod+Shift+3 move container to workspace $ws3
|
|
bindsym $mod+Shift+4 move container to workspace $ws4
|
|
bindsym $mod+Shift+5 move container to workspace $ws5
|
|
bindsym $mod+Shift+6 move container to workspace $ws6
|
|
bindsym $mod+Shift+7 move container to workspace $ws7
|
|
bindsym $mod+Shift+8 move container to workspace $ws8
|
|
bindsym $mod+Shift+9 move container to workspace $ws9
|
|
|
|
bindsym $mod+Ctrl+Mod2+KP_1 move container to workspace $ws1
|
|
bindsym $mod+Ctrl+Mod2+KP_2 move container to workspace $ws2
|
|
bindsym $mod+Ctrl+Mod2+KP_3 move container to workspace $ws3
|
|
bindsym $mod+Ctrl+Mod2+KP_4 move container to workspace $ws4
|
|
bindsym $mod+Ctrl+Mod2+KP_5 move container to workspace $ws5
|
|
bindsym $mod+Ctrl+Mod2+KP_6 move container to workspace $ws6
|
|
bindsym $mod+Ctrl+Mod2+KP_7 move container to workspace $ws7
|
|
bindsym $mod+Ctrl+Mod2+KP_8 move container to workspace $ws8
|
|
bindsym $mod+Ctrl+Mod2+KP_9 move container to workspace $ws9
|
|
|
|
##=================================================##
|
|
# Assign Workspaces:
|
|
assign [class="Emacs"] $ws1
|
|
assign [class=$browser] $ws2
|
|
assign [class=$term] $ws3
|
|
assign [class="calibre"] $ws5
|
|
assign [class="Foliate"] $ws5
|
|
|
|
|
|
##### COLORS #######################################
|
|
|
|
# XRESOURCES
|
|
set $fg "#660000"
|
|
set $bg "#666666"
|
|
set $tx "#FFFFFF"
|
|
set $ltx "#CCCCCC"
|
|
|
|
# CLASS BORDER BACK TEXT INDICATOR
|
|
client.focused $fg $fg $tx $fg
|
|
client.focused_inactive $bg $bg $tx $fg
|
|
client.unfocused $bg $bg $ltx $bg
|
|
client.urgent $bg $bg $bg $bg
|
|
client.placeholder $bg $bg $bg $bg
|
|
|
|
##### TOOLS ########################################
|
|
|
|
# SCREENSHOT
|
|
set $shots ~/var/images
|
|
|
|
bindsym $mod+Print exec maim --hidecursor $shots/$(date +%s).png
|
|
bindsym $mod+Ctrl+Print exec maim -s $shots/$(date +%s).png
|
|
bindsym $mod+Shift+Print exec feh $(last $shots)
|
|
|
|
# CAST
|
|
set $casts ~/videos/casts
|
|
|
|
bindsym $mod+F12 exec cast
|
|
bindsym $mod+Ctrl+F12 exec cast -s
|
|
#bindsym $mod+Shift+F12 exec
|
|
|
|
bindsym $mod+Ctrl+F11 exec anypaste -x -s -p streamable $(last $casts)
|
|
bindsym $mod+Shift+F11 exec ffplay -loop 0 $(last $casts)
|
|
|
|
# MEDIA CONTROLS
|
|
bindsym $mod+ctrl+comma exec mixer vol 0
|
|
bindsym $mod+Ctrl+period exec mixer vol 100
|
|
bindsym $mod+comma exec mixer vol -10
|
|
bindsym $mod+period exec mixer vol +10
|
|
|
|
bindsym $mod+Shift+slash exec mixer mic 0
|
|
bindsym $mod+Shift+comma exec mixer mic -5
|
|
bindsym $mod+Shift+period exec mixer mic +5
|
|
|
|
bindsym XF86AudioRaiseVolume exec mixer vol +5
|
|
bindsym XF86AudioLowerVolume exec mixer vol -5
|
|
bindsym XF86AudioMicMute exec mixer mic toggle
|
|
|
|
# Sreen brightness controls
|
|
bindsym $mod+F5 exec intel_backlight decr
|
|
bindsym $mod+F6 exec intel_backlight incr
|
|
|
|
bindsym XF86MonBrightnessUp exec ~/.config/i3/bright.sh -u # increase screen brightness
|
|
bindsym XF86MonBrightnessDown exec ~/.config/i3/bright.sh -d # decrease screen brightness
|
|
bindsym XF86Search exec ~/.config/i3/bright.sh 1 # decrease screen brightness
|
|
|
|
# ROFI
|
|
bindsym $mod+space exec rofi -show combi -display-window "W"
|
|
|
|
# BACKGROUND
|
|
exec feh --bg-scale ~/var/inbox/astrobin/`ls -Ar ~/var/inbox/astrobin | tail -n 1`
|
|
|
|
##### APP BINDS ###################################
|
|
|
|
bindsym $mod+n exec $browser
|
|
bindsym $mod+Shift+n exec ~/.config/rofi/searx-search.sh
|
|
bindsym $mod+Shift+s exec ~/.config/rofi/web-search.sh
|
|
bindsym $mod+Shift+b exec ~/.config/rofi/books-search.sh
|
|
bindsym $mod+Shift+c exec ~/.config/rofi/github-repos.sh
|
|
|
|
bindsym Print exec --no-startup-id gnome-screenshot
|
|
bindsym $mod+Ctrl+f exec --no-startup-id $solobrowser https://15five.15five.com/report/current/
|
|
bindsym $mod+Ctrl+g exec --no-startup-id $solobrowser https://github.com/15five/fifteen5/pulls
|
|
bindsym $mod+Ctrl+p exec --no-startup-id $solobrowser https://github.com/15five/fifteen5/pulls?utf8=%E2%9C%93&q=is%3Aopen+is%3Apr+label%3Abackend+-reviewed-by%3Apowellc
|
|
|
|
bindsym $mod+Ctrl+a exec $solobrowser https://www.astrobin.com/iotd/archive/
|
|
bindsym $mod+Ctrl+m exec $solobrowser https://play.unbl.ink/iris
|
|
bindsym $mod+Ctrl+d exec $solobrowser https://15five-dev.atlassian.net/secure/Dashboard.jspa
|
|
bindsym $mod+Ctrl+q exec $solobrowser https://15five.quip.com/
|
|
bindsym $mod+Ctrl+s exec $solobrowser https://15five.slack.com/
|
|
bindsym $mod+Ctrl+r exec $solobrowser https://randomaccessbrewery.slack.com/
|
|
|
|
bindsym $mod+e exec emacsclient -c
|
|
|
|
bindsym $mod+o exec rofi-now
|
|
bindsym $mod+Ctrl+o exec rofi-vol
|
|
bindsym $mod+Shift+o exec rofi-bat
|
|
|
|
##### LAUNCH ######################################
|
|
|
|
# STARTUP
|
|
exec --no-startup-id unclutter -grab
|
|
|
|
# RELOAD
|
|
exec_always --no-startup-id compton
|
|
exec_always --no-startup-id dunst
|
|
exec_always xrdb --merge ~/.Xresoureces
|
|
|
|
## Volume control
|
|
# Path to volume control, without trailing slash
|
|
#set $volumepath ~/.config/i3/i3-volume
|