hm/graphical-client: set up session vars

This commit is contained in:
Luke Granger-Brown 2020-11-08 15:49:12 +00:00
parent eefb417d14
commit f2c8e2d3bf

View file

@ -35,6 +35,16 @@
import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in
''; '';
}; };
home.file.".xprofile".text = ''
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
if [ -e "$HOME/.profile" ]; then
. "$HOME/.profile"
fi
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_DATA_DIRS XDG_RUNTIME_DIR XDG_SESSION_ID
systemctl --user restart ssh-agent
'';
xsession.windowManager.i3 = { xsession.windowManager.i3 = {
enable = true; enable = true;