From 667a3e72387751af4247a18ccff52f1a268a1fa8 Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 11 May 2021 21:39:39 -0500 Subject: [PATCH] add program indicate --- Makefile | 1 + scripts/disp | 14 ++++++++------ scripts/indicate | 5 +++++ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100755 scripts/indicate diff --git a/Makefile b/Makefile index decd98f..211872e 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ sh: cp -f scripts/connect $(DESTDIR)$(PREFIX)/bin cp -f scripts/nws $(DESTDIR)$(PREFIX)/bin cp -f scripts/urlhandle $(DESTDIR)$(PREFIX)/bin + cp -f scripts/indicate $(DESTDIR)$(PREFIX)/bin mkc: cc progs/scream.c -o progs/scream c: diff --git a/scripts/disp b/scripts/disp index 23b039f..f0bcb4b 100755 --- a/scripts/disp +++ b/scripts/disp @@ -6,20 +6,22 @@ exists() { if [ $(exists "HDMI2") -eq 1 ] && [ $(exists "LVDS1") -eq 1 ]; then printf "HDMI2, LVDS1 exists\n" - xrandr --output LVDS1 --below HDMI2 --auto - bspc monitor LVDS1 I II III IV V - bspc monitor HDMI2 VI VII VIII IX + xrandr --output HDMI2 --above LVDS1 --auto + bspc monitor LVDS1 -a I II III IV V + bspc monitor HDMI2 -a VI VII VIII IX exit 0 fi if [ $(exists "HDMI1") -eq 1 ] && [ $(exists "LVDS1") -eq 1 ]; then printf "HDMI1, LVDS1 exists\n" - xrandr --output LVDS1 --below HDMI1 --auto - bspc monitor LVDS1 I II III IV V - bspc monitor HDMI1 VI VII VIII IX + xrandr --output HDMI1 --above LVDS1 --auto + bspc monitor LVDS1 -a I II III IV V + bspc monitor HDMI1 -a VI VII VIII IX exit 0 fi printf "defaulting to default configuration\n" +xrandr --output HDMI1 --off +xrandr --output HDMI2 --off bspc monitor -d I II III IV V VI VII VIII IX X exit 0 diff --git a/scripts/indicate b/scripts/indicate new file mode 100755 index 0000000..45e9b12 --- /dev/null +++ b/scripts/indicate @@ -0,0 +1,5 @@ +#!/bin/sh + +i=$(date '+%H:%M:%S %m/%d (%h)') +j=$(bat) +printf "%s | %s\n" "$i" "$j" | nenu