summarylogtreecommitdiffstats
path: root/smooth-cursor.install
blob: 78bb28dd9e6299f4e336a41de80bd5b7b77aadce (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
40
41
42
43
44
45
46
47
48
49
50
51
# thx https://aur.archlinux.org/cgit/aur.git/tree/way-displays.install?h=way-displays
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
red="${bold}$(tput setaf 1)"
green="${bold}$(tput setaf 2)" # PR
yellow="${bold}$(tput setaf 3)" # title
blue="${bold}$(tput setaf 4)" # section
magenta="${bold}$(tput setaf 5)" # issue

# Colored makepkg-like functions
note() {
    printf "${blue}==>${yellow} NOTE:${all_off} ${1}\n"
}

plain() {
    printf "${1}\n"
}

green() {
    printf "${green}${1}${all_off}\n"
}

yello() {
    printf "${yellow}${1}${all_off}\n"
}

blue() {
    printf "${blue}${1}${all_off}\n"
}

magen() {
    printf "${magenta}${1}${all_off}\n"
}

post_install() {
    blue "This is a fork of Alacritty! Read about configuration and report issues at https://github.com/GregTheMadMonk/alacritty-smooth-cursor"
}

post_upgrade() {
    blue "alacritty-smooth-cursor-git was updated"
    magen "Important changes:"
    green "- Reworked the cursor rendering method, should look and behave better"
    green "- Added seltools patch. See README.md on GitHub for more info"
    magen "Older changes:"
    green "- Patches rebased to match upstream Alacritty's master branch"
    green "- Fixed Wayland support. No XWayland is required anymore. If you experience issues, please reopen https://github.com/GregTheMadMonk/alacritty-smooth-cursor/issues/3"
    green "- Animation speed no longer depends on FPS. You might want to adjust your motion factor because it might've been affected by your FPS previously"
    green "- Idle resource consumption greatly reduced"
    green ""
    magen "See CHANGELOG for a more versbose list of changes"
}