aboutsummaryrefslogtreecommitdiff
path: root/.config/bspwm/scripts/external_rules.sh
blob: 74fdaa08cf82f54d32d0e601b13b03149b34fadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/env bash

#instance=$3
#[!-z"$3"] && xdo raise -a polybar-bottom_LVDS-1
#[!-z"$3"] && xdo below -a polybar-bottom_LVDS-1 -t $(xdo id -N Bspwm -n root)


#bspc subscribe node_state | while read -r _ _ _ _ state flag; do
#  if [[ "$state" != fullscreen ]]; then continue; fi
#  if [[ "$flag" == on ]]; then
#    xdo lower -N Plank
#  else
#    xdo raise -N Plank
#  fi
#done &
#
#eval $4
#bspc query -N -d ${desktop:-focused} -n .fullscreen >/dev/null &&
#    echo layer=above


#bspc subscribe node_state | while read -r _ _ _ _ state flag; do
#  if [[ "$state" != fullscreen ]]; then continue; fi
#  if [[ "$flag" == on ]]; then
#    xdo lower -a polybar-bottom_LVDS-1
#  else
#    xdo raise -a polybar-bottom_LVDS-1
#  fi
#done &

# Allow any type of window to ignore fullscreen windows (allow fullscreen to
# stay)
wid="$1"
class="$2"
instance="$3"
eval "$4"

[[ "$state" = floating ]] \
    && echo 'layer=above'