Closed armenr closed 1 month ago
Thanks for testing. I can test adding systemctl --user start xdg-desktop-portal-gtk.service to the autostart.conf as default.
You can try to add this command to your custom.conf with exec-once = systemctl --user start xdg-desktop-portal-gtk.service
Weirdly, this seems to have fixed it -->
Putting the monitor config at the very, very top, before anything else. Then the bindings for my laptop lid behaviors, then everything else.
WayBar now loads correctly on every single login...
# Add your additional Hyprland configurations here
#
# This is an additional key binding
# bind = $mainMod CTRL, up, workspace, empty
#
# Example for xwayland
# xwayland {
# force_zero_scaling = true
# }
# Workaround for Gnome + Vulkan b0rkness
# ref: https://gitlab.gnome.org/GNOME/gtk/-/issues/7022
# ref: https://github.com/hyprwm/Hyprland/issues/7854
env=GSK_RENDERER,ngl
# qt5ct environment variable
# env = QT_QPA_PLATFORMTHEME,qt5ct
# SDL version
env = SDL_VIDEODRIVER,wayland
# env = SDL_VIDEODRIVER,x11
# No Hardware Cursor
# cursor {
# no_hardware_cursors = false
# }
##########################
# Display Configurations #
##########################
#monitor=eDP-1,3072x1920@120,0x0,1.5
#monitor=DP-1,5120x1440@240,3072x0,1
# Samsung OLED 49"
#monitor=desc:Samsung Electric Company Odyssey G93SC HNTW900044,5120x1440@240.0,0x0,1.0
# Lenovo Internal Display
#monitor=desc:Lenovo Group Limited 0x8AAF,3072x1920@120.0,5120x0,1.333333
monitor=desc:Lenovo Group Limited 0x8AAF,3072x1920@120.0,5120x0,1.333333
# Shitty OEM 32" Curved
#monitor=desc:Beihai Century Joint Innovation Technology Co.Ltd 32C1R 0000000000000,1920x1080@120.0,8192x0,1.0ss
#########################
# Laptop Lid behaviors #
#########################
# Safely laptop display when lid is closed
bindl = , switch:on:Lid Switch, exec, /home/x3r0/.config/hypr/custom-scripts/manage_display.sh closed
# Safely enable laptop display when lid is opened
bindl = , switch:off:Lid Switch, exec, /home/x3r0/.config/hypr/custom-scripts/manage_display.sh opened
#########################
# Clipboard Sync #
#########################
exec-once = /usr/local/bin/clipsync watch without-notifications
#################################
# Graceful NordVPN Auto-Connect #
#################################
exec-once = /home/x3r0/.config/hypr/custom-scripts/autoconnect_nord.sh
Great. Thanks for testing. I will implement this as default in the next release.
Just to clarify, I ended up not adding an exec-once or changing anything.
In my case, it just seems like putting the Display Configurations
bit before anything else seems to have solved it.
Everything works (and looks) great now 🚀
Describe the bug When logging into my desktop environment, WayBar does not appear to start successfully.
BUT, if I immediately open a terminal and run
systemctl --user start xdg-desktop-portal-gtk.service
, WayBar suddenly loads without any other intervention (I don't need to runlaunch.sh
or anything)This seems to happen sporadically, and I find it happens more consistently when my laptop is not plugged into a power source (when it runs on battery power, and without an external display connected).
To Reproduce Steps to reproduce the behavior:
systemctl --user start xdg-desktop-portal-gtk.service
Expected behavior WayBar loads normally when logging in.
Distribution (please complete the following information):