57 Commits

Author SHA1 Message Date
a2c0ce3ec1 another gpt with inotifywait addition
seems to work....
2023-08-03 19:32:30 +02:00
17237c513b a bunch of fixes 2023-08-03 17:06:26 +02:00
5a4ab6f90e roko's changes 2023-08-03 16:42:27 +02:00
b521a23108 simpliffied code plus fix for the libadwaita theming 2023-08-03 16:40:26 +02:00
68321075f6 mor compatibility with the theming 2023-08-03 03:19:16 +02:00
b7ff344fe4 changed 1 icon 2023-08-02 04:49:43 +02:00
7586338b19 tblock icon fix 2023-06-04 16:01:08 +02:00
e1025ea57a bip sound mute improvement 2023-06-04 15:26:45 +02:00
b666bb94db improve the bip sound removal script 2023-06-04 15:26:24 +02:00
4054011068 cleaned and improved thezombie icons fixes by Roko 2023-02-08 13:42:59 +01:00
3a669f0664 Merge pull request 'Clean code and useful comments' (#20) from rokosun-patch-1 into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/20
2023-02-08 13:42:19 +01:00
rokosun
a0fd0f4856 Add support for all package managers by using $XDG_DATA_DIRS instead
Automatically find out all other_applications_dirs by looking at the $XDG_DATA_DIRS environment variable.
Also fix bug by declaring variables separately.
2023-02-06 19:50:58 +01:00
rokosun
fb3b3e1cf5 Clean code and useful comments
Changed a lot of things but mostly to make the code easy to read and understand.
2023-02-04 08:33:57 +01:00
3140881902 one small icon addition 2023-02-03 23:26:31 +01:00
96761d6425 update for the new icons 2023-01-29 16:22:14 +01:00
249cbe2cc6 adding rokos commit 2022-12-20 21:44:45 +01:00
21b0d7f704 Merge pull request 'Use the -u option in sort, simplify array $existing_dirs' (#19) from rokosun-patch-1 into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/19
2022-12-20 21:32:58 +01:00
rokosun
1b93906376 Use the -u option in sort, simplify array $existing_dirs 2022-12-14 13:37:20 +01:00
d56fc7627b Update 'PKGBUILD' 2022-10-06 02:22:53 +02:00
rokosun
6e124a74f0 Add back the newline character at the end of files (#18)
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/18
2022-10-02 15:29:49 +02:00
1c40099be8 Merge pull request 'Avoid repeating mkdir command' (#17) from rokosun-patch-2 into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/17
2022-10-02 03:27:18 +02:00
6dea6c5a89 Merge pull request 'Remove unnecessary if statements' (#16) from rokosun-patch-1 into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/16
2022-10-02 03:26:53 +02:00
rokosun
f9d3bdbc08 Avoid repeating mkdir command 2022-10-01 18:43:10 +02:00
rokosun
99c46b44ab Remove unnecessary if statements 2022-10-01 18:30:00 +02:00
8ae2c3d651 fixing the no .themes folder in Home 2022-10-01 01:53:25 +02:00
b4d8fccb7d Merge pull request 'create the .themes directory if it does not exist' (#15) from tio-patch-1 into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/15
2022-10-01 01:52:59 +02:00
e966e1b6ba create the .themes directory if it does not exist 2022-10-01 01:46:59 +02:00
c69a3bb163 Update 'PKGBUILD' 2022-09-29 21:39:21 +02:00
d7a1e09a9a Deleted the hooks and scripts for reinstall-for-qt.
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/14

We do it without them now. Thus no more deleting of the database lock file.
2022-09-29 21:38:58 +02:00
bcf281ea47 Delete 'alpm-hooks/reinstall-for-qt6.hook' 2022-09-29 20:30:52 +02:00
87ea2f57ff Delete 'alpm-hooks/reinstall-for-qt5.hook' 2022-09-29 20:30:45 +02:00
94eee04395 Delete 'bin/standalone/reinstall-for-qt6' 2022-09-29 20:30:31 +02:00
56d4691663 Delete 'bin/standalone/reinstall-for-qt5' 2022-09-29 20:28:36 +02:00
f64c7a0467 Update 'PKGBUILD' 2022-09-29 19:03:36 +02:00
864d69b582 Merge pull request 'testing' (#13) from testing into main
Reviewed-on: https://git.trom.tf/TROMjaro/fixes-package/pulls/13
2022-09-29 19:03:13 +02:00
3cf00d0cd2 small typo 2022-09-29 18:19:19 +02:00
9fa5ce277e Add 'alpm-hooks/reinstall-for-qt6.hook' 2022-09-29 17:52:23 +02:00
1a9ed580a0 Update 'alpm-hooks/reinstall-for-qt5.hook' 2022-09-29 17:52:01 +02:00
c07cb59ff0 Add 'bin/standalone/reinstall-for-qt6' 2022-09-29 17:51:19 +02:00
4c96bb9406 Update 'bin/standalone/reinstall-for-qt5' 2022-09-29 17:50:55 +02:00
700235c52e Using the AUR to build these packages
They need to be built against the system's qt5-base and qt6-base versions, else all qt apps will fail to work
2022-09-29 17:33:48 +02:00
9f9713a673 Update 'PKGBUILD' 2022-09-29 00:03:38 +02:00
11f5d9da18 removed timeshift autosnap config 2022-09-28 22:25:01 +02:00
58b415ae8d Delete 'timeshift-autosnap.conf' 2022-09-28 22:24:35 +02:00
275b811f0f added timeshift-autosnap.conf file 2022-09-28 18:02:05 +02:00
2268c4c2bd Add 'timeshift-autosnap.conf' 2022-09-28 17:57:22 +02:00
ca054b9b6e added export QT_AUTO_SCREEN_SCALE_FACTOR=1 2022-09-28 17:55:45 +02:00
a729acbbef added "xset b off" to remove the beep sound 2022-09-28 17:47:28 +02:00
rokosun
d909158646 No need to edit qt configuration files anymore 2022-09-28 16:28:05 +02:00
61afd40bfa Update 'PKGBUILD' 2022-09-28 15:57:47 +02:00
66feb5daf6 added tromjaro-fixes.sh 2022-09-28 15:56:31 +02:00
af82c8bd40 Update 'tromjaro-fixes.sh' 2022-09-28 15:46:39 +02:00
2f029b03a7 create tromjaro-fixes.sh 2022-09-28 15:43:44 +02:00
22bcfe821b Update 'PKGBUILD' 2022-09-28 15:42:16 +02:00
fd94f7ade8 added qqc2-desktop-style as dependency 2022-09-28 03:06:16 +02:00
9fee6265ba Update 'PKGBUILD' 2022-09-22 22:21:13 +02:00
9f1b15705f Update 'PKGBUILD' 2022-09-22 20:57:49 +02:00
11 changed files with 182 additions and 141 deletions

View File

@@ -9,4 +9,4 @@ remove:
pamac-installer --remove tromjaro-fixes pamac-installer --remove tromjaro-fixes
clean: clean:
$(RM) -rf src/ pkg/ *.tar.xz $(RM) -rf src/ pkg/ *.tar.xz

View File

@@ -1,7 +1,7 @@
# Maintainer: TROM <contact@tromsite.com> # Maintainer: TROM <contact@tromsite.com>
pkgname=tromjaro-fixes pkgname=tromjaro-fixes
pkgver=1.2.5 pkgver=1.6
pkgrel=1 pkgrel=0
pkgdesc="Various fixes for TROMjaro OS" pkgdesc="Various fixes for TROMjaro OS"
arch=(any) arch=(any)
url="" url=""
@@ -11,14 +11,15 @@ depends=('xfce4-appfinder'
'rsync' 'rsync'
'inotify-tools' 'inotify-tools'
'qt5-styleplugins' 'qt5-styleplugins'
'qt5ct' 'qt6gtk2'
'qt6ct' 'qqc2-desktop-style')
'qt6gtk2')
provides=('tromjaro-fixes') provides=('tromjaro-fixes')
backup=() backup=()
options=(!strip) options=(!strip)
source=('scalable.zip::https://www.drive.tromsite.com/s/y8Gm7q6wLrXmtEN/download') source=('scalable.zip::https://www.drive.tromsite.com/s/y8Gm7q6wLrXmtEN/download'
sha256sums=('SKIP') 'tromjaro-fixes.sh')
sha256sums=('SKIP'
'SKIP')
install='fixes-package.install' install='fixes-package.install'
prepare() { prepare() {
cp -R ../bin ../flatpak-overrides ../alpm-hooks ../systemd . cp -R ../bin ../flatpak-overrides ../alpm-hooks ../systemd .
@@ -41,12 +42,17 @@ package() {
# copy systemd units # copy systemd units
install -d ${pkgdir}/usr/lib/systemd/user install -d ${pkgdir}/usr/lib/systemd/user
install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/user install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/user
# copy zafiro icons dark # copy zafiro dark icons
install -d ${pkgdir}/usr/local/share/icons/zafiro-dark/apps/scalable install -d ${pkgdir}/usr/local/share/icons/zafiro-dark/apps/scalable
install -Dm755 ${srcdir}/scalable/* ${pkgdir}/usr/local/share/icons/zafiro-dark/apps/scalable install -Dm755 ${srcdir}/scalable/* ${pkgdir}/usr/local/share/icons/zafiro-dark/apps/scalable
# copy zafiro icons # copy zafiro icons
install -d ${pkgdir}/usr/local/share/icons/zafiro/apps/scalable install -d ${pkgdir}/usr/local/share/icons/zafiro/apps/scalable
install -Dm755 ${srcdir}/scalable/* install -Dm755 ${srcdir}/scalable/* ${pkgdir}/usr/local/share/icons/zafiro/apps/scalable
# copy tromjaro-fixes.sh
install -d ${pkgdir}/etc/profile.d/
install -Dm644 ${srcdir}/tromjaro-fixes.sh ${pkgdir}/etc/profile.d/
} }

View File

@@ -8,4 +8,4 @@ Target = *
[Action] [Action]
Description = Refreshing the chaotic-aur keyring... Description = Refreshing the chaotic-aur keyring...
When = PreTransaction When = PreTransaction
Exec = /usr/bin/fix-chaotic-keyring Exec = /usr/bin/fix-chaotic-keyring

View File

@@ -1,11 +0,0 @@
[Trigger]
Operation = Upgrade
Type = Package
Target = qt5-base
Target = qt6-base
[Action]
Description = Reinstalling needed packages for theming QT applications...
When = PostTransaction
Exec = /usr/bin/reinstall-for-qt

View File

@@ -1,16 +1,30 @@
#!/bin/bash #!/bin/bash
shared_themes_dir=/usr/share/themes/
home_local_themes_dir="$HOME/.local/share/themes/"
source_theme_dirs=("$shared_themes_dir" "$home_local_themes_dir")
target_themes_dir="$HOME/.themes"
if [ ! -e "$home_local_themes_dir" ]; then # Set the directories
mkdir -p "$home_local_themes_dir"
echo "Directory $home_local_themes_dir is created."
fi
echo "Set watch for" "${source_theme_dirs[@]}" "directories ..." shared\_themes\_dir=/usr/share/themes/
while inotifywait -qr -e 'modify,attrib,move,move_self,create,delete,delete_self,unmount' "${source_theme_dirs[@]}"; do local\_themes\_dir="$HOME/.themes/"
rsync -av --delete --progress "${source_theme_dirs[@]}" "$target_themes_dir"
echo "Directory $target_themes_dir is synchronized with" "${source_theme_dirs[@]}" # Function to synchronize themes from shared to local directory
done
sync\_themes() {
rsync -av --delete --progress "$shared\_themes\_dir" "$local\_themes\_dir"
echo "Directory $local\_themes\_dir is synchronized with $shared\_themes\_dir"
}
# Initial synchronization
sync\_themes
# Function to monitor both shared and local themes directories
monitor\_themes() {
inotifywait -m -r -e modify,attrib,move,move\_self,create,delete,delete\_self,unmount "$shared\_themes\_dir" "$local\_themes\_dir" |
while read -r events; do
sync\_themes
done
}
# Start monitoring in the background
monitor\_themes

View File

@@ -1,45 +1,22 @@
#!/bin/bash #!/bin/bash
sync_theme() { sync_theme() {
# Get the current system theme # Get the current system theme
theme=$(xfconf-query -c xsettings -p /Net/ThemeName) theme=$(xfconf-query -c xsettings -p /Net/ThemeName)
# Find the best match for the xfwm4 theme that corresponds with the current system theme # Enable syncing the current theme with xfwm4 if not already enabled
xfwm4_theme=$(find /usr/share/themes/ /usr/local/share/themes/ "$HOME"/.themes/ "$HOME"/.local/share/themes/ -mindepth 2 -maxdepth 2 -type d -name xfwm4 -printf '%h\n' 2>/dev/null | grep -o "/${theme}[^/]*$" | sort | head -n1) [ "$(xfconf-query -c xsettings -p /Xfce/SyncThemes)" != 'true' ] && xfconf-query -c xsettings -p /Xfce/SyncThemes -n -t bool -s true
# If a match is not found then use the Default theme
[ -z "$xfwm4_theme" ] && xfwm4_theme='Default'
# Apply the xfwm4 theme
xfconf-query -c xfwm4 -p /general/theme -n -t string -s "${xfwm4_theme#/}"
# Apply the current theme with gsettings # Apply the current theme with gsettings
gsettings set org.gnome.desktop.interface gtk-theme "$theme" gsettings set org.gnome.desktop.interface gtk-theme "$theme"
}
# Apply the current theme for GTK apps in flatpak
setvalue() {
grep -qz "^\[Appearance\][^\[]*$1=$2" "$file" && return # Define the path to the flatpak override directory
if grep -qz "^\[Appearance\][^\[]*$1=" "$file"; then flatpak_override_dir="$HOME/.local/share/flatpak/overrides"
sed -i "/\[Appearance\]/,/^\s*$1=/{s/^\s*$1=.*$/$1=$2/}" "$file" # Create the directory if it doesn't exist
else [ -d "$flatpak_override_dir" ] || mkdir -p "$flatpak_override_dir" || { echo 'failed creating directory!'; return 1; }
sed -i "/\[Appearance\]/a $1=$2" "$file" # Write the theme configuration to the global override file
fi echo "[Environment]
} GTK_THEME=$theme" > "$flatpak_override_dir/global"
sync_icon_theme() {
# Get the current icon theme
icon_theme=$(xfconf-query -c xsettings -p /Net/IconThemeName)
# Apply the same theme in qt5ct and qt6ct configuration
for file in "$HOME"/.config/qt5ct/qt5ct.conf "$HOME"/.config/qt6ct/qt6ct.conf; do
# Create the config directory
dir=$(dirname "$file")
mkdir -p "$dir" || { echo "failed to make directory $dir"; continue; }
# Create the config file appropriately
if grep -q '^\[Appearance\]' "$file"; then
setvalue 'icon_theme' "$icon_theme"
setvalue 'style' 'gtk2'
elif grep -q '\S' "$file"; then
tail -n1 "$file" | grep -qx '\s*' && begin='' || begin='\n'
printf '%b[Appearance]\nicon_theme=%s\nstyle=gtk2\n' "$begin" "$icon_theme" >> "$file"
else
printf '[Appearance]\nicon_theme=%s\nstyle=gtk2\n' "$icon_theme" > "$file"
fi
done
} }
sync_font() { sync_font() {
@@ -50,13 +27,12 @@ sync_font() {
} }
sync_theme sync_theme
sync_icon_theme
sync_font sync_font
# Monitor when the user changes their system theme or font in XFCE and sync them as needed
while read -r line; do while read -r line; do
case "$line" in case "$line" in
'set: /Net/ThemeName') sync_theme ;; 'set: /Net/ThemeName') sync_theme ;;
'set: /Net/IconThemeName') sync_icon_theme ;;
'set: /Gtk/FontName') sync_font ;; 'set: /Gtk/FontName') sync_font ;;
esac esac
done < <(xfconf-query -c xsettings -m) done < <(xfconf-query -c xsettings -m)

View File

@@ -1,79 +1,120 @@
#!/bin/bash #!/bin/bash
# Exit out if the same script is already running in the background
pidof -sq -o %PPID -x "$(basename "$0")" && exit pidof -sq -o %PPID -x "$(basename "$0")" && exit
datastore="$HOME"/.local/share/fix-zombie-appicons
bakdir="$datastore"/backup
data="$datastore"/tweaked-desktop-files
mkdir -p "$bakdir" || { echo "failed to make directory $bakdir"; exit 1; } # Setting read-only variables
declare -r datadir="$HOME"/.local/share/fix-zombie-appicons
declare -r backup_dir="$datadir"/backup
declare -r datafile="$datadir"/tweaked-desktop-files
# Directories where desktop files are stored # Desktop files stored here will take precedence over the other ones
user="$HOME"/.local/share/applications declare -r home_local_applications_dir="$HOME/.local/share/applications"
pacman_global=/usr/share/applications
pacman_local=/usr/local/share/applications
flatpak_global=/var/lib/flatpak/exports/share/applications
flatpak_local="$HOME"/.local/share/flatpak/exports/share/applications
snap=/var/lib/snapd/desktop/applications
mkdir -p "$user" "$flatpak_local" || { echo "failed to make directoris $user & $flatpak_local"; exit 1; } # Go through each item in $XDG_DATA_DIRS to find all other directories
# except home_local_applications_dir where desktop files are stored, and
# save these to other_applications_dirs
while read -r dir; do
full_dir_path=${dir%/}/applications
other_applications_dirs+=("$full_dir_path")
detectfiles() { # Directories inside user's home directory
for file in "$user"/*.desktop; do [[ "$full_dir_path" = "$HOME"/* ]] && dirs_inside_user_home+=("$full_dir_path")
name=$(basename "$file") || continue
[ -d "$file" ] || grep -xq "$name" "$data" && continue done < <(echo "$XDG_DATA_DIRS" | tr ':' '\n' | sort -u | grep -vFx "$home_local_applications_dir")
[ -f "$pacman_global/$name" ] ||
[ -f "$pacman_local/$name" ] || declare -r other_applications_dirs dirs_inside_user_home
[ -f "$flatpak_global/$name" ] ||
[ -f "$flatpak_local/$name" ] || # Create tempfile which is used by the fix_desktop_files function
[ -f "$snap/$name" ] && tempfile="$(mktemp)"
echo "$name" >> "$data" trap 'rm $tempfile' EXIT # Delete tempfile when the script exits
declare -r tempfile
# This function will check for new desktop files in home_local_applications_dir and
# record them in datafile if the same file is found in any of the other_applications_dirs.
detect_new_desktop_files() {
for file in "$home_local_applications_dir"/*.desktop; do
# This is added as a failsafe to ensure its a file and not a directory
[ -d "$file" ] && continue
filename=$(basename "$file")
# Continue looping if the filename is already recorded in the datafile
grep -xq "$filename" "$datafile" && continue
# If the same file is present in any of the other_applications_dirs then add its filename to datafile
for dir in "${other_applications_dirs[@]}"; do
[ -f "$dir/$filename" ] && echo "$filename" >> "$datafile" && break
done
done done
} }
fixfiles() { # The following function will:
lastmod=$(stat -c "%Y" "$data") # 1. Go through all the files recorded in datafile and move them to backup_dir if
tmp="$(mktemp)" # the same file is not found in other_applications_dirs anymore.
trap 'rm $tmp' EXIT # 2. Go through all the bakked up files in backup_dir and move them back to
[ -f "$data" ] && cp "$data" "$tmp" && copied='true' # its original_file_path if the same file is present in any of
lineno=0 # the other_applications_dirs. This will not overwrite if a new
[ "$copied" = 'true' ] && while IFS= read -r name; do # file already exists at original_file_path.
((lineno++))
file="$user/$name"
[ -f "$file" ] || { sed -i "${lineno}d" "$tmp" && ((lineno--)) ; continue; }
[ -f "$pacman_global/$name" ] ||
[ -f "$pacman_local/$name" ] ||
[ -f "$flatpak_global/$name" ] ||
[ -f "$flatpak_local/$name" ] ||
[ -f "$snap/$name" ] ||
mv "$file" "$bakdir/$name.bak"
done < "$data"
[ "$copied" = 'true' ] && [ "$(stat -c '%Y' "$data")" = "$lastmod" ] && sort "$tmp" | uniq > "$data" fix_desktop_files() {
# This is added as a failsafe to avoid overwriting datafile in case the file got edited during this period
local -r last_modified_time=$(stat -c "%Y" "$datafile")
# Copy datafile to tempfile because its not possible to directly edit the file inside a while-read loop
[ -f "$datafile" ] && cp "$datafile" "$tempfile" && local -r datafile_copied='true'
local -i line_number=0
for bakfile in "$bakdir"/*.desktop.bak; do # Loop through each line in datafile
name=$(basename "${bakfile%.bak}") || continue [ "$datafile_copied" = 'true' ] && while IFS='' read -r filename; do
origfile="$user/$name" line_number+=1
[ -f "$origfile" ] && continue file="$home_local_applications_dir/$filename"
[ -f "$pacman_global/$name" ] || # If the file don't exist anymore then remove the line from datafile (as tempfile) and continue looping
[ -f "$pacman_local/$name" ] || [ -f "$file" ] || { sed -i "${line_number}d" "$tempfile" && line_number+=-1 ; continue; }
[ -f "$flatpak_global/$name" ] ||
[ -f "$flatpak_local/$name" ] || # If the same file is not present in any of the other_applications_dirs then move the file to backup_dir
[ -f "$snap/$name" ] && unset file_exists
mv "$bakfile" "$origfile" for dir in "${other_applications_dirs[@]}"; do
[ -f "$dir/$filename" ] && file_exists='true' && break
done
[ "$file_exists" != 'true' ] && mv "$file" "$backup_dir/$filename.bak"
done < "$datafile"
# Write the contents from tempfile back to datafile after sorting and removing duplicate lines
[ "$datafile_copied" = 'true' ] && [ "$(stat -c '%Y' "$datafile")" = "$last_modified_time" ] && sort -u "$tempfile" > "$datafile"
for bakfile in "$backup_dir"/*.desktop.bak; do
filename=$(basename "${bakfile%.bak}")
original_file_path="$home_local_applications_dir/$filename"
# Continue looping if a new file is already present at the original_file_path,
# this will prevent the backup from overwriting the new file
[ -f "$original_file_path" ] && continue
# If the same bakked up file is present in any of the other_applications_dirs then move it back to its original_file_path
for dir in "${other_applications_dirs[@]}"; do
[ -f "$dir/$filename" ] && mv "$bakfile" "$original_file_path" && break
done
done done
} }
existing_dirs=() # Create some directories in the user's home directory if they don't already exist
for dir in "$user" "$pacman_global" "$pacman_local" "$flatpak_global" "$flatpak_local" "$snap"; do mkdir -p "$datadir" "$backup_dir" "$home_local_applications_dir" ||
[ -d "$dir" ] && existing_dirs=("${existing_dirs[@]}" "$dir") { echo "failed to make directories $datadir, $backup_dir & $home_local_applications_dir"; exit 1; }
# Try to create dirs_inside_user_home if they don't already exist
[ ${#dirs_inside_user_home[@]} -gt 0 ] && mkdir -p "${dirs_inside_user_home[@]}"
# Check which directories currently exist on the user's system so that inotifywait can monitor them for changes
for dir in "$home_local_applications_dir" "${other_applications_dirs[@]}"; do
[ -d "$dir" ] && currently_existing_dirs+=("$dir")
done done
detectfiles # Both functions will be run once when the script first starts
fixfiles detect_new_desktop_files
fix_desktop_files
while read -r line; do # Inotifywait monitors currently_existing_dirs and the functions are run each time when there is a change in relevant directories
if [ "$line" = "$user/" ]; then while IFS='' read -r line; do
detectfiles if [ "$line" = "$home_local_applications_dir/" ]; then
detect_new_desktop_files
else else
fixfiles fix_desktop_files
fi fi
done < <(inotifywait -qm --format '%w' --include '\.desktop$' -e 'move,move_self,create,delete,delete_self,unmount' "${existing_dirs[@]}") done < <(inotifywait -qm --format '%w' --include '\.desktop$' -e 'move,move_self,create,delete,delete_self,unmount' "${currently_existing_dirs[@]}")

View File

@@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
pacman-key --populate chaotic pacman-key --populate chaotic

View File

@@ -1,5 +0,0 @@
#!/bin/bash
parent_process=$(ps -p $PPID -o comm=)
[ "$parent_process" = 'pacman' ] || [ "$parent_process" = 'pamac-daemon' ] || exit
rm /var/lib/pacman/db.lck
pacman --noconfirm -S qt5-styleplugins qt6gtk2

View File

@@ -1,2 +1,5 @@
[Context] [Context]
filesystems=~/.themes; filesystems=~/.config/gtk-4.0;~/.themes;~/.icons;xdg-config/gtk-4.0;xdg-config/Kvantum:ro;
[Environment]
QT_STYLE_OVERRIDE=kvantum

17
tromjaro-fixes.sh Normal file
View File

@@ -0,0 +1,17 @@
# Sync the QT with GTK
export QT_QPA_PLATFORMTHEME="gtk2"
export QT_QUICK_CONTROLS_STYLE="gtk2"
export QT_AUTO_SCREEN_SCALE_FACTOR=1
# Show color output in less
export LESS=-R
export LESS_TERMCAP_mb=$'\e[1;31m'
export LESS_TERMCAP_md=$'\e[1;36m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;44;33m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;32m'
export LESS_TERMCAP_ue=$'\e[0m'
# Disable the beep sound
[ -n "$DISPLAY" ] && xset b off