From 32fa7aff42299418ad77f9885769b75d0eeeac3a Mon Sep 17 00:00:00 2001 From: hesam-init Date: Mon, 12 Feb 2024 18:56:49 +0330 Subject: [PATCH] fix: auto start and window rules --- hyprland/.config/hypr/conf/autostart.conf | 4 ++-- hyprland/.config/hypr/conf/windowrules/default.conf | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hyprland/.config/hypr/conf/autostart.conf b/hyprland/.config/hypr/conf/autostart.conf index 38674ee..47af094 100644 --- a/hyprland/.config/hypr/conf/autostart.conf +++ b/hyprland/.config/hypr/conf/autostart.conf @@ -14,8 +14,8 @@ exec-once = swaybg -i ~/Wallpapers/macos.png & # exec-once = swww init; swww kill; swww init # idk why tbh # status bar : -exec-once = $scr_path/dunst-launch.sh -exec-once = $scr_path/waybar-launch.sh +exec-once = sleep 1 && $scr_path/waybar-launch.sh & +exec-once = sleep 1 && $scr_path/dunst-launch.sh & # exec-once = eww daemon && eww open bar # exec-once = swayidle -w timeout 300 'gtklock' before-sleep 'gtklock' & # exec-once = swayidle -w timeout 450 'pidof java || systemctl suspend' & # dont sleep if playing minecraft, else nvidia will fuck up diff --git a/hyprland/.config/hypr/conf/windowrules/default.conf b/hyprland/.config/hypr/conf/windowrules/default.conf index 70739a2..7ef6b00 100644 --- a/hyprland/.config/hypr/conf/windowrules/default.conf +++ b/hyprland/.config/hypr/conf/windowrules/default.conf @@ -3,9 +3,13 @@ # ----------------------------------------------------- windowrulev2 = bordercolor rgb(FF0000) rgb(880808) 15deg,fullscreen:1 -windowrulev2= float,class:^(org.telegram.desktop|telegramdesktop)$,title:^(Media viewer)$ +windowrulev2= float,class:^(org.telegram.desktop|telegramdesktop)$,title:^(Media viewer|.*steam.*)$ windowrulev2= animation popin,class:^(org.telegram.desktop|telegramdesktop)$ windowrulev2 = float,class:^(pavucontrol|wlogout|dunst|Dunst|org.kde.polkit-kde-authentication-agent-1)$ windowrulev2 = animation popin,class:^(alacritty|Alacritty|pavucontrol|org.kde.polkit-kde-authentication-agent-1)$ +# apps workspace : +windowrulev2 = workspace 3,class:^(nekoray|Nekoray)$ +windowrulev2 = workspace 4,class:^(org.telegram.desktop|telegramdesktop|discord)$ +windowrulev2 = workspace 5,class:^(.*steam.*)$ \ No newline at end of file