-
Notifications
You must be signed in to change notification settings - Fork 2
/
bspwmrc_rules
executable file
·95 lines (61 loc) · 1.62 KB
/
bspwmrc_rules
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/bash
win_id=$1
class=$2
instance=$3
title=$(xtitle "$win_id")
if [[ "$class" = Evilvte || "$class" = Termite ]]; then
case "$title" in
work1)
echo "desktop=8"
;;
work2)
echo "desktop=9"
;;
esac
elif [[ "$class" = chromium ]]; then
echo "desktop=1"
case "$instance" in
crx_nckgahadagoaajjgafhacjanaoiihapd) # Hangouts
echo "sticky=on"
echo "state=floating"
esac
case "$title" in
Untitled)
echo "state=floating"
;;
esac
elif [[ "$class" = Firefox ]]; then
echo "desktop=3"
elif [[ "$class" = sun-awt-X11-XFramePeer ||
"$class" = java-lang-Thread ||
"$class" = Atasjni ]]; then
# webex
echo "state=floating"
echo "desktop=4"
elif [[ "$class" = Thunderbird || "$class" = "Thunderbird-nightly" ]]; then
echo "desktop=2"
elif [[ "$class" = Acroread || "$class" = Evince ]]; then
echo "desktop=3"
elif [[ "$class" = Wfica ]]; then
echo "desktop=3"
elif [[ "$class" = Pidgin ]]; then
echo "state=floating desktop=2"
elif [[ "$class" = Gimp ]]; then
echo "desktop=4"
echo "follow=on"
echo "state=floating"
elif [[ "$class" = Wine ]]; then
echo "desktop=4"
echo "state=fullscreen"
elif [[ "$class" = Spicy ]]; then
echo "desktop=4"
elif [[ "$class" = Vncviewer ]]; then
echo "desktop=5"
elif [[ "$class" = rdesktop ]]; then
echo "desktop=5"
# 24px panel + 10px window gap + 5px window border (1890x1026+10+34)
#echo "state=fullscreen"
elif [[ "$class" = Dunst || "$class" = Gxmessage ]]; then
echo "sticky=on"
echo "state=floating"
fi