-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvga-toggle.sh
More file actions
executable file
·42 lines (41 loc) · 1.22 KB
/
vga-toggle.sh
File metadata and controls
executable file
·42 lines (41 loc) · 1.22 KB
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
#!/bin/sh
#
# screen layout and resolution chooser
# map this script to a special Laptop key (Fn+F7 on my Thinkpad)
#
# generic hints
# xvattr -a XV_CRTC -v {-1,0,1}
#
CHOOSE=$( yad --list --column SHORT --column LONG --text "choose display settings" \
internal "only internal" \
wozi_dual "@Wohnzimmer [internal]+[1440pUW]" \
wozi_tripple "@Wohnzimmer [internal]+[1440pUW]+[1440p]" \
wozi_dual_right "@Wohnzimmer [1440pUW]+[1440p]" \
wozi_single "@Wohnzimmer only [1440pUW]" \
lager_tripple "@Arbyteslager [internal+[1440p]+[1440p]" \
lager_double "@Arbyteslager [internal+[1440p]" \
)
CHOOSE=${CHOOSE/|*/}
case $CHOOSE in
internal)
~/.screenlayout/single.sh
;;
wozi_single)
~/.screenlayout/home_wozi_only1440p.sh
;;
wozi_dual)
~/.screenlayout/home_wozi_int_plus_one.sh
;;
wozi_dual_right)
~/.screenlayout/home_wozi_dual_noint.sh
;;
wozi_tripple)
~/.screenlayout/home_wozi_itsa_tripple.sh
;;
lager_tripple)
~/.screenlayout/home_labor_tripple.sh
;;
lager_double)
~/.screenlayout/labor_double.sh
;;
esac