Cleaning up sway config a bit

This commit is contained in:
Siina Mashek 2023-12-07 01:05:51 +02:00
parent fee76bb01c
commit aea96ad9c2

View File

@ -1,9 +1,3 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables ### Variables
# #
# Logo key. Use Mod1 for Alt. # Logo key. Use Mod1 for Alt.
@ -19,7 +13,6 @@ set $term alacritty
# Note: pass the final command to swaymsg so that the resulting window can be opened # 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. # on the original workspace that the command was run on.
set $menu bemenu-run -p "" | xargs swaymsg exec -- set $menu bemenu-run -p "" | xargs swaymsg exec --
### Output configuration ### Output configuration
# #
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
@ -32,34 +25,6 @@ set $menu bemenu-run -p "" | xargs swaymsg exec --
# You can get the names of your outputs by running: swaymsg -t get_outputs # You can get the names of your outputs by running: swaymsg -t get_outputs
output DP-3 resolution 1920x1080 pos 0 540 adaptive_sync on output DP-3 resolution 1920x1080 pos 0 540 adaptive_sync on
output HDMI-A-1 resolution 1920x1080 pos 1920 0 transform 90 adaptive_sync on output HDMI-A-1 resolution 1920x1080 pos 1920 0 transform 90 adaptive_sync on
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings ### Key bindings
# #
# Basics: # Basics:
@ -239,5 +204,5 @@ bar {
include /etc/sway/config.d/* include /etc/sway/config.d/*
include /home/siina/.config/sway/config.d/* include /home/siina/.config/sway/config.d/*
### Screen sharing fix ### Screencast fix
exec --no-startup-id dbus-update-activation-environment --all exec --no-startup-id dbus-update-activation-environment --all