diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-19 22:57:55 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-19 22:57:55 +0900 |
commit | 8f378429801162d690dc68c0f15b483c1d291838 (patch) | |
tree | 6153bb580589453dbcc6f64a92bd5b1284bb7051 /src/resolution.c | |
parent | b2155d447caf2d69db6fea4d4d47e9b4053696c7 (diff) |
ちんぽ
Diffstat (limited to 'src/resolution.c')
-rw-r--r-- | src/resolution.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resolution.c b/src/resolution.c index 17a6ac3..1d9fde3 100644 --- a/src/resolution.c +++ b/src/resolution.c @@ -1,4 +1,4 @@ -#include "gpu.h" +#include "resolution.h" #include <stdio.h> #include <string.h> @@ -44,5 +44,6 @@ const char *display_resolution() { return run_res_command("xrandr --nograb --current | " "awk -F 'connected |\\\\+|\\\\(' '/ " "connected.*[0-9]+x[0-9]+\\+/ && $2 {printf $2 " - "\", \"}' | sed 's/primary //' | sed 's/,//'"); + "\", \"}' | sed 's/primary //' | " + "sed 's/,\\([^,]*\\)$/\\1/'"); } |