Compare commits
2 commits
4254d75eae
...
d9704edfe8
| Author | SHA1 | Date | |
|---|---|---|---|
| d9704edfe8 | |||
| 7a0b44cb74 |
5 changed files with 27 additions and 3 deletions
|
|
@ -7,3 +7,7 @@ profile dock {
|
|||
profile default {
|
||||
output eDP-1 enable scale 1.25
|
||||
}
|
||||
|
||||
profile Desktop {
|
||||
output 'Dell Inc. DELL U2718Q FN84K9B408AL' mode 3840x2160 position 0,0 scale 1.25
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ include ~/.config/sway/config.d/*
|
|||
# output eDP-1 scale 1.5
|
||||
# output * scale 1.25
|
||||
|
||||
# enable automatic display arrangements
|
||||
exec kanshi
|
||||
|
||||
# notification daemon
|
||||
exec mako
|
||||
|
||||
|
|
@ -149,3 +146,9 @@ client.focused_inactive #000000 #000000 #c6d0f5 #ea999c #232634
|
|||
client.unfocused #000000 #000000 #c6d0f5 #ea999c #232634
|
||||
|
||||
floating_modifier $mod
|
||||
|
||||
exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target"
|
||||
exec swaymsg -t subscribe '["shutdown"]' && systemctl --user stop sway-session.target
|
||||
|
||||
# enable automatic display arrangements
|
||||
exec_always "systemctl --user restart kanshi.service"
|
||||
|
|
|
|||
10
.config/systemd/user/kanshi.service
Normal file
10
.config/systemd/user/kanshi.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Start kanshi display service
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/kanshi
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
||||
6
.config/systemd/user/sway-session.target
Normal file
6
.config/systemd/user/sway-session.target
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=sway compositor session
|
||||
Documentation=man:systemd.special(7)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
1
.config/systemd/user/sway-session.target.wants/kanshi.service
Symbolic link
1
.config/systemd/user/sway-session.target.wants/kanshi.service
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
/home/lennartalff/.config/systemd/user/kanshi.service
|
||||
Loading…
Reference in a new issue