From 64f39e2fdcb35ed15e575a8a6196a234f9e669fd Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 24 May 2025 12:44:02 -0700 Subject: [PATCH] curve: update monitor script --- .gitignore | 3 +++ home/profiles/cli/default.nix | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 9b421064..bb545f1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ .direnv/ +.direnv/* +.direnv/** +.envrc diff --git a/home/profiles/cli/default.nix b/home/profiles/cli/default.nix index 1eb69b43..629504b5 100644 --- a/home/profiles/cli/default.nix +++ b/home/profiles/cli/default.nix @@ -62,6 +62,7 @@ pandoc taskwarrior-tui vimwiki-cli + zk (pkgs.writeScriptBin "jq-repl" '' #!/usr/bin/env bash @@ -95,10 +96,15 @@ # Turn it on if it was off xrandr --output HDMI-2 --auto xrandr --output HDMI-2 --same-as eDP-1 + xrandr --output eDP-1 --off + pkill -9 polybar + feh --bg-scale ~/Downloads/stephen-walker-onIXxjH56AA-unsplash.jpg + polybar mybar > $XDG_DATA_HOME/polybar.log 2>&1 & } disconnect() { xrandr --output HDMI-2 --off + xrandr --output eDP-1 --auto } xrandr | grep "HDMI-2 connected" &>>/dev/null && connect || disconnect