Skip to content

Commit

Permalink
Enable i3WM on noble
Browse files Browse the repository at this point in the history
Tested only for assemly at this point. It needs further optimisations.
  • Loading branch information
igorpecovnik committed Jun 9, 2024
1 parent e7343f3 commit 9708ed4
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/desktop/common/appgroups/browsers/packages
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
chromium-browser
firefox
1 change: 1 addition & 0 deletions config/desktop/noble/environments/i3-wm/architectures
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
armhf, arm64, amd64, riscv64
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# install lightdm greeter
cp -R "${SRC}"/packages/blobs/desktop/lightdm "${destination}"/etc/armbian

# install default desktop settings
mkdir -p "${destination}"/etc/skel
cp -R "${SRC}"/packages/blobs/desktop/skel/. "${destination}"/etc/skel

# install logo for login screen
mkdir -p "${destination}"/usr/share/pixmaps/armbian
cp "${SRC}"/packages/blobs/desktop/icons/armbian.png "${destination}"/usr/share/pixmaps/armbian

# install wallpapers
mkdir -p "${destination}"/usr/share/backgrounds/armbian/
cp "${SRC}"/packages/blobs/desktop/desktop-wallpapers/armbian*.jpg "${destination}"/usr/share/backgrounds/armbian/
154 changes: 154 additions & 0 deletions config/desktop/noble/environments/i3-wm/config_base/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
anacron
apport-gtk
apt-xapian-index
arandr
blueman
bluez
bluez-cups
bluez-tools
brltty
brltty-x11
caffeine
cifs-utils
compton
cups
cups-bsd
cups-client
cups-filters
dbus-x11
dictionaries-common
dmz-cursor-theme
doc-base
dunst
evince
evince-common
feh
fontconfig
fontconfig-config
fonts-arphic-ukai
fonts-arphic-uming
fonts-dejavu-core
fonts-freefont-ttf
fonts-guru
fonts-guru-extra
fonts-khmeros-core
fonts-liberation
fonts-nanum
fonts-opensymbol
fonts-stix
fonts-symbola
fonts-ubuntu
foomatic-db-compressed-ppds
gdebi
ghostscript-x
gir1.2-appindicator3-0.1
gnome-bluetooth
gnome-disk-utility
gnome-font-viewer
gnome-power-manager
gnome-system-monitor
gromit
gstreamer1.0-packagekit
gstreamer1.0-plugins-base-apps
gstreamer1.0-pulseaudio
gvfs-backends
hplip
i3
i3lock
i3status
i3-wm
suckless-tools
indicator-printers
inputattach
kerneloops
keyutils
language-pack-en
laptop-detect
libanyevent-i3-perl
libatk-adaptor
libev4
libfont-afm-perl
libfontconfig1
libfontenc1
libgail-common
libgl1-mesa-dri
libgnome-bluetooth13
libgsettings-qt1
libjson-xs-perl
libnotify-bin
libproxy1-plugin-gsettings
libproxy1-plugin-networkmanager
libu2f-udev
libwmf0.2-7-gtk
libxcb-cursor0
libxcursor1
lightdm
lightdm-gtk-greeter
lightdm-gtk-greeter-settings
lightdm-settings
lxappearance
mousetweaks
network-manager-openvpn-gnome
network-manager-vpnc
nitrogen
numix-gtk-theme
openprinting-ppds
overlay-scrollbar
overlay-scrollbar-gtk2
p7zip-full
pamix
pasystray
pavucontrol
pavucontrol-qt
pavumeter
policykit-1
policykit-1-gnome
policykit-desktop-privileges
printer-driver-all
profile-sync-daemon
pulseaudio-module-bluetooth
redshift
rofi
samba
slick-greeter
smbclient
system-config-printer
software-properties-gtk
speech-dispatcher
spice-vdagent
terminator
thunar
totem
totem-common
totem-plugins
ubuntu-docs
ubuntu-drivers-common
ubuntu-wallpapers
update-inetd
update-manager
update-manager-core
update-notifier
update-notifier-common
vifm
x11-apps
x11-xserver-utils
xarchiver
xbacklight
xcursor-themes
xdg-user-dirs
xdg-user-dirs-gtk
xfonts-100dpi
xfonts-75dpi
xfonts-base
xfonts-encodings
xfonts-scalable
xfonts-utils
xorg-docs
xorg-docs-core
xscreensaver
xserver-xorg
xserver-xorg-video-fbdev
xauth
xtitle
xttitle
xwallpaper
41 changes: 41 additions & 0 deletions config/desktop/noble/environments/i3-wm/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# overwrite stock lightdm greeter configuration
if [ -d /etc/armbian/lightdm ]; then cp -R /etc/armbian/lightdm /etc/; fi

# Disable Pulseaudio timer scheduling which does not work with sndhdmi driver
if [ -f /etc/pulse/default.pa ]; then sed "s/load-module module-udev-detect$/& tsched=0/g" -i /etc/pulse/default.pa; fi

# set wallpapper to armbian
echo "exec_always --no-startup-id feh --bg-scale --zoom fill --no-fehbg /usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg" | tee -a /etc/i3/config

# lightdm wallpaper
mv /etc/lightdm/slick-greeter.conf /etc/lightdm/slick-greeter.conf.bak
touch /etc/lightdm/slick-greeter.conf
echo "[Greeter]
background=/usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg
theme-name = Numix
icon-theme-name = Numix
font-name = Sans 11
draw-user-background = false
show-keyboard = true
onscreen-keyboard = false
screen-reader = true
draw-grid = true" | tee -a /etc/lightdm/slick-greeter.conf

echo "Finished preparing /etc/lightdm/slick-greeter.conf..."

mv /etc/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf.bak
touch /etc/lightdm/lightdm-gtk-greeter.conf
echo "[greeter]
background=/usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg
theme-name = Numix
icon-theme-name = Numix
font-name = Sans 11
draw-user-background = false
show-keyboard = true
onscreen-keyboard = false
screen-reader = true
draw-grid = true" | tee -a /etc/lightdm/lightdm-gtk-greeter.conf

echo "Finished preparing /etc/lightdm/lightdm-gtk-greeter.conf..."

slick-greeter -h #applies wallpaper
1 change: 1 addition & 0 deletions config/desktop/noble/environments/i3-wm/support
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
supported
15 changes: 11 additions & 4 deletions extensions/mesa-vpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,17 @@ function post_install_kernel_debs__3d() {
Pin-Priority: 1001
EOF

display_alert "Workaround for weak algorythm" "${EXTENSION}" "info"
cat <<- EOF > "${SDCARD}"/etc/apt/apt.conf.d/99weakkey-warning
APT::Key::Assert-Pubkey-Algo "";
EOF
if [[ "${RELEASE}" == oracular ]]; then

# workaround for "Signature Key Uses Weak Algorithm"
# https://ubuntuhandbook.org/index.php/2024/04/workaround-apt-warning-signature-key-uses-weak-algorithm/
# can be dropped once PPA upgrades signing methods

display_alert "Workaround for weak algorythm" "${EXTENSION}" "info"
cat <<- EOF > "${SDCARD}"/etc/apt/apt.conf.d/99weakkey-warning
APT::Key::Assert-Pubkey-Algo ">=rsa1024,ed25529,ed448";
EOF
fi

fi

Expand Down

0 comments on commit 9708ed4

Please sign in to comment.