From f5a39e348ef136b4628f7fb89a79b8eea7125a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 17 Apr 2020 23:08:08 +0100 Subject: [PATCH] polybar crutch on ubuntu --- nixos/programs/zsh.nix | 2 ++ ubuntu/up.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/programs/zsh.nix b/nixos/programs/zsh.nix index 3d3cc778..a6703d2b 100644 --- a/nixos/programs/zsh.nix +++ b/nixos/programs/zsh.nix @@ -52,6 +52,8 @@ export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH" export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + pkill polybar + while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done polybar -r main_bar & echo "non-nixos patches loaded" fi diff --git a/ubuntu/up.sh b/ubuntu/up.sh index 646b7db3..6ba6e73b 100755 --- a/ubuntu/up.sh +++ b/ubuntu/up.sh @@ -5,7 +5,7 @@ set -v sudo apt update sudo apt -y upgrade -sudo apt -y --fix-missing install apt-file aptitude git curl flatpak +sudo apt -y --fix-missing install apt-file aptitude git curl flatpak i3 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo