dotfiles/sway/config

71 lines
2.3 KiB
Text
Raw Normal View History

2022-09-12 15:58:28 +00:00
### Variables
#
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
set $term foot
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu wofi -S run | xargs swaymsg exec --
set $launcher wofi -S drun -I | xargs swaymsg exec --
exec --no-startup-id systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec --no-startup-id dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg ~/Pictures/wallpapers/purple-girl-goo.png fill
output HDMI-A-2 bg ~/Pictures/wallpapers/1659127462058350.jpg fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
font terminus 8
smart_borders no_gaps
client.focused #F76577 #F76577 #ffffff
client.focused_inactive #707B84 #707B84 #bdc3c7
client.unfocused #454C51 #454C51 #707B84
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position bottom
font terminus, FontAwesome 12
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
#status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
status_command i3status-rs
colors {
statusline #bdc3c7
background #23232ff7
focused_workspace #F8758B #FF5975 #ffffff
inactive_workspace #23232f #23232f #bdc3c7
urgent_workspace #707B84 #707B84 #ffffff
}
}
for_window [shell="xwayland"] title_format "%title [XWayland]"
for_window [app_id="flameshot"] floating enable, fullscreen disable, move absolute position 0 0, border pixel 0
for_window [app_id="copyq"] floating enable, move position pointer
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="galculator"] floating enable
include /etc/sway/config.d/*
include ~/.config/sway/config.d/*