From 67ff5b5f9ff152a9808511726fa40ef0d2c98f00 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Thu, 18 Jul 2024 12:52:15 +0330 Subject: [PATCH] refactor: setup script --- hypr-configs/hyprland/hypr/configs/rules/windows.conf | 5 ++++- setup.sh | 8 ++++---- stow.sh | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/hypr-configs/hyprland/hypr/configs/rules/windows.conf b/hypr-configs/hyprland/hypr/configs/rules/windows.conf index f88fdd7..095c76a 100644 --- a/hypr-configs/hyprland/hypr/configs/rules/windows.conf +++ b/hypr-configs/hyprland/hypr/configs/rules/windows.conf @@ -9,7 +9,10 @@ windowrulev2 = animation popin,class:^(alacritty|Alacritty|pavucontrol|org.kde.p windowrulev2 = float,class:^(nemo|pavucontrol|wlogout|dunst|Dunst|org.kde.polkit-kde-authentication-agent-1)$ windowrulev2 = size 65%,class:^(nemo)$ windowrulev2 = center,class:^(nemo)$ -windowrulev2 = stayfocused, title:^()$,class:^(rofi)$ + +# default rofi rules: +windowrulev2 = stayfocused, class:^(Rofi)$ +windowrulev2 = float, class:^(Rofi)$ # bluetooth managers rules : windowrulev2 = float, class:^(blueman-manager)$ diff --git a/setup.sh b/setup.sh index 92e5797..0b34566 100755 --- a/setup.sh +++ b/setup.sh @@ -1,15 +1,15 @@ #!/bin/bash -source ./.scripts/utils/init.sh +source .scripts/utils/init.sh UPDATE_PKGS=false CLEAR_CACHE=false DISABLE_GRUB_MENU=false -TTF_FONTS_DIR="./host/ui/fonts/TTF" +TTF_FONTS_DIR="host/ui/fonts/TTF" display_help() { - echo "Usage: [-i | -f] [-h]" - echo " -i Full install" + echo "Usage: [-s | -f] [-h]" + echo " -s Full install" echo " -f Install host fonts" } diff --git a/stow.sh b/stow.sh index fb8c1e2..26a6610 100755 --- a/stow.sh +++ b/stow.sh @@ -1,7 +1,7 @@ #!/bin/bash -source ./.scripts/utils/init.sh -source ./.scripts/utils/_links.sh +source .scripts/utils/init.sh +source .scripts/utils/_links.sh DOTS_CONFIG_DIR="$(pwd)/linux-configs" DOTFILES_DIR="$DOTS_CONFIG_DIR/dotfiles"