AymanLyesri / hyprland-conf

An intensively worked on, and highly customized personal linux config
143 stars 8 forks source link

Nothing displayed and errors with zsh #28

Closed tlg-tg closed 1 month ago

tlg-tg commented 1 month ago

There is nothing except blank on display in terminal there are errors image

MacaylaMarvelous81 commented 1 month ago

You're missing packages; see the error output. For example, you don't have starship or fastfetch.

tlg-tg commented 1 month ago

Ok but another problem is that the display has no wallpaper or bar or widgets

MacaylaMarvelous81 commented 1 month ago

I remember having that issue but I don't exactly remember how I solved it. The hyprland configuration may have errors and you may be still missing things. Do you have bun? It might also help you find errors if you check the output when you run Hyprland in the terminal emulator or check its logs.

AymanLyesri commented 1 month ago

did u follow the installation guide perhaps? see here

  1. clone the repository (last commit)
  2. run the install script --> it will install all the packages (eg: starship, fastfetch etc...)
AymanLyesri commented 1 month ago

if u followed the installation and got errors let me know am happy to help

tlg-tg commented 1 month ago

I did follow the steps and it did not work

tlg-tg commented 1 month ago

Here is the output after runnung the script image

tlg-tg commented 1 month ago

Here is how it looks after reboot image

tlg-tg commented 1 month ago

Ok so the script does not install almost any of the packages and ags just does not want to get installed there is also a missing dir .cache/wal/sequences

tlg-tg commented 1 month ago

``(com.github.Aylur.ags:9974): Gjs-CRITICAL *: 21:19:07.498: JS ERROR: TypeError: section.get_file() is null applyCss/<@resource:///com/github/Aylur/ags/app.js:73:34 applyCss@resource:///com/github/Aylur/ags/app.js:81:29 refreshCss@file:///tmp/ags/main.js:1844:7 @file:///tmp/ags/main.js:1884:1 async_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34

(com.github.Aylur.ags:9974): Gjs-Console-CRITICAL *: 21:19:07.499: Gtk.CssProviderError: :1:0Expected a valid selector applyCss@resource:///com/github/Aylur/ags/app.js:81:29 refreshCss@file:///tmp/ags/main.js:1844:7 @file:///tmp/ags/main.js:1884:1 `async_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34`

this is the error thrown by ags

tlg-tg commented 1 month ago

got it working kind but still no wallpaper works for some reason could be that there is not a wallpaper setter program installed. Which one is supposed to be installed?

AymanLyesri commented 1 month ago

Ok so the script does not install almost any of the packages and ags just does not want to get installed there is also a missing dir .cache/wal/sequences

these sequences get generated each time the wallpaper changes when switching workspaces, make sure that hyprpaper and its scripts are working if not let me know

AymanLyesri commented 1 month ago

got it working kind but still no wallpaper works for some reason could be that there is not a wallpaper setter program installed. Which one is supposed to be installed?

its hyprpaper to test it: run hyprpaper in terminal then in a new terminal run : $HOME/.config/hypr/hyprpaper/load.sh

tlg-tg commented 1 month ago

Ok so it worked after I copied the wallpapers dir to /home/myuser but the ags wallpaper selector does not work

AymanLyesri commented 1 month ago

Ok so it worked after I copied the wallpapers dir to /home/myuser but the ags wallpaper selector does not work

the latest version of the dotfiles stores wallpapers in /home/myuser/.config/wallpapers so u are following an old version,

I've made a one line command u could just paste in ur terminal:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/AymanLyesri/hyprland-conf/refs/heads/master/.config/hypr/maintenance/INSTALL.sh)"

this will install everything, its been tested in a virtual machine so its guaranteed to work

tlg-tg commented 1 month ago

ok I used the command one problem that is still is that the wallpaper selector in ags is not working I select any wallpaper and then nothing happens

AymanLyesri commented 1 month ago

screenshots please, the more the better, oh btw u need a reboot after finishing the install using the one liner screenshot command : SUPER + SHIFT + s

tlg-tg commented 1 month ago

yes I did reboot

tlg-tg commented 1 month ago

2024-10-12-221740_hyprshot

AymanLyesri commented 1 month ago

When u click on one of the wallpapers a revealer should display at the bottom like so: image

tlg-tg commented 1 month ago

yes that it does and after I click on the lower image nothing happens

AymanLyesri commented 1 month ago

Click on the reset button image then do : SUPER + b to restart ags

tlg-tg commented 1 month ago

did that and nothing changes

AymanLyesri commented 1 month ago

in a new terminal do :

killall hyprpaper; hyprpaper

then click the reset button in wallpaper selector

if it dosent work, show me the output of

cat $HOME/.config/hypr/hyprpaper/config/defaults.conf 
tlg-tg commented 1 month ago
│ File: /home/tlg/.config/hypr/hyprpaper/config/defaults.conf

───────┼──────────────────────────────────────────────────────────────────────────────────────────────── 1 ~ │ w-1=$HOME/.config/wallpapers/normal/ayanami_rei_neon_genesis_evangelion_and_2_more_drawn_by_s │ wkl_d733a176b4dbed9c6f859924dfebb73f2.jpg 2 ~ │ w-2=$HOME/.config/wallpapers/normal/ayanami_rei_neon_genesis_evangelion_and_2_more_drawn_by_s │ wkl_d733a176b4dbed9c6f859924dfebb73f2.jpg 3 ~ │ w-3=$HOME/.config/wallpapers/normal/airi_kanna_stellive_drawn_by_cicei8207191a8e0c0d6d32016 │ 8a23bba15da.png 4 ~ │ w-4=$HOME/.config/wallpapers/normal/hoshimachi_suisei_hololive_drawn_by_fuann9238bd873fcf2d │ bfb59133fb4dae6cd4.jpg 5 ~ │ w-5=$HOME/.config/wallpapers/normal/herta_honkai_and_1_more_drawn_by_apple_caramel3ed780454 │ ec4e598c89e2b9920bc5c1c.jpg 6 ~ │ w-6=$HOME/.config/wallpapers/normal/kazusa_blue_archive_drawn_by_uaxa233482e1237f9fc8f67adc │ e6dc48061d54ad.jpg 7 ~ │ w-7=$HOME/.config/wallpapers/normal/kisaki_blue_archive_drawn_by_aoi_sakura_seak5545f6c90df │ 1f7da64b7591db4b59edd0657.jpg 8 ~ │ w-8=$HOME/.config/wallpapers/normal/kita_ikuyo_bocchi_the_rock_drawn_by_bafangyud72eb163096 │ c2eb4a544d362ed6603d8.jpg 9 ~ │ w-9=$HOME/.config/wallpapers/normal/shyrei_faolan_pepe_the_frog_vedal987_filian_and_rick_astl │ ey_indie_virtual_youtuber_drawn_by_haedgie19ca44fa28b99f7fcc265fa76a7840b5.jpg 10 ~ │ w-10=$HOME/.config/wallpapers/normal/lumine_genshin_impact_drawn_by_heitian_keji1f3aebacc1e │ f15d910b1c0b3619d9b22.jpg

tlg-tg commented 1 month ago

could it be an issue with set-wallpaper.sh? Here is the file `

!/bin/bash

hyprDir=$HOME/.config/hypr # hypr directory current_config=$hyprDir/hyprpaper/config/defaults.conf # config file previous_config=$hyprDir/hyprpaper/config/previous.conf # previous config file current_workspace=$(hyprctl monitors | grep active | awk '{print $3}') # get current workspace

new_wallpaper=""

#############################################

if [ -z "$1" ]; then echo "Usage: set-wallpaper.sh " workspace_id=$current_workspace else echo "Setting random wallpaper for workspace $1" workspace_id=$1 fi

check for $2

if [ -z "$2" ]; then echo "Setting random wallpaper for workspace $workspace_id" new_wallpaper=$(find $HOME/wallpapers/normal -type f | shuf -n 1 | sed "s|$HOME|\\$HOME|") # get random wallpaper else echo "Setting wallpaper $2 for workspace $workspace_id" new_wallpaper=$(echo $2 | sed "s|$HOME|\\$HOME|") # get wallpaper fi

#############################################

old_wallpaper=$(grep "w-${workspace_id}" $current_config | cut -d'=' -f2)

check if wallpaper is the same

if [ "$old_wallpaper" = "$new_wallpaper" ]; then echo "Wallpaper is already set to $new_wallpaper" exit 0 fi

hyprctl hyprpaper preload "$new_wallpaper" # preload wallpaper

hyprctl hyprpaper unload "$old_wallpaper" # unload old wallpaper

#############################################

if [ "$workspace_id" = "$current_workspace" ]; then $hyprDir/hyprpaper/w.sh "$new_wallpaper" & # set wallpaper fi

#############################################

sed -i "s|w-${workspace_id}=.*|w-${workspace_id}=${old_wallpaper}|" $previous_config # set wallpaper in previous config

sed -i "s|w-${workspace_id}=.*|w-${workspace_id}=${new_wallpaper}|" $current_config # set wallpaper in config

`

AymanLyesri commented 1 month ago

2024-10-12-221740_hyprshot

hmmm, i see u have different wallpapers, how did u changed them, is it from the wallpaper selector or from the config files

tlg-tg commented 1 month ago

from the wallpaper selector

AymanLyesri commented 1 month ago

so it worked before pheeww, good, now do in a new terminal

git restore .
git fetch --all
git reset --hard origin/master
reboot
tlg-tg commented 1 month ago

Now it does not display any wallpaper

tlg-tg commented 1 month ago

so the wallpaper switcher still is not working

tlg-tg commented 1 month ago

but when I run ./set-wallpaper.sh manualy trough cli it does work

AymanLyesri commented 1 month ago

i fixed a bug when switching to the same wallpaper twice, i don't know if that was the problem for u do a git pull and let me know

tlg-tg commented 1 month ago

ok did git pull still the same interesting could it be in set-wallpaper.sh problem?

tlg-tg commented 1 month ago

ok so now I rebooted and logged in and there is no wallpaper at all also tried to use wallpaper select and does nothing do I have to chose a specific number from the wallpapers?

AymanLyesri commented 1 month ago

Idk, it works for both my laptop, desktop and virtual machine, we need somebody else to confirm if this is a problem with the script or with ur config/machine

tlg-tg commented 1 month ago

I do see that in set-wallpaper.sh on line 22 $(find $HOME/wallpapers/normal instead of /.config/wallpapers could it be that?

AymanLyesri commented 1 month ago

Oh, I missed it, I've made a hotfix. git pull as always But don't get ur hopes up it only affects random wallpaper generation, which is not ur case with the wallpaper selector

tlg-tg commented 1 month ago

yeah I know just trying to help and maybe figure out the problem

tlg-tg commented 1 month ago

I see that every time I reboot and log in there is no wallpaper until I run ./set-wallpaper.sh very interesting

AymanLyesri commented 1 month ago

Hmmm maybe the problem is in the boot up scripts, I'll check it out tomorrow and let u know BTW I really appreciate ur feedback it means a lot

tlg-tg commented 1 month ago

Yeah no problem I love the work and trying to work on a fix too and improvements

tlg-tg commented 1 month ago

Also thanks for all the help

AymanLyesri commented 1 month ago

image this is the script that get executed at boot-up after hyprpaper

$HOME/.config/hypr/hyprpaper/load.sh

run it and see if there are any errors

tlg-tg commented 1 month ago

ok I just ran the script and everything shows ok

tlg-tg commented 1 month ago

oh and the new get-waifyu.py is not working as much as I tried

tlg-tg commented 1 month ago

Right now I am trying to install the rice onto my laptop to see if it works correctly trough the one line script will let you know

tlg-tg commented 1 month ago

so the one line script is not working for some reason like curl says there is error 404

tlg-tg commented 1 month ago

ok got it to work was a problem on my side

tlg-tg commented 1 month ago

ok after reboot the script does still not install any of the packages