-
Notifications
You must be signed in to change notification settings - Fork 4
/
5-desktop
65 lines (59 loc) · 1.35 KB
/
5-desktop
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
echo "3" | sudo select-editor
sudo apt-get install -y --no-install-recommends xserver-xorg xinit
sudo apt-get install -y --no-install-recommends raspberrypi-ui-mods lxterminal gvfs
sudo apt-get install -y xvkbd xinput
mkdir Desktop
cat << 'EOF' > keyboard
#!/bin/bash
xvkbd -no-keypad -geometry 800x200+0+250
EOF
chmod +x keyboard
cat << 'EOF' > Desktop/Keyboard.desktop
[Desktop Entry]
Name=Keyboard
Comment=Keyboard launcher
Icon=/usr/share/pixmaps/openbox.xpm
Exec=/home/pi/keyboard
Type=Application
Encoding=UTF-8
Terminal=false
Categories=None;
EOF
cat << 'EOF' > hdmi_out
#!/bin/bash
sudo sed -i 's/display_default_lcd=1/display_default_lcd=0/g' /boot/config.txt
sudo amixer cset numid=3 2
sudo reboot
EOF
chmod +x hdmi_out
cat << 'EOF' > Desktop/HDMI_Out.desktop
[Desktop Entry]
Name=HDMI Out
Comment=Toggle HDMI output on
Icon=/usr/share/pixmaps/openbox.xpm
Exec=/home/pi/hdmi_out
Type=Application
Encoding=UTF-8
Terminal=false
Categories=None;
EOF
cat << 'EOF' > lcd_out
#!/bin/bash
sudo sed -i 's/display_default_lcd=0/display_default_lcd=1/g' /boot/config.txt
sudo amixer cset numid=3 1
sudo reboot
EOF
chmod +x lcd_out
cat << 'EOF' > Desktop/LCD_Out.desktop
[Desktop Entry]
Name=LCD Out
Comment=Toggle LCD output on
Icon=/usr/share/pixmaps/openbox.xpm
Exec=/home/pi/lcd_out
Type=Application
Encoding=UTF-8
Terminal=false
Categories=None;
EOF
sudo reboot