Compare commits
No commits in common. "8bc101bdbcfe705f72e5ca8b29ef011c803974ab" and "e03eaad9abc4cd617fb22b12a49bd41260f610fc" have entirely different histories.
8bc101bdbc
...
e03eaad9ab
8
PKGBUILD
8
PKGBUILD
|
@ -10,10 +10,9 @@ depends=()
|
||||||
provides=('tromjaro-fixes')
|
provides=('tromjaro-fixes')
|
||||||
backup=()
|
backup=()
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
install='fixes-package.install'
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cp -R ../bin ../flatpak-overrides ../alpm-hooks ../systemd .
|
cp -R ../bin ../flatpak-overrides ../alpm-hooks .
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -22,11 +21,6 @@ package() {
|
||||||
install -Dm755 ${srcdir}/bin/standalone/* ${pkgdir}/usr/bin
|
install -Dm755 ${srcdir}/bin/standalone/* ${pkgdir}/usr/bin
|
||||||
install -Dm755 ${srcdir}/bin/periodic/* ${pkgdir}/usr/bin
|
install -Dm755 ${srcdir}/bin/periodic/* ${pkgdir}/usr/bin
|
||||||
|
|
||||||
# copy systemd units
|
|
||||||
install -d ${pkgdir}/usr/lib/systemd/system
|
|
||||||
install -Dm644 ${srcdir}/systemd/services/* ${pkgdir}/usr/lib/systemd/system
|
|
||||||
install -Dm644 ${srcdir}/systemd/timers/* ${pkgdir}/usr/lib/systemd/system
|
|
||||||
|
|
||||||
# copy alpm hooks
|
# copy alpm hooks
|
||||||
install -d ${pkgdir}/usr/share/libalpm/hooks
|
install -d ${pkgdir}/usr/share/libalpm/hooks
|
||||||
install -Dm644 ${srcdir}/alpm-hooks/* ${pkgdir}/usr/share/libalpm/hooks
|
install -Dm644 ${srcdir}/alpm-hooks/* ${pkgdir}/usr/share/libalpm/hooks
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
while :; do
|
||||||
rm -r ~/.themes/* 2> /dev/null
|
rm -r ~/.themes/* 2> /dev/null
|
||||||
rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck
|
rsync -av --progress /usr/share/themes/* ~/.themes/ --exclude Windowck
|
||||||
rsync -av --progress ~/.local/share/themes/* ~/.themes/ --exclude Windowck-dark
|
rsync -av --progress ~/.local/share/themes/* ~/.themes/ --exclude Windowck-dark
|
||||||
|
sleep 600
|
||||||
|
done
|
|
@ -11,6 +11,7 @@ sync_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"
|
||||||
}
|
}
|
||||||
|
|
||||||
sync_icon_theme() {
|
sync_icon_theme() {
|
||||||
# Get the current icon theme
|
# Get the current icon theme
|
||||||
icon_theme=$(xfconf-query -c xsettings -p /Net/IconThemeName)
|
icon_theme=$(xfconf-query -c xsettings -p /Net/IconThemeName)
|
||||||
|
@ -19,6 +20,7 @@ sync_icon_theme() {
|
||||||
sed -i "s/^icon_theme=.*$/icon_theme=$icon_theme/" "$HOME"/.config/qt6ct/qt6ct.conf
|
sed -i "s/^icon_theme=.*$/icon_theme=$icon_theme/" "$HOME"/.config/qt6ct/qt6ct.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while :; do
|
||||||
# Get the current system theme
|
# Get the current system theme
|
||||||
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)
|
theme_new=$(xfconf-query -c xsettings -p /Net/ThemeName)
|
||||||
# Get the current icon theme
|
# Get the current icon theme
|
||||||
|
@ -32,3 +34,6 @@ icon_theme_new=$(xfconf-query -c xsettings -p /Net/IconThemeName)
|
||||||
# The new values become the previous values
|
# The new values become the previous values
|
||||||
theme_prev=$theme_new
|
theme_prev=$theme_new
|
||||||
icon_theme_prev=$icon_theme_new
|
icon_theme_prev=$icon_theme_new
|
||||||
|
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
|
|
@ -66,6 +66,7 @@ fixfiles() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while :; do
|
||||||
user_new=$(ls -ad "$user"/*.desktop 2>/dev/null)
|
user_new=$(ls -ad "$user"/*.desktop 2>/dev/null)
|
||||||
flatpak_local_new=$(ls -ad "$flatpak_local"/*.desktop 2>/dev/null)
|
flatpak_local_new=$(ls -ad "$flatpak_local"/*.desktop 2>/dev/null)
|
||||||
flatpak_global_new=$(ls -ad "$flatpak_global"/*.desktop 2>/dev/null)
|
flatpak_global_new=$(ls -ad "$flatpak_global"/*.desktop 2>/dev/null)
|
||||||
|
@ -84,3 +85,5 @@ flatpak_global_old=$flatpak_global_new
|
||||||
pacman_local_old=$pacman_local_new
|
pacman_local_old=$pacman_local_new
|
||||||
pacman_global_old=$pacman_global_new
|
pacman_global_old=$pacman_global_new
|
||||||
snap_old=$snap_new
|
snap_old=$snap_new
|
||||||
|
sleep 5
|
||||||
|
done
|
|
@ -1,3 +0,0 @@
|
||||||
post_install() {
|
|
||||||
find /usr/lib/systemd/system/ -name "fix-*.timer" -type f -print0 | xargs -0 systemctl enable
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
# This service unit is for fix-flatpaks-theming script
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Fix flatpak theming script
|
|
||||||
Wants=fix-flatpaks-theming.timer
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/fix-flatpaks-theming
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,13 +0,0 @@
|
||||||
# This service unit is for fix-theming script
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Fix theming script
|
|
||||||
Wants=fix-theming.timer
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/fix-theming
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,13 +0,0 @@
|
||||||
# This service unit is for fix-tweaked-desktop-files script
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Fix tweaked desktop files script
|
|
||||||
Wants=fix-tweaked-desktop-files.timer
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/fix-tweaked-desktop-files
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,14 +0,0 @@
|
||||||
# This timer unit is for fix-flatpaks-theming service unit
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Run fix flatpaks theming script every 600 seconds
|
|
||||||
Requires=fix-flatpaks-theming.service
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
Unit=fix-flatpaks-theming.service
|
|
||||||
OnBootSec=1
|
|
||||||
OnUnitActiveSec=600
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
|
@ -1,14 +0,0 @@
|
||||||
# This timer unit is for fix-theming service unit
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Run fix theming script every 3 seconds
|
|
||||||
Requires=fix-theming.service
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
Unit=fix-theming.service
|
|
||||||
OnBootSec=1
|
|
||||||
OnUnitActiveSec=3
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
|
@ -1,14 +0,0 @@
|
||||||
# This timer unit is for fix-tweaked-desktop-files service unit
|
|
||||||
#
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Run fix tweaked desktop files script every 5 seconds
|
|
||||||
Requires=fix-tweaked-desktop-files.service
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
Unit=ffix-tweaked-desktop-files.service
|
|
||||||
OnBootSec=1
|
|
||||||
OnUnitActiveSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
Loading…
Reference in New Issue
Block a user