Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
feat(wuzetkafx): add swayfx image
Browse files Browse the repository at this point in the history
  • Loading branch information
sneexy-boi committed Feb 22, 2024
1 parent 8c63083 commit de205e9
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
# Don't add module configuration files, you will get errors.
recipe:
- recipes/sneexy/recipe.yml
- recipes/sneexy/recipe-swayfx.yml
# !!!

steps:
Expand Down
3 changes: 3 additions & 0 deletions config/common/sneexy/wuzetkafx/files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: files
files:
- sneexy/wuzetkafx/usr: /usr
66 changes: 66 additions & 0 deletions config/common/sneexy/wuzetkafx/rpm-ostree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
type: rpm-ostree
install:
# display manager
- sddm

# launcher
- wofi

# environment
- xorg-x11-server-Xwayland
- polkit
- lxpolkit
- xdg-user-dirs
- dbus-tools
- dbus-daemon
- wl-clipboard
- gnome-keyring
- pavucontrol
- playerctl
- qt5-qtwayland
- qt6-qtwayland
- vulkan-validation-layers
- google-noto-emoji-fonts

# sound
- wireplumber
- pipewire

# networking
- network-manager-applet
- bluez
- bluez-tools
- blueman

# file manager
- thunar
- thunar-archive-plugin
- thunar-volman
- xarchiver

# screenshot
- slurp
- grim

# display
- wlr-randr
- wlsunset
- grimshot
- light
- swaylock
- swayidle
- kanshi

# terminal
- xfce4-terminal

# notifications
- dunst

# mpv, since flatpak mpv and celluloid have issues
- mpv

# theme and GUI
- gnome-themes-extra
- gnome-icon-theme
- papirus-icon-theme
3 changes: 3 additions & 0 deletions config/common/sneexy/wuzetkafx/script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: script
scripts:
- swayfx-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
action.id == "org.freedesktop.udisks2.encrypted-unlock-system") &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
44 changes: 44 additions & 0 deletions config/recipes/sneexy/recipe-swayfx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# image will be published to ghcr.io/<user>/<name>
name: wuzetkafx
# description will be included in the image's metadata
description: sneexy's personal image, swayfx edition

# the base image to build on top of (FROM) and the version tag to use
base-image: ghcr.io/ublue-os/sericea-main
image-version: 39 # latest is also supported if you want new updates ASAP

# module configuration, executed in order
# you can include multiple instances of the same module
modules:
- from-file: common-packages.yml
- from-file: common-files.yml

# module configuration, executed in order
# you can include multiple instances of the same module
modules:
# put some files in the image
- from-file: common/sneexy/wuzetkafx/files.yml

# installs default repositories and rpm-ostree packages
- from-file: common/sneexy/wuzetkafx/rpm-ostree.yml

# installs default repositories and flatpak packages
- from-file: common/sneexy/flatpaks.yml

# configure what to pull in from ublue-os/bling
- from-file: common/sneexy/bling.yml

# install fonts
- from-file: common/sneexy/fonts.yml

# uBlue akmods. includes custom drivers and stuff
- from-file: common/sneexy/akmods.yml

# post setup/installer helper gui
# - from-file: common/sneexy/yafti.yml

# scripts to run post-image creation
- from-file: common/sneexy/wuzetkafx/script.yml

# sets up proper policy & signing files
- type: signing
16 changes: 16 additions & 0 deletions config/scripts/swayfx-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -oue pipefail

# Enable swayfx repo just to install swayfx
echo "Adding swayfx repository"

wget https://copr.fedorainfracloud.org/coprs/swayfx/swayfx/repo/fedora-${OS_VERSION}/swayfx-swayfx-fedora-${OS_VERSION}.repo?arch=x86_64 -O /etc/yum.repos.d/_copr_swayfx-swayfx.repo

# Ensure that needed Mesa packages are installed from bazzite-multilib
echo "Replacing sway with swayfx"

rpm-ostree override remove sway --install swayfx

# Cleanup
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_swayfx-swayfx.repo

0 comments on commit de205e9

Please sign in to comment.