aboutsummaryrefslogtreecommitdiffstats
path: root/programmers-dvorak.install
blob: b4950b5c510f42c1aaa23b34b7b98fa2215cd54f (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
# arg 1: the new package version
post_install() {
    /usr/share/programmers-dvorak/dvp.postinst.sh || return 1
    echo "PROGRAMMER'S DVORAK SETUP"
    echo "-------------------------"
    echo "To use the Programmer's Dvorak layout in X, edit"
    echo "/etc/X11/xorg.conf, find the line with the string"
    echo "'XkbLayout', and change your current layout to 'dvp'."
    echo "-------------------------"
    echo "To use the layout at a virtual terminal, edit"
    echo "/etc/vconsole.conf and change KEYMAP from your current"
    echo "layout to 'dvp'."
}

pre_upgrade() {
    /usr/share/programmers-dvorak/dvp.prerm.sh
    /usr/share/programmers-dvorak/dvp.remove.sh
}

post_upgrade() {
    /usr/share/programmers-dvorak/dvp.postinst.sh
}

pre_remove() {
    /usr/share/programmers-dvorak/dvp.prerm.sh
    /usr/share/programmers-dvorak/dvp.remove.sh
}

op=$1
shift

$op $*