diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-02-16 02:32:57 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-01 16:03:39 +0200 |
commit | 6d9044398cd516d32abbb8e1e7d1431cbc84bef8 (patch) | |
tree | 961e3390226b659813fb2ff60c7250e8027de7c3 /programmers-dvorak.install | |
download | pkgbuilds-6d9044398cd516d32abbb8e1e7d1431cbc84bef8.tar.xz |
Dump...
Diffstat (limited to 'programmers-dvorak.install')
-rw-r--r-- | programmers-dvorak.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/programmers-dvorak.install b/programmers-dvorak.install new file mode 100644 index 0000000..b4950b5 --- /dev/null +++ b/programmers-dvorak.install @@ -0,0 +1,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 $* |