Please read the following before submitting:
- Please do NOT submit bug reports for questions. Ask questions on IRC at #sway on Libera Chat.
- Proprietary graphics drivers, including nvidia, are not supported. Please use the open source equivalents, such as nouveau, if you would like to use Sway.
- Please do NOT submit issues for information from the github wiki. The github wiki is community maintained and therefore may contain outdated information, scripts that don't work or obsolete workarounds.
If you fix a script or find outdated information, don't hesitate to adjust the wiki page.
Please fill out the following:
### Output configuration
#
# 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
# Default wallpaper
output * bg $background fill
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
set $term_float footclient -a floating_shell
set $term_float_portrait footclient -a floating_shell_portrait
# Your preferred application launcher
set $menu wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions
# Add --to-code to bindsym, support for non-latin layouts
set $bindsym bindsym --to-code
# background
set $background /usr/share/backgrounds/ubuntusway/jammy-ubuntusway_1920x1080.png
# Onscreen bar (WOB)
set $onscreen_bar bash /usr/share/sway/scripts/wob.sh "$accent-colorFF" "$background-colorFF"
# brightness control
set $brightness_step bash -c 'echo $(( $(light -Mr) / 100 * 5 < 1 ? 1 : $(( $(light -Mr) / 100 * 5 )) ))'
set $brightness_up light -r -A $($brightness_step) && $onscreen_bar $(light -G | cut -d'.' -f1)
set $brightness_down light -r -U $($brightness_step) && $onscreen_bar $(light -G | cut -d'.' -f1)
# Volume controll
set $volume_down pulsemixer --change-volume -5 && $onscreen_bar $(pulsemixer --get-volume)
set $volume_up pulsemixer --change-volume +5 && $onscreen_bar $(pulsemixer --get-volume)
set $volume_mute pulsemixer --toggle-mute && $(pulsemixer --get-volume)
# Pulseaudo command
set $pulseaudio $term_float pulsemixer
# calendar application
set $calendar $term_float khal interactive
# workspace names
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 number 10
# screenshot
set $grimshot /usr/share/sway/scripts/grimshot
set $screenshot_screen_clipboard $grimshot --notify copy output
set $screenshot_screen_file $grimshot --notify save output
set $screenshot_selection_clipboard $grimshot --notify copy window
set $screenshot_selection_file $grimshot --notify save window
set $screenshot_selection_active $grimshot --notify save active
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
# Styles
set $theme /usr/share/sway/themes/yaru-sway
# theme variables
include $theme/variables
# Global variables
include /etc/sway/variables
# User variables
include $HOME/.config/sway/variables.d/*.conf
include /etc/sway/outputs/*
include /etc/sway/inputs/*
# include modes
include /etc/sway/modes/*
# Additional configs
include /etc/sway/config.d/*
# User config
include $HOME/.config/sway/config.d/*.conf
-
Stack Trace:
- This is only needed if sway crashes.
- If you use systemd, you should be able to open the coredump of the most recent crash with gdb with
coredumpctl gdb sway and then bt full to obtain the stack trace.
- If the lines mentioning sway or wlroots have
?? for the location, your binaries were built without debug symbols. Please compile both sway and wlroots from source and try to reproduce.
-
Description:
After starting Sway it gives an error with my default screen config. It read's first line as a parameter, and if I open config in Nano, en push backspace button in the beginning of first line, then after restarting Sway - error is gone
Please read the following before submitting:
If you fix a script or find outdated information, don't hesitate to adjust the wiki page.
Please fill out the following:
Sway Version: 1.7
Debug Log:
https://pastebin.com/6qsf2kLP
Configuration File:
cat /etc/sway/outputs/default-screen cat ~/.config/sway/configcat /etc/sway/variablesStack Trace:
coredumpctl gdb swayand thenbt fullto obtain the stack trace.??for the location, your binaries were built without debug symbols. Please compile both sway and wlroots from source and try to reproduce.Description:
After starting Sway it gives an error with my default screen config. It read's first line as a parameter, and if I open config in Nano, en push
backspacebutton in the beginning of first line, then after restarting Sway - error is gone