File tree Expand file tree Collapse file tree 4 files changed +79
-0
lines changed
Expand file tree Collapse file tree 4 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 1313[ -n "$FULLPAGEOS_OVERRIDE_KBD_MODEL" ] || FULLPAGEOS_OVERRIDE_KBD_MODEL=default
1414[ -n "$FULLPAGEOS_OVERRIDE_KBD_LAYOUT" ] || FULLPAGEOS_OVERRIDE_KBD_LAYOUT=default
1515
16+ #disable keyboard shortcuts like (CTRL+w,CTRL+N,CTRL+t) for Chromium
17+ [ -n "$FULLPAGEOS_DISABLE_CHROMIUM_KEYBOARD_SHORTCUTS" ] || FULLPAGEOS_DISABLE_CHROMIUM_KEYBOARD_SHORTCUTS=no
18+
1619#override password, otherwise use image default
1720[ -n "$FULLPAGEOS_OVERRIDE_PASSWORD" ] || FULLPAGEOS_OVERRIDE_PASSWORD=default
1821
Original file line number Diff line number Diff line change 1+ F11
2+ F12
3+ control + n
4+ control + w
5+ control + t
6+ control + j
7+ control + h
8+ control + o
9+ control + p
10+ control + s
11+ control + 2
12+ control + 3
13+ control + 4
14+ control + 5
15+ control + 6
16+ control + 7
17+ control + 8
18+ control + 9
19+ control + tab
20+ control + alt + x
21+ control + pagedown
22+ control + shift + tab
23+ control + pageup
24+ control + shift + t
25+ control+shift + N
26+ control+shift + n
27+ control + shift + i
28+ control + shift + j
29+ control + shift + c
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ PACKAGE=" xbindkeys"
4+
5+ # Starting xbindkeys if is installed
6+ if apt list --installed " $PACKAGE " | grep -q " [installed]" ; then
7+ # Define the path to our custom config file (relative to the script)
8+ DISABLE_CONFIG_PATH=" /boot/firmware/xbindkeys_disable.conf"
9+ # Define the path to the user's xbindkeysrc file
10+ XBINDKEYS_RC=" /home/$BASE_USER /.xbindkeysrc"
11+
12+ # Function to generate the xbindkeysrc file based on our config
13+ generate_xbindkeysrc () {
14+ local config_path=$1
15+ local output_path=" $XBINDKEYS_RC "
16+
17+ # Create a temporary xbindkeys config file
18+ local temp_file=" /tmp/xbindkeysrc.temp"
19+ > " $temp_file " # Clear the file
20+
21+ # Read each line from the config file and format it for xbindkeysrc
22+ while IFS= read -r combo; do
23+ # Skip empty or commented lines
24+ if [[ -z " $combo " || " $combo " =~ ^# ]]; then
25+ continue
26+ fi
27+ echo " \" echo\" " >> " $temp_file "
28+ echo " $combo " >> " $temp_file "
29+ echo >> " $temp_file "
30+ done < " $config_path "
31+
32+ # Copy the temporary file to the user's home directory
33+ cp " $temp_file " " $output_path "
34+ # chown "$user":"$user" "$output_path"
35+ rm " $temp_file "
36+ }
37+ echo " $PACKAGE is installed so starting the package!"
38+ generate_xbindkeysrc " $DISABLE_CONFIG_PATH "
39+ xbindkeys &
40+ fi
41+
342flags= (
443 --kiosk
544 --touch-events=enabled
Original file line number Diff line number Diff line change 2727 systemctl disable getty@tty1
2828fi
2929
30+ # Disable keyboard shortcuts like (CTRL+w,CTRL+N,CTRL+t) for Chromium
31+ if [ " $FULLPAGEOS_DISABLE_CHROMIUM_KEYBOARD_SHORTCUTS " == " yes" ]
32+ then
33+ # Only install if not disabled by configuration
34+ echo " Disable keyboard shortcuts like (CTRL+w,CTRL+N,CTRL+t) for Chromium: $FULLPAGEOS_DISABLE_CHROMIUM_KEYBOARD_SHORTCUTS "
35+ apt-get install xbindkeys -y
36+ fi
37+
3038remove_extra=$( remove_if_installed scratch squeak-plugins-scratch squeak-vm python-minecraftpi minecraft-pi sonic-pi oracle-java8-jdk bluej greenfoot libreoffice-common libreoffice-core freepats)
3139
3240apt-get remove -y --purge $remove_extra
You can’t perform that action at this time.
0 commit comments