aboutsummarylogtreecommitdiffstats
path: root/shadow-beta.install
diff options
context:
space:
mode:
authoragentcobra2018-10-27 08:26:06 +0200
committeragentcobra2018-10-27 10:57:54 +0200
commit3a5d48f1be06603c9daceb7cec088a66c48f66e7 (patch)
tree2825e73350527e76f53969bdf73c73bc67df5098 /shadow-beta.install
parentd78ea9e9a480138b0ff8c4a63f459a7c19b5b120 (diff)
downloadaur-3a5d48f1be06603c9daceb7cec088a66c48f66e7.tar.gz
checksum update
Diffstat (limited to 'shadow-beta.install')
-rw-r--r--shadow-beta.install54
1 files changed, 54 insertions, 0 deletions
diff --git a/shadow-beta.install b/shadow-beta.install
new file mode 100644
index 000000000000..a35d08b16823
--- /dev/null
+++ b/shadow-beta.install
@@ -0,0 +1,54 @@
+post_install() {
+ # Adding all users to the input group
+ for user in `ls /home`
+ do
+ gpasswd -a $user input
+ done
+
+ # Create the link to the binary
+ ln -sf '/opt/shadowbeta/shadow-wrapper.pl' '/usr/bin/shadow-beta'
+
+ ## Fix fonts
+
+ # # Truetype directory exists (not a symlink !)
+ # if [ -d /usr/share/fonts/truetype ]; then
+ #
+ # # Create TTF folder if not exists
+ # if [ ! -d /usr/share/fonts/TTF ]; then
+ # mkdir /usr/share/fonts/TTF
+ # fi
+ #
+ # # Move everything in the TTF folder
+ # mv /usr/share/fonts/truetype/* /usr/share/fonts/TTF/
+ # rm -R /usr/share/fonts/truetype
+ # fi
+ #
+ # # Create a symlink to TTF folder
+ # if [ ! -e /usr/share/fonts/truetype ]; then
+ # ln -sf "/usr/share/fonts/TTF" "/usr/share/fonts/truetype"
+ # fi
+}
+
+post_remove() {
+ # Remove configuration
+ for user in `ls /home`
+ do
+ if [ -d /home/$user/.config/Shadow\ Beta ]; then
+ rm -R /home/$user/.config/Shadow\ Beta
+ fi
+ done
+}
+pre_upgrade(){
+ if [ -d "/opt/Shadow Beta" ];then
+ rm -r "/opt/Shadow Beta"
+ fi
+}
+
+post_upgrade(){
+ ln -sf '/opt/shadowbeta/shadow-wrapper.pl' '/usr/bin/shadow-beta'
+ echo "New Hotkeys (since 0.8.62-1)"
+ echo " • lShift-lCtrl-Esc Open the Windows task manager"
+ echo " • lShift-lCtrl-Q Stop the stream"
+ echo " • lShift-lCtrl-F Toggle fullscreen or windowed"
+ echo " • lShift-lCtrl-G Toggle input grab"
+}