commit 7ed18a726ea21d0e2e80d772b16f0b76dc043cac parent 610a78241d396f524c8ccad9dae0a7152f95ada7 Author: jacobsGit <JacobDoesLinux@protonmail.com> Date: Mon, 3 Feb 2020 15:46:41 -0800 new increment value script Diffstat:
| A | bspwm/.config/bspwm/bspc-utils/bspc-inc | | | 17 | +++++++++++++++++ |
| M | bspwm/.config/bspwm/bspwmrc | | | 1 | + |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/bspwm/.config/bspwm/bspc-utils/bspc-inc b/bspwm/.config/bspwm/bspc-utils/bspc-inc @@ -0,0 +1,17 @@ +#!/bin/dash +# Jacob Edwards, 2020 +# increment values in bspwm + + +if [ "$1" = '--help' ]; then + printf 'bspc-inc [CONFIG:OPTION] [OPORATOR] [INT]\n' +else + inital="$( bspc config "$1" )" + new="$( expr "$inital" "$2" "$3" )" + + if [ "$new" -lt 0 ]; then + new=0 + fi + + bspc config "$1" "$new" +fi diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc @@ -6,6 +6,7 @@ # init workspaces bspc monitor -d 'general 1' browsing writing recording 'general 2' video editing music +#bspc monitor ^2 Alt -d 'general 1' browsing writing recording 'general 2' video editing music