This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSwayContainerfile
220 lines (207 loc) · 6.82 KB
/
SwayContainerfile
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
FROM ghcr.io/ublue-os/bazzite-deck-gnome:latest AS hyprzite
RUN curl -sL -o /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:erikreider:SwayNotificationCenter.repo https://copr.fedorainfracloud.org/coprs/erikreider/SwayNotificationCenter/repo/fedora-$(rpm -E %fedora)/erikreider-SwayNotificationCenter-fedora-$(rpm -E %fedora).repo
####################################################### tidy some files:
RUN rm -rf \
/usr/lib/gnome-settings-daemon-3.0 \
/usr/etc/skel/.local/share/org.gnome.Ptyxis \
/usr/lib/systemd/user/*gnome* \
/usr/libexec/gnome-desktop-debug \
/usr/share/GConf/gsettings \
/usr/share/sounds/gnome \
/usr/share/terminfo/g/gnome* \
/usr/share/themes/Bazzite/gnome-shell
####################################################### remove junk
RUN rpm-ostree override remove \
mutter \
gnome-settings-daemon-devel \
msgraph \
gnome-desktop4-devel \
gnome-menus \
pinentry-gnome3 \
gnome-remote-desktop \
fedora-chromium-config-gnome \
gnome-desktop4 \
gnome-settings-daemon \
gnome-session \
xdg-desktop-portal-gnome \
gnome-bluetooth-libs \
gnome-bluetooth \
gnome-keyring \
gnome-autoar \
gnome-software \
gnome-keyring-pam \
gnome-color-manager \
gnome-session-wayland-session \
gnome-session-xsession \
gnome-shell-extension-common \
gnome-shell-extension-apps-menu \
gnome-shell-extension-launch-new-instance \
gnome-shell-extension-places-menu \
gnome-shell-extension-window-list \
gnome-terminal \
gnome-browser-connector \
gnome-shell-extension-background-logo \
NetworkManager-ssh-gnome \
NetworkManager-openconnect-gnome \
gnome-system-monitor \
NetworkManager-vpnc-gnome \
NetworkManager-openvpn-gnome \
NetworkManager-pptp-gnome \
gnome-disk-utility \
desktop-backgrounds-gnome \
gnome-user-share \
gnome-backgrounds \
fros-gnome \
gnome-user-docs \
gnome-epub-thumbnailer \
gnome-tweaks \
libgnomekbd \
gnome-shell-extension-appindicator \
gnome-control-center-filesystem \
gnome-control-center \
gnome-shell \
gnome-shell-extension-gsconnect \
gnome-shell-extension-hanabi \
gnome-shell-extension-gamerzilla \
gnome-shell-extension-blur-my-shell \
gnome-shell-extension-just-perfection \
gnome-shell-extension-hotedge \
gnome-shell-extension-compiz-windows-effect \
gnome-shell-extension-bazzite-menu \
gnome-randr-rust \
gnome-shell-extension-system76-scheduler \
gnome-shell-extension-user-theme \
steamdeck-gnome-presets \
gnome-shell-extension-caribou-blocker \
nautilus \
gdm \
libgdata \
nautilus-gsconnect \
xapps \
gvfs-goa \
webapp-manager \
python3-xapps-overrides \
evolution-data-server \
evolution-data-server-langpacks \
ptyxis \
nautilus-python \
mutter-common \
nautilus-open-any-terminal \
nautilus-extensions \
gnome-online-accounts \
gnome-shell-extension-caffeine
################################################### install stuff
RUN rpm-ostree install \
ranger \
ncdu \
python3-beautifulsoup4 \
scanmem \
screen \
nano \
xdg-desktop-portal \
xdg-desktop-portal-devel \
xdg-desktop-portal-gtk \
xdg-desktop-portal-wlr \
xdg-desktop-portal-lxqt \
xdg-desktop-portal-xapp \
nwg-panel \
wlr-randr \
nwg-wrapper \
qt5-qtwayland \
qt6-qtwayland \
sway \
kitty \
nwg-launchers \
plymouth-theme-breeze.x86_64 \
plymouth-plugin-script.x86_64 \
thunar \
thunar-volman \
thunar-archive-plugin \
htop \
grimshot \
gtk-layer-shell \
gtk3 \
gtk4 \
egl-wayland \
gedit \
SwayNotificationCenter \
binutils \
yt-dlp \
egl-wayland-devel \
wayland-devel \
python3-cairo-devel \
libxkbcommon-devel \
pangomm-devel \
python3-devel \
qt6-linguist \
cairo-devel \
gobject-introspection-devel \
cairo-gobject-devel \
gdb \
network-manager-applet \
fuse-sshfs \
python3-bluez \
bluez-cups \
nmap \
nmap-ncat \
python3-nmap \
iftop \
iperf3 \
wireshark \
python3-pyshark \
bluez \
bluez-tools \
blueman \
android-tools
#################################################### delete files wont need or will replace
RUN rm -rf \
/usr/etc/dconf/db/local.d/02-bazzite-global \
/usr/etc/dconf/db/local.d/03-bazzite-dash \
/usr/etc/dconf/db/local.d/04-bazzite-folders \
/usr/etc/dconf/db/local.d/06-bazzite-theme \
/usr/etc/dconf/db/local.d/05-bazzite-extensions \
/usr/etc/dconf/db/local.d/07-bazzite-deck \
/usr/share/xsessions/gnome-xorg-oneshot.desktop \
/usr/share/wayland-sessions/gnome-wayland-oneshot.desktop \
/usr/bin/gnome-session-oneshot \
/usr/bin/gnome-help \
/usr/bin/return-to-gamemode \
/usr/bin/steamos-session-select \
/usr/etc/environment \
/usr/etc/bazzite/initramfs/args.d/00-example.conf \
/usr/bin/bazzite-steam \
/usr/libexec/bazzite-autologin \
/usr/share/wayland-sessions/sway.desktop \
/usr/etc/profile.d/bazzite-neofetch.sh \
/usr/etc/profile.d/brew.sh \
/usr/bin/gamescope-session-plus \
/usr/share/ublue-os/bazzite/neofetch.conf
################################################## enable needed services and copy in files needed
RUN systemctl enable sshd
RUN mkdir -p /usr/libexec
COPY drop_ins/* /
COPY drop_ins/usr/libexec/bazzite-autologin /usr/libexec/bazzite-autologin
COPY drop_ins/usr/share/wayland-sessions/sway.desktop /usr/share/wayland-sessions/sway.desktop
COPY drop_ins/usr/bin/gamescope-session-plus /usr/bin/gamescope-session-plus
RUN chmod +x /usr/bin/bazzite-steam ;\
chmod +x /usr/libexec/bazzite-autologin ;\
chmod +x /usr/bin/steamos-session-select ; \
chmod +x /usr/share/applications/* ; \
chmod +x /usr/bin/start-swaywm ; \
chmod +x /usr/bin/gamescope-session-plus
################################################## fix ld, alternatives currently broken
RUN ln -sf /usr/bin/ld.bfd /etc/alternatives/ld
RUN ln -sf /etc/alternatives/ld /usr/bin/ld
################################################## edit files
RUN sed -i 's/\(Bazzite GNOME\)/Hyperzite SWAY/g' /usr/lib/os-release
##################################################### remove anything for python
RUN pip3 uninstall -y hyfetch hid
##################################################### add anything for python
RUN mkdir -p /var/usrlocal/lib64
RUN pip3 install paramiko hidapi
##################################################### onscreen keyboard
RUN git clone https://github.com/jjsullivan5196/wvkbd && cd wvkbd && make && cp wvkbd-mobintl /usr/bin/wvkbd && cd .. && rm -rf wvkbd
RUN chmod +x /usr/bin/wvkbd
################################################## cleanup and commit image
RUN rm -rf /tmp/* /var/* && \
ostree container commit