diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-09-01 22:12:27 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-09-01 22:12:27 +0200 |
commit | aa18d3f888d6fb4d598c22fcf825a78e5540c1e7 (patch) | |
tree | ec8f58cf76a7c729e6b0650ae0cbcb87ad8b5a80 /rofi | |
parent | 65915ec6c0311ef8a0af24bfe82bd10f338afa86 (diff) |
Update i3 config
Diffstat (limited to 'rofi')
-rwxr-xr-x | rofi/workspaces.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rofi/workspaces.sh b/rofi/workspaces.sh index 8495f8d..2dc3a6a 100755 --- a/rofi/workspaces.sh +++ b/rofi/workspaces.sh @@ -8,8 +8,9 @@ if [ -z $1 ]; then exit 0 else WINDOWS=$(xdotool search --all --onlyvisible --desktop $(xprop -notype -root _NET_CURRENT_DESKTOP | cut -c 24-) "" 2>/dev/null) + code=$(echo $1 | cut -d: -f1) # Load the workspace - i3-msg "workspace $1; append_layout ${WORKSPACES}/${1}.json; workspace back_and_forth" > /dev/null + i3-msg "workspace ${code}:; append_layout ${WORKSPACES}/${1}.json; workspace back_and_forth" > /dev/null # get the list of windows on the current workspace for window in $WINDOWS; do HAS_PID=$(xdotool getwindowpid $window 2>&1 | grep "pid" | wc -l) @@ -18,6 +19,6 @@ else xdotool windowunmap $window xdotool windowmap $window done - i3-msg "workspace $1" > /dev/null + i3-msg "workspace ${code}:" > /dev/null exit 1 fi |