SolDoesTech / hyprland

collection of dot config files for hyprland with a simple install script for a fresh Arch linux with yay
444 stars 148 forks source link

Default background image does not load at startup #4

Closed Virgula0 closed 1 year ago

Virgula0 commented 1 year ago

When I log in my acconut a black screen is shown as background, in order to show the background correctly I have every time to switch from V[1-3] back to my V[1-3] by clicking the button.

Any suggestion for this error?

                  .o+`                   ----------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: 21CF000BUS ThinkPad T 
               `+oooooo:                 Kernel: 6.3.2-arch1-1 
               -+oooooo+:                Uptime: 1 hour 
             `/:-:++oooo+:               Packages: 645 (pacman) 
            `/++++/+++++++:              Shell: bash 5.1.16 
           `/++++++++++++++:             Resolution: 1920x1200 
          `/+++ooooooooooooo/`           DE: Hyprland 
         ./ooosssso++osssssso+`          Theme: Adwaita [GTK2], Adwa 
        .oossssso-````/ossssss+`         Icons: Adwaita [GTK2], Adwa 
       -osssssso.      :ssssssso.        Terminal: kitty 
      :osssssss/        osssso+++.       CPU: AMD Ryzen 5 PRO 6650U  
     /ossssssss/        +ssssooo/-       GPU: AMD ATI Radeon 680M 
   `/ossssso+/:-        -:/+osssso+-     Memory: 2639MiB / 14746MiB 
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/                           
 .`                                 `/                           
SolDoesTech commented 1 year ago

Hello, on the V4 I seen that bug myself but it only happens once right after the install and once the theme is switched from dark to light it would not happen again (in my experience at least). Have you considered giving V4 a try?

Virgula0 commented 1 year ago

Hi, thanks for your reply. It do not happens always but only sometimes when I boot arch. I'd like to know if I need to do a fresh install to update to V4 or if I only need to update hyperland config from V4 repo. Also, I have the doubt to have already installed a more recent version which is V3 probably (so not this repo where I opened the issue), since I deleted the repo locally I don't remember exactly which version I ran. Is there a chance to check which version of your script I have installed? P.s: weather stats are also broken on this version. This is my config which I modified a little in order to add a resize and full size of windows from keyboard, maybe it can help you to understand which version of the script I ran.

# Setup monitors
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto

# Dual monitor example on G15 Strix
# eDP-1 is the built in monitor while DP-1 is external
# Both monitors here are at 1440 and 165Hz
# DP-1 is on the left and  eDP-1 is on the right
#monitor=DP-1,2560x1440@165,0x0,1
#monitor=eDP-1,2560x1440@165,2560x0,1.25

# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
exec-once = ~/.config/hypr/xdg-portal-hyprland
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = waybar
exec-once = mako
exec-once = swww init
exec-once = blueman-applet
exec-once = nm-applet --indicator
exec-once = ~/.config/HyprV/hyprv_util setbg

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 10
    border_size = 2
    #col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.active_border=rgb(cdd6f4)
    col.inactive_border = rgba(595959aa)

    layout = dwindle
}

misc {
    disable_hyprland_logo = yes
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 5
    blur = yes
    blur_size = 7
    blur_passes = 4
    blur_new_optimizations = on

    blurls = lockscreen

    drop_shadow = yes
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

animations {
    enabled = yes

    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
    bezier = myBezier, 0.10, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier, slide
    animation = windowsOut, 1, 7, myBezier, slide
    animation = border, 1, 10, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
    new_is_master = true
}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = off
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic mouse V1 {
    sensitivity = -0.5
}

# Example windowrule v1
#windowrule = float, ^(kitty)$
windowrule = float,^(pavucontrol)$
windowrule = float,^(blueman-manager)$
windowrule = float,^(nm-connection-editor)$
windowrule = float,^(chromium)$
windowrule = float,^(thunar)$
windowrule = float, title:^(btop)$
windowrule = float, title:^(update-sys)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# rules below would make the specific app transparent
windowrulev2 = opacity 0.8 0.8,class:^(kitty)$
windowrulev2 = animation popin,class:^(kitty)$,title:^(update-sys)$
windowrulev2 = animation popin,class:^(thunar)$
windowrulev2 = opacity 0.8 0.8,class:^(thunar)$
windowrulev2 = opacity 0.8 0.8,class:^(VSCodium)$
windowrulev2 = animation popin,class:^(chromium)$
windowrulev2 = move cursor -3% -105%,class:^(wofi)$
windowrulev2 = noanim,class:^(wofi)$

# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, kitty  #open the terminal
bind = $mainMod, F4, killactive, # close the active window
bind = $mainMod, L, exec, swaylock # Lock the screen
bind = $mainMod, M, exec, wlogout --protocol layer-shell # show the logout window
bind = $mainMod SHIFT, M, exit, # Exit Hyprland all together no (force quit Hyprland)
bind = $mainMod, E, exec, thunar # Show the graphical file browser
bind = $mainMod, V, togglefloating, # Allow a window to float
bind = $mainMod, SPACE, exec, wofi # Show the graphical app launcher
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, S, exec, grim -t jpeg -q 10 -g "$(slurp)" - | swappy -f - # take a screenshot

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
source = ~/.config/hypr/media-binds.conf
source = ~/.config/hypr/rog-g15-strix-2021-binds.conf
SolDoesTech commented 1 year ago

Hello, you can use the set_hypr script to install V4 on top of V3 and it shouldn't be an issue. The "V" icon in the bar would tell you the version you are on and since V3 is the highest you can switch to then its most likely V3, also looking at the posted hyprland.conf it appears you are on V3. During the install of V4 your config files would be overwritten. The script would attempt to back them up for you but I still recommend you have your own backup just in case. Please let me know how the upgrade to V4 went and if it resolved the issue. Thank you.

Virgula0 commented 1 year ago

Ok so I can run ./set_hypr from ~ and since all other tools are installed I can skip directly to the copy config section if I am right

SolDoesTech commented 1 year ago

correct, clone the HyprV4 repo and execute the ./set_hypr and you can tell it to install packages if you like it would make sure everything needed is installed and whatever is already installed it would skip. Before you do that you can take a look at the top of the script, the packages that are going to be reviewed and installed are listed. Once the install is complete you can tell the script to copy the config, it should attempt to backup your existing config.

Virgula0 commented 1 year ago

I updated to V4 and everything seems to work fine, I'll update here if the bug shows up again but until now it seems fine. Now I can delete hypr-back right? Also, would you consider to add some useful config to hyprland.conf such as:

# Full screen the current window
bind =  $mainMod, F ,fullscreen 

# Resize windows from terminal
bind = $mainMod SHIFT, right, resizeactive, 10 0
bind = $mainMod SHIFT, left, resizeactive, -10 0
bind = $mainMod SHIFT, up, resizeactive, 0 -10
bind = $mainMod SHIFT, down, resizeactive, 0 10

I can make a PR on V4 if you want.

Virgula0 commented 1 year ago

However, weather conditions seems to be still broken indicating a temperature of 77 celsius degree

SolDoesTech commented 1 year ago

Can you please provide details to where you see that? Is it the icon on the waybar or is it after you hover and get the tooltip?

Virgula0 commented 1 year ago

Both:

image

Also, I noticed that the bug of the wallpaper happens when there is no internet connection at login. I'll do better checks.

SolDoesTech commented 1 year ago

Please edit the following file: ~/.config/HyprV/hyprv.conf and set/confirm the following: SET_MESU="M" if you had to change the conf file then you will need to switch from light o dark theme to see the change apply.

Virgula0 commented 1 year ago

Thanks, weather stats seems to be fine now. For now I think it's enough, going to close the issue.