Skip to content
Snippets Groups Projects
Commit 0ce48b8c authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix XWayland dpi

parent 42104590
No related branches found
No related tags found
No related merge requests found
......@@ -40,3 +40,6 @@ xterm*foreground: lightgray
! terminal: dark background
XTerm.vt100.reverseVideo: true
! XWayland DPI Fix
Xft.dpi: 96
......@@ -67,6 +67,9 @@ exec CM_SELECTIONS=clipboard clipmenud
#exec nm-applet --indicator
exec redshift -m wayland
# Fix XWayland DPI
exec xrdb -load ~/.Xresources
# Share wayland socket with other users
# This should allocate a free socket instead
# Also requires passwordless sudo, so it's currently disabled
......
......@@ -73,10 +73,8 @@ in
};
programs.sway.enable = true;
programs.sway.extraPackages = with pkgs; [ swaylock swayidle xwayland kitty cool-retro-term ];
programs.sway.extraPackages = with pkgs; [ swaylock swayidle xwayland kitty cool-retro-term xorg.xrdb ];
# QT_QPA_PLATFORM=wayland requires qt5.qtwayland in systemPackages
programs.sway.extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
......@@ -84,9 +82,9 @@ export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
'';
environment.loginShellInit = ''
# start sway when logging in on tty1
if [ "$USER" = jens ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] && [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
exec sway &> /run/user/$UID/sway_log
fi
# start sway when logging in on tty1
if [ "$USER" = jens ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] && [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
exec sway &> /run/user/$UID/sway_log
fi
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment