Moved sway to --user service and other fixes
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>main
parent
15210b6e68
commit
f6bd12c582
@ -1,31 +1,17 @@
|
||||
[Unit]
|
||||
Description=sway - SirCmpwn's Wayland window manager
|
||||
Documentation=man:sway(5)
|
||||
BindsTo=graphical-session.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/chvt %I
|
||||
ExecStart=/usr/bin/dbus-launch --exit-with-session /usr/bin/sway
|
||||
TTYPath=/dev/tty%I
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
PAMName=login
|
||||
User=<user>
|
||||
WorkingDirectory=/home/<user>
|
||||
Environment=XDG_RUNTIME_DIR=/run/user/1000
|
||||
Environment=QT_WAYLAND_FORCE_DPI=100
|
||||
Environment=QT_PLUGIN_PATH=/usr/lib/kde4/plugins/
|
||||
Environment=QT_QPA_PLATFORM=wayland
|
||||
Environment=QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||
Environment=QT_QPA_PLATFORMTHEME=gtk3
|
||||
Environment=QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
||||
Environment=GDK_BACKEND=wayland
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
StandardInput=tty
|
||||
StandardError=journal
|
||||
StandardOutput=journal
|
||||
Nice=-5
|
||||
Type=simple
|
||||
EnvironmentFile=-%h/.config/sway/env
|
||||
ExecStart=/usr/bin/dbus-run-session /usr/bin/sway
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
TimeoutStopSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
Alias=display-manager.service
|
||||
WantedBy=default.target
|
||||
|
@ -1,19 +1 @@
|
||||
# Fix java on wayland
|
||||
_JAVA_AWT_WM_NONREPARENTING=1
|
||||
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||
|
||||
# Enable qt5 theming and wayland support
|
||||
QT_QPA_PLATFORMTHEME=qt5ct
|
||||
QT_QPA_PLATFORM=wayland-egl
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
|
||||
# Firefox
|
||||
MOZ_ENABLE_WAYLAND=1
|
||||
MOZ_USE_XINPUT2=1
|
||||
MOZ_WEBRENDER=1
|
||||
|
||||
# Fix redshift on wlroots
|
||||
WLR_DRM_NO_ATOMIC=1
|
||||
|
||||
# Use wayland in SDL2
|
||||
SDL_VIDEODRIVER=wayland
|
||||
XDG_SESSION_TYPE=wayland
|
||||
|
Loading…
Reference in New Issue