From 38e52377936004af40959f478660b995259209a8 Mon Sep 17 00:00:00 2001 From: gabo Date: Thu, 18 Feb 2021 23:02:42 -0300 Subject: [PATCH 1/3] first wmctrl implementation --- twindow/dmenu_twindow | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 twindow/dmenu_twindow diff --git a/twindow/dmenu_twindow b/twindow/dmenu_twindow new file mode 100755 index 0000000..db4c3bb --- /dev/null +++ b/twindow/dmenu_twindow @@ -0,0 +1,12 @@ +#!/bin/bash + +twindow="wmctrl -l" + +window=$(echo "$($twindow)" | awk '{$1="";$2="";$3=""; print $0}' | dmenu -i -p Windows:) +echo "$window" + +[[ -n $window ]] || exit + +prompt="$window" + +wmctrl -a $window \ No newline at end of file From d2274df8317ca386417baa0c4a38119e9ba7f118 Mon Sep 17 00:00:00 2001 From: gabo Date: Tue, 9 Mar 2021 22:12:51 -0300 Subject: [PATCH 2/3] added twindow make target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7565728..ac43521 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,11 @@ tsearch: ${CONFIG_FOLDER} ${BIN_FOLDER} tyaml install tsearch/params.yaml ${CONFIG_FOLDER} @echo "done!" +twindow: ${BIN_FOLDER} tyaml + @echo "Installing twindow..." + install -m 555 twindow/twindow ${BIN_FOLDER} + @echo "done!" + tpomodoro: ${CONFIG_FOLDER} ${BIN_FOLDER} @echo "Installing tpomodoro..." install -m 555 tpomodoro/tpomodoro ${BIN_FOLDER} @@ -78,9 +83,10 @@ uninstall: rm -f ${BIN_FOLDER}/tgoeswall rm -fr ${CONFIG_FOLDER} rm -f ${BIN_FOLDER}/tprogbar + rm -f ${BIN_FOLDER}/twindow @echo "done!" -install: tsearch ttodo tmenu tyaml tnotes tgoeswall tpomodoro tprogbar +install: tsearch ttodo tmenu tyaml tnotes tgoeswall tpomodoro tprogbar twindow @echo "tinytools installed successfully!" .PHONY: install tsearch tpomodoro ttodo tmenu tyaml tnotes tgoeswall uninstall tprogbar From 29b04c5daf541db13e146cd405275613938d528f Mon Sep 17 00:00:00 2001 From: gabo Date: Tue, 9 Mar 2021 22:15:01 -0300 Subject: [PATCH 3/3] added twindow make target fixed --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ac43521..47c67d3 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ tsearch: ${CONFIG_FOLDER} ${BIN_FOLDER} tyaml twindow: ${BIN_FOLDER} tyaml @echo "Installing twindow..." - install -m 555 twindow/twindow ${BIN_FOLDER} + install -m 555 twindow/dmenu_twindow ${BIN_FOLDER} @echo "done!" tpomodoro: ${CONFIG_FOLDER} ${BIN_FOLDER} @@ -83,7 +83,7 @@ uninstall: rm -f ${BIN_FOLDER}/tgoeswall rm -fr ${CONFIG_FOLDER} rm -f ${BIN_FOLDER}/tprogbar - rm -f ${BIN_FOLDER}/twindow + rm -f ${BIN_FOLDER}/dmenu_twindow @echo "done!" install: tsearch ttodo tmenu tyaml tnotes tgoeswall tpomodoro tprogbar twindow