Compare commits

...

2 commits

2 changed files with 4 additions and 1 deletions

View file

@ -163,7 +163,7 @@ in
rofi-wayland rofi-wayland
]; ];
wayland.windowManager.hyprland.settings.exec-once = [ wayland.windowManager.hyprland.settings.exec-once = [
"sleep 2 && waybar" "sleep 5 && waybar"
"wl-paste --watch cliphist store" "wl-paste --watch cliphist store"
]; ];
programs.waybar = { programs.waybar = {

View file

@ -7,6 +7,9 @@
let let
cfg = config.profile.slack; cfg = config.profile.slack;
autostartScript = pkgs.writeShellScriptBin "slack.sh" '' autostartScript = pkgs.writeShellScriptBin "slack.sh" ''
# do not autostart on weekend
if [ "$(date +%u)" -gt 5 ]; then exit 0; fi
sleep 10; until ${pkgs.unixtools.ping}/bin/ping -c 1 1.1.1.1; do sleep 1; done; slack sleep 10; until ${pkgs.unixtools.ping}/bin/ping -c 1 1.1.1.1; do sleep 1; done; slack
''; '';
inherit (lib.meta) getExe; inherit (lib.meta) getExe;