move file order and use config.d/*

This commit is contained in:
Vladan Popovic 2022-04-08 12:03:02 +02:00
parent b7dd3c96e6
commit ad9675b244
5 changed files with 8 additions and 26 deletions

22
config
View File

@ -1,22 +1,2 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Idle configuration
#
# Example 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'
#
# 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.
include /etc/sway/config.d/*
include /var/home/vladan/.config/sway/config.d/*
include ~/.config/sway/config.d/*

View File

@ -6,9 +6,11 @@
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
#
output DP-1 bg /home/vladan/.config/sway/bkg2.jpg fill
output DP-1 bg ~/.config/sway/bkg2.jpg fill
output DP-1 scale 1.2 res 3840x2160 pos 0 0
output DP-2 bg /home/vladan/.config/sway/bkg2.jpg fill
output DP-2 bg ~/.config/sway/bkg2.jpg fill
output DP-2 scale 1.2 res 3840x2160 pos 0 0
output eDP-1 bg /home/vladan/.config/sway/bkg.jpg fill
output HDMI-A-1 bg ~/.config/sway/bkg2.jpg fill
output HDMI-A-1 scale 1.2 res 3840x2160 pos 0 0
output eDP-1 bg ~/.config/sway/bkg.jpg fill
output eDP-1 scale 1.0 res 1920x1080 pos 640 1800

View File

@ -118,7 +118,7 @@
# Take full screen screenshot with PrtScr
bindsym Print exec grim -t png /tmp/screen.png
# Take area screenshot with Shift+PrtScr
bindsym Shift+Print exec grim -g "$(slurp)" /var/home/vladan/Pictures/screen.png
bindsym Shift+Print exec grim -g "$(slurp)" /home/vladan/Pictures/screen.png
#
# Resizing containers:

View File

@ -1,3 +1,3 @@
exec "~/.config/sway/bin/keyboard-layout-per-window.py"
exec "systemctl --user import-environment ; systemctl --user start sway-session.target"
exec "systemctl --user start sway-session.target"
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway