Skip to content

Instantly share code, notes, and snippets.

@threddast
Created March 28, 2023 07:33
Show Gist options
  • Save threddast/1e4c94adc79e09c2649a43ccb38f8008 to your computer and use it in GitHub Desktop.
Save threddast/1e4c94adc79e09c2649a43ccb38f8008 to your computer and use it in GitHub Desktop.
Launch Hyprland with correct environment variables from Guix
#!/bin/sh
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM="wayland;xcb"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt5ct
export SHELL=fish
export TERM=kitty
#export EDITOR='emacsclient -nw'
#export VISUAL='emacsclient -c'
export BROWSER=firefox
export MOZ_ENABLE_WAYLAND=1
export _JAVA_AWT_WM_NONREPARENTING=1
export CLUTTER_BACKEND=wayland
#export GDK_BACKEND=wayland
# To add nix packages to the path
source '/run/current-system/profile/etc/profile.d/nix.sh'
export PATH="/home/egiorgis/.config/hypr/scripts/:/home/egiorgis/.config/emacs/bin:/home/egiorgis/.local/bin:$PATH"
exec Hyprland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment