Restore sway config to use dropins
This commit is contained in:
@@ -1,249 +1,19 @@
|
|||||||
#### ####
|
### ###
|
||||||
## Triskelion sway Config File ##
|
# Tycho Station Sway Config #
|
||||||
#### ####
|
### ###
|
||||||
|
|
||||||
### ###
|
# This config file is modular. Set variables here, then use them in
|
||||||
# Display settings #
|
# drop-in config files located in ~/.config/sway/config.d/
|
||||||
### ###
|
|
||||||
|
|
||||||
# This section controls how connected displays are treated
|
|
||||||
|
|
||||||
set $leftdisplay HDMI-A-1
|
|
||||||
set $rightdisplay DP-2
|
|
||||||
|
|
||||||
output {
|
|
||||||
$leftdisplay pos 0 0 mode --custom 1920x1080@75Hz
|
|
||||||
$rightdisplay pos 1920 0 mode --custom 1920x1080@75Hz
|
|
||||||
* bg "#1e1e1e" solid_color
|
|
||||||
}
|
|
||||||
|
|
||||||
input '*' xkb_file ~/.config/sway/keymap.xkb
|
|
||||||
|
|
||||||
### ###
|
|
||||||
# Window Manager settings #
|
|
||||||
### ###
|
|
||||||
|
|
||||||
# This section controls how the window manager functions. It does
|
|
||||||
# not include keybinds that are not directly related to the window
|
|
||||||
# manager's window management functions.
|
|
||||||
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $alt Mod1
|
set $alt Mod1
|
||||||
|
|
||||||
# Set font
|
set $colors.primary '#815986'
|
||||||
font pango:Source Code Pro 8
|
set $colors.background '#2d272f'
|
||||||
|
|
||||||
# Reload configuration
|
### ###
|
||||||
bindsym $mod+Shift+r reload
|
# HERE BE DRAGONS #
|
||||||
|
### ###
|
||||||
|
|
||||||
# Exit
|
# Do not edit anything below these comments. You have been warned.
|
||||||
bindsym $mod+Shift+e exec i3-logout
|
include ~/.config/sway/config.d/*.conf
|
||||||
|
|
||||||
### ###
|
|
||||||
# Window Management Settings #
|
|
||||||
### ###
|
|
||||||
|
|
||||||
# This section controls window behavior and management keybinds.
|
|
||||||
# It also includes the resize mode.
|
|
||||||
|
|
||||||
# Set monitor vars
|
|
||||||
set $monitor_1 $leftdisplay
|
|
||||||
set $monitor_2 $rightdisplay
|
|
||||||
|
|
||||||
# Set keybinds to switch workspaces
|
|
||||||
bindsym $mod+1 exec swaymsg workspace $(i3-sensible-workspaces 1)
|
|
||||||
bindsym $mod+2 exec swaymsg workspace $(i3-sensible-workspaces 2)
|
|
||||||
bindsym $mod+3 exec swaymsg workspace $(i3-sensible-workspaces 3)
|
|
||||||
bindsym $mod+4 exec swaymsg workspace $(i3-sensible-workspaces 4)
|
|
||||||
bindsym $mod+5 exec swaymsg workspace $(i3-sensible-workspaces 5)
|
|
||||||
bindsym $mod+6 exec swaymsg workspace $(i3-sensible-workspaces 6)
|
|
||||||
bindsym $mod+7 exec swaymsg workspace $(i3-sensible-workspaces 7)
|
|
||||||
bindsym $mod+8 exec swaymsg workspace $(i3-sensible-workspaces 8)
|
|
||||||
bindsym $mod+9 exec swaymsg workspace $(i3-sensible-workspaces 9)
|
|
||||||
bindsym $mod+0 exec swaymsg workspace $(i3-sensible-workspaces 10)
|
|
||||||
|
|
||||||
# Set keybinds to move windows between workspaces
|
|
||||||
bindsym $mod+Shift+1 exec i3-move-container 1
|
|
||||||
bindsym $mod+Shift+2 exec i3-move-container 2
|
|
||||||
bindsym $mod+Shift+3 exec i3-move-container 3
|
|
||||||
bindsym $mod+Shift+4 exec i3-move-container 4
|
|
||||||
bindsym $mod+Shift+5 exec i3-move-container 5
|
|
||||||
bindsym $mod+Shift+6 exec i3-move-container 6
|
|
||||||
bindsym $mod+Shift+7 exec i3-move-container 7
|
|
||||||
bindsym $mod+Shift+8 exec i3-move-container 8
|
|
||||||
bindsym $mod+Shift+9 exec i3-move-container 9
|
|
||||||
bindsym $mod+Shift+0 exec i3-move-container 10
|
|
||||||
|
|
||||||
# Bind workspaces to monitors
|
|
||||||
workspace 1 output $monitor_1
|
|
||||||
workspace 2 output $monitor_1
|
|
||||||
workspace 3 output $monitor_1
|
|
||||||
workspace 4 output $monitor_1
|
|
||||||
workspace 5 output $monitor_1
|
|
||||||
workspace 6 output $monitor_1
|
|
||||||
workspace 7 output $monitor_1
|
|
||||||
workspace 8 output $monitor_1
|
|
||||||
workspace 9 output $monitor_1
|
|
||||||
workspace 10 output $monitor_1
|
|
||||||
|
|
||||||
workspace 11 output $monitor_2
|
|
||||||
workspace 12 output $monitor_2
|
|
||||||
workspace 13 output $monitor_2
|
|
||||||
workspace 14 output $monitor_2
|
|
||||||
workspace 15 output $monitor_2
|
|
||||||
workspace 16 output $monitor_2
|
|
||||||
workspace 17 output $monitor_2
|
|
||||||
workspace 18 output $monitor_2
|
|
||||||
workspace 19 output $monitor_2
|
|
||||||
workspace 20 output $monitor_2
|
|
||||||
|
|
||||||
# Allow dragging of floating windows whilst holding $mod
|
|
||||||
floating_modifier $mod
|
|
||||||
|
|
||||||
# Resize mode
|
|
||||||
mode "resize" {
|
|
||||||
bindsym Left resize shrink width 10 px or 1 ppt
|
|
||||||
bindsym Down resize grow height 10 px or 1 ppt
|
|
||||||
bindsym Up resize shrink height 10 px or 1 ppt
|
|
||||||
bindsym f resize grow width 10 px or 1 ppt
|
|
||||||
|
|
||||||
# Exit resize mode
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
bindsym $mod+r mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
|
||||||
|
|
||||||
# Move windows
|
|
||||||
bindsym $mod+Shift+b move left
|
|
||||||
bindsym $mod+Shift+f move right
|
|
||||||
bindsym $mod+Shift+p move up
|
|
||||||
bindsym $mod+Shift+n move down
|
|
||||||
|
|
||||||
bindsym $mod+Shift+Left move left
|
|
||||||
bindsym $mod+Shift+Right move right
|
|
||||||
bindsym $mod+Shift+Up move up
|
|
||||||
bindsym $mod+Shift+Down move down
|
|
||||||
|
|
||||||
# Shift focus
|
|
||||||
bindsym $mod+b focus left
|
|
||||||
bindsym $mod+f focus right
|
|
||||||
bindsym $mod+p focus up
|
|
||||||
bindsym $mod+n focus down
|
|
||||||
bindsym $mod+a focus parent
|
|
||||||
|
|
||||||
# Splits
|
|
||||||
bindsym $mod+h split h
|
|
||||||
bindsym $mod+v split v
|
|
||||||
|
|
||||||
# Fullscreen
|
|
||||||
bindsym $mod+$alt+f fullscreen toggle
|
|
||||||
|
|
||||||
# Floating
|
|
||||||
bindsym $mod+Shift+space floating toggle
|
|
||||||
bindsym $mod+space focus mode_toggle
|
|
||||||
|
|
||||||
# Close window
|
|
||||||
bindsym $mod+Shift+q kill
|
|
||||||
|
|
||||||
# Change window arrangement
|
|
||||||
bindsym $mod+e layout toggle split
|
|
||||||
bindsym $mod+t layout tabbed
|
|
||||||
bindsym $mod+s layout stacking
|
|
||||||
|
|
||||||
### ###
|
|
||||||
# Appearance #
|
|
||||||
### ###
|
|
||||||
|
|
||||||
default_border pixel 1
|
|
||||||
|
|
||||||
# Colors
|
|
||||||
set $primary #815986
|
|
||||||
set $background #2d272f
|
|
||||||
set $wallpaper #242933
|
|
||||||
|
|
||||||
client.focused $primary $background $primary $primary $primary
|
|
||||||
client.focused_inactive $primary $background $primary $background $background
|
|
||||||
client.unfocused $background $background $primary $background $background
|
|
||||||
|
|
||||||
# Gaps
|
|
||||||
gaps inner 10
|
|
||||||
|
|
||||||
workspace 1 gaps left 210
|
|
||||||
workspace 2 gaps left 210
|
|
||||||
workspace 3 gaps left 210
|
|
||||||
workspace 4 gaps left 210
|
|
||||||
workspace 5 gaps left 210
|
|
||||||
workspace 6 gaps left 210
|
|
||||||
workspace 7 gaps left 210
|
|
||||||
workspace 8 gaps left 210
|
|
||||||
workspace 9 gaps left 210
|
|
||||||
workspace 10 gaps left 210
|
|
||||||
|
|
||||||
# Themes
|
|
||||||
|
|
||||||
set $gnome-schema org.gnome.desktop.interface
|
|
||||||
|
|
||||||
exec_always gsettings set $gnome-schema {
|
|
||||||
gtk-theme 'Nordic-darker'
|
|
||||||
icon-theme 'ePapirus-Dark'
|
|
||||||
font-name 'Source Sans Pro:12'
|
|
||||||
}
|
|
||||||
|
|
||||||
### ###
|
|
||||||
# Desktop Features #
|
|
||||||
### ###
|
|
||||||
|
|
||||||
# This section includes basic desktop features, such as
|
|
||||||
# the ability to launch programs and functional media keys
|
|
||||||
|
|
||||||
# Program launchers
|
|
||||||
bindsym {
|
|
||||||
# "Sensible" launcher -- auto-launch default program for workspace
|
|
||||||
$mod+Return exec i3-sensible-launcher
|
|
||||||
# Terminal launcher
|
|
||||||
$mod+Shift+Return exec alacritty
|
|
||||||
# Program menu launcher
|
|
||||||
$mod+d exec wofi --show drun
|
|
||||||
}
|
|
||||||
|
|
||||||
# Media keys (function while locked, be careful with these)
|
|
||||||
bindsym --locked {
|
|
||||||
# Playback Control
|
|
||||||
XF86AudioPlay exec playerctl play-pause
|
|
||||||
XF86AudioNext exec playerctl next
|
|
||||||
XF86AudioPrev exec playerctl previous
|
|
||||||
}
|
|
||||||
|
|
||||||
# Utility keybinds
|
|
||||||
bindsym {
|
|
||||||
# Screen locker
|
|
||||||
$mod+l exec loginctl lock-session
|
|
||||||
# Dismiss notification
|
|
||||||
$mod+Ctrl+Space exec dunstctl close
|
|
||||||
}
|
|
||||||
|
|
||||||
# Start daemons
|
|
||||||
exec_always /usr/bin/systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
|
||||||
exec hash dbus-update-activation-environment 2>/dev/null && \
|
|
||||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK SSH_AUTH_SOCK GPG_TTY
|
|
||||||
exec_always /usr/bin/systemctl --user start sway-session.target
|
|
||||||
|
|
||||||
exec noisetorch -i -t 95
|
|
||||||
|
|
||||||
# Start status bars
|
|
||||||
exec eww open-many leftbar rightbar sidebar
|
|
||||||
|
|
||||||
# Keyboard settings
|
|
||||||
input * {
|
|
||||||
xkb_numlock enabled
|
|
||||||
xkb_options compose:menu
|
|
||||||
}
|
|
||||||
|
|
||||||
# Key overrides for G-keys
|
|
||||||
bindsym XF86Tools exec wtype -k F13
|
|
||||||
bindsym XF86Launch5 exec wtype -k F14
|
|
||||||
bindsym XF86Launch6 exec wtype -k F15
|
|
||||||
bindsym XF86Launch7 exec wtype -k F16
|
|
||||||
bindsym XF86Launch8 exec wtype -k F17
|
|
||||||
|
|||||||
Reference in New Issue
Block a user