diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-12 01:36:12 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-12 01:36:12 +0900 |
| commit | f3f55304bd8e7949915cd8a1d8000509bbeea186 (patch) | |
| tree | bcdcd0c9d4c4c813d1caf0450bbcfa1fe01c841f /copy.sh | |
| parent | fd1e346b17e6dc798957d32b5fb8b5b564eb0e9d (diff) | |
ok kinda like revert
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -115,6 +115,13 @@ if hostnamectl | grep -q 'Operating System: NixOS'; then sed -i '/^exec-once = \$scriptsDir\/Polkit\.sh$/ s/^#*/#/' config/hypr/UserConfigs/Startup_Apps.conf fi +# to check if Debian or Ubuntu or based distros +if grep -iq '^\(ID_LIKE\|ID\)=.*\(debian\|ubuntu\)' /etc/os-release >/dev/null 2>&1; then + echo "${INFO} Debian/Ubuntu based distro. Disabling pyprland since it does not work properly" 2>&1 | tee -a "$LOG" || true + # disabling pyprland as causing issues + sed -i '/^\s*exec-once = pypr &\s*/ s/^/#/' config/hypr/UserConfigs/Startup_Apps.conf +fi + # activating hyprcursor on env by checking if the directory ~/.icons/Bibata-Modern-Ice/hyprcursors exists if [ -d "$HOME/.icons/Bibata-Modern-Ice/hyprcursors" ]; then HYPRCURSOR_ENV_FILE="config/hypr/UserConfigs/ENVariables.conf" @@ -677,7 +684,7 @@ if [ -d "$BACKUP_HYPR_PATH" ]; then done # Restore files automatically - FILE_B=("monitors.conf" "workspaces.conf") + FILE_B=("monitors.conf" "workspaces.conf" "pyprland.toml") for FILE_RESTORE in "${FILE_B[@]}"; do BACKUP_FILE="$BACKUP_HYPR_PATH/$FILE_RESTORE" |
