2022-04-19 04:45:01 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
2023-06-30 21:13:48 +00:00
|
|
|
# Hardware configuration
|
|
|
|
include $HOME/.dotfiles/sway/devices
|
2023-04-10 01:24:23 +00:00
|
|
|
|
2022-04-19 04:45:01 +00:00
|
|
|
################################################################################
|
|
|
|
# Appearance
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
seat seat0 xcursor_theme FlatbedCursors-Blue
|
|
|
|
|
|
|
|
# Minimize borders from all windows
|
|
|
|
hide_edge_borders none
|
2024-02-23 05:55:01 +00:00
|
|
|
default_floating_border pixel 2
|
|
|
|
default_border pixel 2
|
2022-04-19 04:45:01 +00:00
|
|
|
|
|
|
|
# Font only visible in tabbed mode. Also inheritted by bar.
|
|
|
|
font pango:Anonymous Pro 12
|
|
|
|
|
|
|
|
# Start Waybar with IPC functionality (requires waybar>=0.9.9, wlroots>=0.15)
|
|
|
|
bar bar-1 {
|
2024-01-31 03:33:47 +00:00
|
|
|
swaybar_command waybar -c $HOME/.config/waybar/config
|
|
|
|
icon_theme Gruvbox
|
2022-04-19 04:45:01 +00:00
|
|
|
mode hide
|
|
|
|
hidden_state hide
|
|
|
|
position bottom
|
|
|
|
}
|
|
|
|
|
|
|
|
# gaps
|
2024-02-23 05:55:01 +00:00
|
|
|
gaps inner 0
|
2022-05-27 04:32:38 +00:00
|
|
|
gaps outer 0
|
2022-04-19 04:45:01 +00:00
|
|
|
|
|
|
|
# Color definitions
|
|
|
|
include $HOME/.dotfiles/sway/colorscheme
|
|
|
|
|
|
|
|
# Assign colors to elements (TODO: actually name the colors for better readability)
|
2023-11-18 01:38:12 +00:00
|
|
|
client.background $blck
|
|
|
|
# Property Name Border BG Text Hilight Child Border
|
|
|
|
client.focused $rblu $bblu $hlgt $bblu $bblu
|
|
|
|
client.focused_inactive $bkgd $bkgd $rblu $dimm $bkgd
|
|
|
|
client.unfocused $bkgd $hlgt $rblu $bkgd $bkgd
|
|
|
|
client.urgent $rred $frgd $hlgt $frgd $rred
|
2022-10-17 15:42:31 +00:00
|
|
|
# Feature request (https://github.com/swaywm/sway/pull/7208) does not exist as of 1.7
|
2023-11-18 01:38:12 +00:00
|
|
|
#client.sticky $rylw $rylw $rylw $rylw $rylw
|
|
|
|
#client.sticky_inactive $rmgt $rmgt $rmgt $rmgt $rmgt
|
|
|
|
#client.sticky_unfocused $rcyn $rcyn $rcyn $rcyn $rcyn
|
|
|
|
client.placeholder $hlgt $hlgt $rblu $hlgt $hlgt
|
2022-04-19 04:45:01 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Bindings
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Set super key to Windows/Super key
|
|
|
|
set $mod Mod4
|
|
|
|
|
|
|
|
### Load keybindings
|
|
|
|
include $HOME/.dotfiles/sway/bindings
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Behaviour
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Allow movement of floating windows with Left Click+Drag
|
|
|
|
floating_modifier $mod
|
|
|
|
|
|
|
|
# Load special window behaviours
|
|
|
|
include $HOME/.dotfiles/sway/behaviours
|
|
|
|
|
|
|
|
# X window 'activation' should just make a window 'urgent' instead of 'focused'
|
|
|
|
focus_on_window_activation urgent
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Start-up Applications
|
|
|
|
################################################################################
|
|
|
|
|
2022-06-06 17:54:56 +00:00
|
|
|
# Configure XDG desktop portal
|
|
|
|
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
|
|
|
exec dbus-update-activation-environment 2>/dev/null && \
|
|
|
|
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
|
|
|
exec systemctl --user start xdg-desktop-portal-wlr.service
|
2022-09-05 17:50:54 +00:00
|
|
|
exec systemctl --user start wallpapers.service
|
2022-06-06 17:54:56 +00:00
|
|
|
|
2022-04-19 04:45:01 +00:00
|
|
|
include $HOME/.dotfiles/sway/autostart
|