From 10fe13048c3691485e928071819b69ec666c85db Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Fri, 15 Mar 2024 19:40:10 +0100 Subject: [PATCH] Document new way of specifying the monitor --- README.md | 6 +++++- src/gBar.cpp | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e120f3e..69fa010 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,11 @@ home-manager.users.user = { ``` ## Running gBar -*Open bar on monitor 0* +*Open bar on monitor "DP-1" +``` +gBar bar DP-1 +``` +*Open bar on monitor 0 (Legacy way of specifying the monitor)* ``` gBar bar 0 ``` diff --git a/src/gBar.cpp b/src/gBar.cpp index ddeca96..6dda94d 100644 --- a/src/gBar.cpp +++ b/src/gBar.cpp @@ -55,8 +55,9 @@ void PrintHelp() "\tgBar [OPTIONS...] WIDGET [MONITOR]\n" "\n" "Sample usage:\n" - "\tgBar bar 0 \tOpens the status bar on monitor 0\n" - "\tgBar audio \tOpens the audio flyin on the current monitor\n" + "\tgBar bar DP-1 \tOpens the status bar on monitor \"DP-1\"\n" + "\tgBar bar 0 \tOpens the status bar on monitor 0 (Legacy)\n" + "\tgBar audio \tOpens the audio flyin on the current monitor\n" "\n" "All options:\n" "\t--help/-h \tPrints this help page and exits afterwards\n"