Skip to content

Commit

Permalink
fixing thunar config not working on fresh boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Heus-Sueh committed Sep 8, 2024
1 parent 56ded3b commit f041ceb
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 72 deletions.
6 changes: 6 additions & 0 deletions files/rpm-ostree/mise.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[mise-repo]
name=mise repo
baseurl=https://mise.jdx.dev/rpm
enabled=1
gpgcheck=1
gpgkey=https://mise.jdx.dev/gpg-key.pub
22 changes: 11 additions & 11 deletions files/scripts/firstboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ run_modules() {
xdg-user-dirs-update

echo "Running theme setup script..."
# Example of running an external script
flatpak override --filesystem=xdg-data/themes
flatpak override --filesystem=xdg-data/icons
flatpak override --filesystem=xdg-config/gtk-3.0
flatpak override --filesystem=xdg-config/gtk-4.0
flatpak override --filesystem=xdg-config/Kvantum
# ./setup_theme.sh
# Commands that require root privileges
pkexec bash -c '
flatpak override --filesystem=xdg-data/themes
flatpak override --filesystem=xdg-data/icons
flatpak override --filesystem=xdg-config/gtk-3.0
flatpak override --filesystem=xdg-config/gtk-4.0
flatpak override --filesystem=xdg-config/Kvantum
'

echo "Initial setup completed!"
}
Expand All @@ -38,16 +39,15 @@ if [[ ! -f "$FIRSTBOOT_FILE" ]]; then
echo "First boot detected. Running setup script..."
run_modules

# Create the file to indicate that the script has run
mkdir -p "$(dirname "$FIRSTBOOT_FILE")"

# Create the file to indicate that the script has run
touch "$FIRSTBOOT_FILE"

# Generate and store the hash in the firstboot file
generate_hash

# Disable the systemd service after successful execution
echo "Disabling firstboot systemd service..."
systemctl disable firstboot.service

else
echo "First boot script has already run. Nothing to do."
fi
1 change: 1 addition & 0 deletions files/system/etc/skel/.config/hypr/exec.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Exec
exec-once = /usr/bin/xdg-user-dirs-update
exec-once = /usr/libexec/xdg-desktop-portal-hyprland
exec-once = /usr/libexec/xdg-desktop-portal-gtk
exec-once = /usr/libexec/xdg-desktop-portal
Expand Down
30 changes: 0 additions & 30 deletions files/system/etc/skel/.config/wlogout/layout

This file was deleted.

30 changes: 30 additions & 0 deletions files/system/etc/skel/.config/wlogout/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
},
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
},
{
"label" : "logout",
"action" : "loginctl terminate-session $XDG_SESSION_ID",
"text" : "Logout",
"keybind" : "e"
},
{
"label" : "hibernate",
"action" : "swaylock -f && systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
},
{
"label" : "lock",
"action" : "/usr/bin/swaylock",
"text" : "Lock",
"keybind" : "l"
}
Empty file modified files/system/usr/bin/podman-host
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions recipes/modules/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ modules:
repos:
- vscode.repo
- docker-ce.repo
- mise.repo
install:
- gh
- mise
- neovim
- code
- gcc
Expand Down
5 changes: 5 additions & 0 deletions recipes/modules/systemd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: systemd
system:
enabled:
- sddm-boot.service
- dconf-update.service
7 changes: 1 addition & 6 deletions recipes/recipe-dx-nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ modules:
- from-file: modules/fonts.yml
- from-file: modules/default-flatpaks.yml
- from-file: modules/common-scripts.yml
- from-file: modules/systemd.yml
# ----------------------------------------------------------------------------------------------------------------------------
# Scripts
- type: script
snippets:
scripts:
- nvidia.sh
# ----------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
# ----------------------------------------------------------------------------------------------------------------------------
7 changes: 1 addition & 6 deletions recipes/recipe-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ modules:
- from-file: modules/fonts.yml
- from-file: modules/default-flatpaks.yml
- from-file: modules/common-scripts.yml
# ---------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
- from-file: modules/systemd.yml
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down
7 changes: 1 addition & 6 deletions recipes/recipe-nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@ modules:
- from-file: modules/fonts.yml
- from-file: modules/default-flatpaks.yml
- from-file: modules/common-scripts.yml
- from-file: modules/systemd.yml
# ----------------------------------------------------------------------------------------------------------------------------
# Scripts
- type: script
snippets:
scripts:
- nvidia.sh
# ----------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
# ----------------------------------------------------------------------------------------------------------------------------
8 changes: 1 addition & 7 deletions recipes/recipe-vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ modules:
- from-file: modules/default-flatpaks.yml
- from-file: modules/vm.yml
- from-file: modules/common-scripts.yml
- from-file: modules/systemd.yml
# ---------------------------------------------------------------------------------------------------------------------------
# Scripts
- type: script
Expand All @@ -18,13 +19,6 @@ modules:
scripts:
# - example.sh
- type: yafti
# ---------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
# - firstboot.service
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down
7 changes: 1 addition & 6 deletions recipes/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ modules:
- from-file: modules/fonts.yml
- from-file: modules/default-flatpaks.yml
- from-file: modules/common-scripts.yml
# ---------------------------------------------------------------------------------------------------------------------------
# SystemD
- type: systemd
system:
enabled:
- sddm-boot.service
- from-file: modules/systemd.yml
# ----------------------------------------------------------------------------------------------------------------------------
# Signing
- type: signing # this sets up the proper policy & signing files for signed images to work fully
Expand Down

0 comments on commit f041ceb

Please sign in to comment.