Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
dotfiles
Commits
0ce48b8c
Commit
0ce48b8c
authored
5 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Fix XWayland dpi
parent
42104590
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
home-profiles/desktop/.Xresources
+3
-0
3 additions, 0 deletions
home-profiles/desktop/.Xresources
home-profiles/desktop/.config/sway/config
+3
-0
3 additions, 0 deletions
home-profiles/desktop/.config/sway/config
nixos/layers/desktop.nix
+5
-7
5 additions, 7 deletions
nixos/layers/desktop.nix
with
11 additions
and
7 deletions
home-profiles/desktop/.Xresources
+
3
−
0
View file @
0ce48b8c
...
...
@@ -40,3 +40,6 @@ xterm*foreground: lightgray
! terminal: dark background
XTerm.vt100.reverseVideo: true
! XWayland DPI Fix
Xft.dpi: 96
This diff is collapsed.
Click to expand it.
home-profiles/desktop/.config/sway/config
+
3
−
0
View file @
0ce48b8c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
nixos/layers/desktop.nix
+
5
−
7
View file @
0ce48b8c
...
...
@@ -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
''
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment