summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-04-03 03:25:35 -0700
committerxyz <gky44px1999@gmail.com>2022-04-03 03:25:35 -0700
commita77535d9dab00f5c081bb6e0f2fb2d8f34bba773 (patch)
tree953365135e1b101a2b1b0fd77c137a0aa806bd53 /home
parent798d4fc2c8753874c1a33a8d52569cd64faf7bd1 (diff)
envycontrol new version
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/sbar2
-rw-r--r--home/xyz/.xinitrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar
index 9bb08b88..62504d13 100755
--- a/home/xyz/.local/bin/sbar
+++ b/home/xyz/.local/bin/sbar
@@ -33,7 +33,7 @@ update_bat () {
}
update_gpu () {
- gpu="$(envycontrol --status | awk 'END{print toupper(substr($NF,0,1))}')"
+ gpu="$(envycontrol -q | awk 'END{print toupper(substr($NF,0,1))}')"
}
display () {
diff --git a/home/xyz/.xinitrc b/home/xyz/.xinitrc
index 957cdbdc..47e7a125 100644
--- a/home/xyz/.xinitrc
+++ b/home/xyz/.xinitrc
@@ -51,7 +51,7 @@ udiskie &
xset r rate 250 30
# https://dianne.skoll.ca/wiki/Remind_FAQ#How_can_I_generate_popup_windows_to_warn_me_of_timed_reminders.3F
rem -z -k'notify-send -u critical "reminder" %s &' &
-if [ "$(envycontrol --status)" = 'Current graphics mode is: nvidia' ]; then
+if [ "$(envycontrol -q)" = 'Current graphics mode is: nvidia' ]; then
# my testing shows this seems no need?
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto