summarylogtreecommitdiffstats
path: root/way-displays-1_2_0.install
blob: 1623fafca2c25052d65b8fbdeecdc12e91395b2a (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
# Colored makepkg-like functions
msg_blue() {
    printf "${blue}==>${bold} $1${all_off}\n"
}

note() {
    printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}

all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
red="${bold}$(tput setaf 1)"
green="${bold}$(tput setaf 2)"
yellow="${bold}$(tput setaf 3)"
blue="${bold}$(tput setaf 4)"

post_install() {
    note "1.2.0 New Feature #10 Maximum Preferred Refresh"
    note ""
    note "Optional cfg.yaml additions:"
    note ""
    note "${all_off}# Use the maximum refresh rate for resolution of the preferred mode."
    note "${all_off}# Warning: this may result in an unusable display."
    note "${red}MAX_PREFERRED_REFRESH${all_off}:"
    note "${yellow}  - ${green}'HDMI-1'${all_off}"
    note ""
    note "For full details see https://github.com/alex-courtis/way-displays and /etc/way-displays/cfg.yaml"
}

post_upgrade() {
    post_install
}