|
|
|
@ -1,180 +0,0 @@
|
|
|
|
|
# i3 config file (v4) |
|
|
|
|
# Also (mostly) works with sway(1) |
|
|
|
|
# Feel free to edit this if you aren't me, lol. |
|
|
|
|
|
|
|
|
|
# Set default programs |
|
|
|
|
set $launcher bemenu-run -b |
|
|
|
|
set $term foot |
|
|
|
|
|
|
|
|
|
# I use both the Alt key and the Logo key |
|
|
|
|
# Mainly due to some TUI programs already using $mod |
|
|
|
|
set $mod Mod1 |
|
|
|
|
set $mod2 Mod4 |
|
|
|
|
|
|
|
|
|
# Default font |
|
|
|
|
# Could be anything else |
|
|
|
|
font pango:Hack 10 |
|
|
|
|
|
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position. |
|
|
|
|
floating_modifier $mod |
|
|
|
|
|
|
|
|
|
# Focus follows the mouse? |
|
|
|
|
# Set it to no if otherwise |
|
|
|
|
focus_follows_mouse yes |
|
|
|
|
|
|
|
|
|
# Kill focused window. |
|
|
|
|
bindsym $mod+Shift+q kill |
|
|
|
|
|
|
|
|
|
# Change focus. |
|
|
|
|
bindsym $mod+h focus left |
|
|
|
|
bindsym $mod+j focus down |
|
|
|
|
bindsym $mod+k focus up |
|
|
|
|
bindsym $mod+l focus right |
|
|
|
|
|
|
|
|
|
# Same as above, but arrow keys. |
|
|
|
|
bindsym $mod+Left focus left |
|
|
|
|
bindsym $mod+Down focus down |
|
|
|
|
bindsym $mod+Up focus up |
|
|
|
|
bindsym $mod+Right focus right |
|
|
|
|
|
|
|
|
|
# Move focused window. |
|
|
|
|
bindsym $mod+Shift+h move left |
|
|
|
|
bindsym $mod+Shift+j move down |
|
|
|
|
bindsym $mod+Shift+k move up |
|
|
|
|
bindsym $mod+Shift+l move right |
|
|
|
|
|
|
|
|
|
# Same as above, but arrow keys |
|
|
|
|
bindsym $mod+Shift+Left move left |
|
|
|
|
bindsym $mod+Shift+Down move down |
|
|
|
|
bindsym $mod+Shift+Up move up |
|
|
|
|
bindsym $mod+Shift+Right move right |
|
|
|
|
|
|
|
|
|
# Toggle split from horizontal to vertical and vice-versa. |
|
|
|
|
bindsym $mod+t split toggle |
|
|
|
|
|
|
|
|
|
# Enter fullscreen mode for the focused container. |
|
|
|
|
bindsym $mod+f fullscreen toggle |
|
|
|
|
|
|
|
|
|
# Change container layout (stacked, tabbed, toggle split). |
|
|
|
|
bindsym $mod+s layout stacking |
|
|
|
|
bindsym $mod+w layout tabbed |
|
|
|
|
bindsym $mod+e layout toggle split |
|
|
|
|
|
|
|
|
|
# Toggle tiling / floating. |
|
|
|
|
bindsym $mod+Shift+space floating toggle |
|
|
|
|
|
|
|
|
|
# Change focus between tiling / floating windows. |
|
|
|
|
bindsym $mod+space focus mode_toggle |
|
|
|
|
|
|
|
|
|
# Switch to workspace. |
|
|
|
|
bindsym $mod2+1 workspace 1 |
|
|
|
|
bindsym $mod2+2 workspace 2 |
|
|
|
|
bindsym $mod2+3 workspace 3 |
|
|
|
|
bindsym $mod2+4 workspace 4 |
|
|
|
|
bindsym $mod2+5 workspace 5 |
|
|
|
|
bindsym $mod2+6 workspace 6 |
|
|
|
|
bindsym $mod2+7 workspace 7 |
|
|
|
|
bindsym $mod2+8 workspace 8 |
|
|
|
|
bindsym $mod2+9 workspace 9 |
|
|
|
|
bindsym $mod2+0 workspace 10 |
|
|
|
|
|
|
|
|
|
# Move focused container to workspace. |
|
|
|
|
bindsym $mod2+Shift+1 move container to workspace 1 |
|
|
|
|
bindsym $mod2+Shift+2 move container to workspace 2 |
|
|
|
|
bindsym $mod2+Shift+3 move container to workspace 3 |
|
|
|
|
bindsym $mod2+Shift+4 move container to workspace 4 |
|
|
|
|
bindsym $mod2+Shift+5 move container to workspace 5 |
|
|
|
|
bindsym $mod2+Shift+6 move container to workspace 6 |
|
|
|
|
bindsym $mod2+Shift+7 move container to workspace 7 |
|
|
|
|
bindsym $mod2+Shift+8 move container to workspace 8 |
|
|
|
|
bindsym $mod2+Shift+9 move container to workspace 9 |
|
|
|
|
bindsym $mod2+Shift+0 move container to workspace 10 |
|
|
|
|
|
|
|
|
|
# This works for both i3-gaps and sway, but not regular i3 |
|
|
|
|
gaps inner 20 |
|
|
|
|
gaps outer 5 |
|
|
|
|
|
|
|
|
|
# Key combinations for default programs |
|
|
|
|
# Those are set on the top of the config file |
|
|
|
|
bindsym $mod+d exec $launcher |
|
|
|
|
bindsym $mod+Return exec $term |
|
|
|
|
|
|
|
|
|
## Key combinations for wl-screenshot |
|
|
|
|
bindsym $mod+p exec wl-screenshot output |
|
|
|
|
bindsym $mod+Shift+p exec wl-screenshot area |
|
|
|
|
bindsym $mod+$mod2+p exec wl-screenshot window |
|
|
|
|
|
|
|
|
|
# Some applications needs to be floating. mpv is one of them. |
|
|
|
|
for_window [class="mpv"] floating enable |
|
|
|
|
|
|
|
|
|
# Let's try to get most pop-up windows floating. |
|
|
|
|
for_window [window_role="pop-up"] floating enable |
|
|
|
|
for_window [window_role="bubble"] floating enable |
|
|
|
|
for_window [window_role="task_dialog"] floating enable |
|
|
|
|
for_window [window_role="Preferences"] floating enable |
|
|
|
|
for_window [window_type="dialog"] floating enable |
|
|
|
|
for_window [window_type="menu"] floating enable |
|
|
|
|
|
|
|
|
|
# Screen lock. See 'man swaylock' for information about usage. |
|
|
|
|
bindsym $mod+Control+l exec --no-startup-id "swaylock -c 000000" |
|
|
|
|
|
|
|
|
|
# Jump to the latest "urgent" window. |
|
|
|
|
bindsym $mod+u [urgent=latest] focus |
|
|
|
|
|
|
|
|
|
# Reload the configuration file. |
|
|
|
|
bindsym $mod+Shift+r reload |
|
|
|
|
|
|
|
|
|
# Exit sway (logs you out of your Wayland session). |
|
|
|
|
bindsym $mod+Shift+x exec swaymsg exit |
|
|
|
|
|
|
|
|
|
# Resize window (you can also use the mouse for that). |
|
|
|
|
mode "resize" { |
|
|
|
|
# These bindings trigger as soon as you enter the resize mode. |
|
|
|
|
bindsym h resize shrink width 10px |
|
|
|
|
bindsym j resize grow height 10px |
|
|
|
|
bindsym k resize shrink height 10px |
|
|
|
|
bindsym l resize grow width 10px |
|
|
|
|
|
|
|
|
|
# Same bindings, but for the arrow keys. |
|
|
|
|
bindsym Left resize shrink width 10px |
|
|
|
|
bindsym Down resize grow height 10px |
|
|
|
|
bindsym Up resize shrink height 10px |
|
|
|
|
bindsym Right resize grow width 10px |
|
|
|
|
|
|
|
|
|
# Back to normal: Enter or Escape. |
|
|
|
|
bindsym Return mode "default" |
|
|
|
|
bindsym Escape mode "default" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Resize windows. |
|
|
|
|
bindsym $mod+r mode "resize" |
|
|
|
|
|
|
|
|
|
bar { |
|
|
|
|
colors { |
|
|
|
|
background #000000 |
|
|
|
|
statusline #ffffff |
|
|
|
|
separator #000000 |
|
|
|
|
focused_workspace #990000 #990000 #ffffff |
|
|
|
|
active_workspace #990000 #990000 #ffffff |
|
|
|
|
inactive_workspace #333333 #222222 #888888 |
|
|
|
|
urgent_workspace #ff1a1a #ff1a1a #ffffff |
|
|
|
|
} |
|
|
|
|
binding_mode_indicator yes |
|
|
|
|
position top |
|
|
|
|
status_command exec ~/.config/sway/conky |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Autostart applications |
|
|
|
|
exec "wlsunset -T 2500 -t 2000 -g 0.7" |
|
|
|
|
|
|
|
|
|
# Additional key combinations |
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "mixer vol +5" |
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id "mixer vol -5" |
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id "mixer vol 0" |
|
|
|
|
|
|
|
|
|
# Input/output devices |
|
|
|
|
input * xkb_layout latam |
|
|
|
|
output * bg ~/Pictures/__houraisan_kaguya_touhou_drawn_by_qqqrinkappp__28044ff16a11f66b5e02b336bfafaf5f.jpg stretch |
|
|
|
|
|
|
|
|
|
# Disable title bars |
|
|
|
|
default_border none |