generated from blue-build/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding some thunar fixes and ajusting hyprland config
- Loading branch information
Showing
18 changed files
with
141 additions
and
968 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# File to indicate that the script has already run | ||
FIRSTBOOT_FILE="$HOME/.config/firstboot/firstboot_done" | ||
|
||
# Function to generate a hash and write it to the firstboot file | ||
generate_hash() { | ||
# Create a unique hash based on the current timestamp and a random number | ||
local hash | ||
hash=$(echo "$(date +%s) $RANDOM" | sha256sum | cut -d' ' -f1) | ||
echo "Hash: $hash" >"$FIRSTBOOT_FILE" | ||
} | ||
|
||
# Function to run modular commands and scripts | ||
run_modules() { | ||
# Add your commands and scripts here that you want to run on the first boot | ||
|
||
# Example commands | ||
echo "Setting up the environment..." | ||
# Command to install packages, update the system, etc. | ||
# sudo apt update && sudo apt upgrade -y | ||
|
||
echo "Running theme setup script..." | ||
# Example of running an external script | ||
sudo flatpak override --filesystem=xdg-data/themes | ||
sudo flatpak override --filesystem=xdg-data/icons | ||
sudo flatpak override --filesystem=xdg-config/gtk-3.0 | ||
sudo flatpak override --filesystem=xdg-config/gtk-4.0 | ||
sudo flatpak override --filesystem=xdg-config/Kvantum | ||
# ./setup_theme.sh | ||
|
||
echo "Initial setup completed!" | ||
} | ||
|
||
# Check if the script has already run | ||
if [[ ! -f "$FIRSTBOOT_FILE" ]]; then | ||
echo "First boot detected. Running setup script..." | ||
run_modules | ||
|
||
# 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..." | ||
sudo systemctl disable firstboot.service | ||
|
||
else | ||
echo "First boot script has already run. Nothing to do." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
curl -sSL https://raw.githubusercontent.com/Vladimir-csp/xdg-terminal-exec/master/xdg-terminal-exec -o /usr/bin/xdg-terminal-exec | ||
chmod +x /usr/bin/xdg-terminal-exec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<actions> | ||
<action> | ||
<icon>utilities-terminal</icon> | ||
<name>Open Terminal Here</name> | ||
<submenu></submenu> | ||
<unique-id>1708198417972650-1</unique-id> | ||
<command>kitty</command> | ||
<description>Open the terminal in this directory</description> | ||
<range></range> | ||
<patterns>*</patterns> | ||
<startup-notify/> | ||
<directories/> | ||
</action> | ||
<action> | ||
<icon>thunar</icon> | ||
<name>Open Thunar as a root </name> | ||
<submenu></submenu> | ||
<unique-id>1725291435347888-1</unique-id> | ||
<command>pkexec thunar %F</command> | ||
<description></description> | ||
<range>*</range> | ||
<patterns>*</patterns> | ||
<directories/> | ||
</action> | ||
<action> | ||
<icon>inode-symlink</icon> | ||
<name>Create a Link</name> | ||
<submenu></submenu> | ||
<unique-id>1725291634393236-2</unique-id> | ||
<command>ln -s %f 'Link to %n'</command> | ||
<description>Create a symLink</description> | ||
<range>*</range> | ||
<patterns>*</patterns> | ||
<directories/> | ||
<audio-files/> | ||
<image-files/> | ||
<other-files/> | ||
<text-files/> | ||
<video-files/> | ||
</action> | ||
</actions> |
2 changes: 2 additions & 0 deletions
2
files/system/etc/skel/.local/share/flatpak/overrides/com.google.Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Context] | ||
filesystems=~/.local/share/applications;~/.local/share/icons |
3 changes: 3 additions & 0 deletions
3
files/system/etc/skel/.local/share/flatpak/overrides/com.visualstudio.code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[Context] | ||
sockets=wayland; | ||
filesystems=xdg-run/podman; |
Oops, something went wrong.