Compare commits

...

6 Commits

Author SHA1 Message Date
e59262486e
corepack up 2024-07-22 11:50:22 +03:00
30d93a4a8d
darkman/kvantummanager: --noAssign-All when switching 2024-07-22 11:48:54 +03:00
e56db14672
darkman & profile: use Kvantum for Qt dark mode switching 2024-07-22 11:39:29 +03:00
8397ffdb8b
darkman: fix xconf-query? 2024-07-22 10:03:03 +03:00
4bf4a73335
{firefox,chromium}: force install RegretsReporter
Recents events have caused wild YouTube recommendation list that I may want to clean up
2024-07-22 09:08:14 +03:00
442016debf
.pre-commit-config.yaml: specify language versions 2024-07-22 08:58:58 +03:00
9 changed files with 48 additions and 6 deletions

View File

@ -9,6 +9,10 @@ ci:
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
default_language_version:
node: lts
ruby: .ruby-version
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0

View File

@ -205,7 +205,7 @@
},
"regrets-reporter@mozillafoundation.org": {
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/regretsreporter/latest.xpi",
"installation_mode": "normal_installed"
"installation_mode": "force_installed"
},
"uBOLite@raymondhill.net": {
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin-lite/latest.xpi",

View File

@ -25,6 +25,7 @@
- [IPvFooBar](#ipvfoobar)
- [uBlock Origin Lite](#ublock-origin-lite)
- [AdNauseam](#adnauseam)
- [RegretsReporter](#regretsreporter)
- [uBlock Origin](#ublock-origin-1)
- [Bitwarden](#bitwarden)
- [Privacy Badger](#privacy-badger)
@ -166,6 +167,10 @@ Complementing PrivacyBadger with an adblocker so first profile runs have at
least something to block Malvertising now that I no longer enable NoScript out
of the box.
### RegretsReporter
- `obpoeflheeknapimliioeoefbfaakefn`
### uBlock Origin
- `odfafepnkmbhccpbejgmiehpchacaeak`

View File

@ -162,6 +162,12 @@
"toolbar_pin": "force_pinned",
"update_url": "https://clients2.google.com/service/update2/crx"
},
"obpoeflheeknapimliioeoefbfaakefn": {
"installation_mode": "force_installed",
"override_update_url": true,
"toolbar_pin": "default_unpinned",
"update_url": "https://clients2.google.com/service/update2/crx"
},
"odfafepnkmbhccpbejgmiehpchacaeak": {
"blocked_install_message": "uBlock Origin pitäisi olla jo asennettu Chrome-kaupasta.",
"installation_mode": "blocked"

View File

@ -1,3 +1,4 @@
export QT_STYLE_OVERRIDE=kvantum
export QT_QPA_PLATFORMTHEME="kde"
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland

View File

@ -1,7 +1,14 @@
if ! hash lsb_release 2> /dev/null; then
ERRORMESSAGE="lsb_release was not found, the wallpaper scripts cannot figure out the distribution"
echo $ERRORMESSAGE
#notify-send $ERRORMESSAGE
notify-send --app-name=darkman --icon=error $ERRORMESSAGE
exit 0
fi
if ! hash kvantummanager 2> /dev/null; then
ERRORMESSAGE="kvantummanager wasn't found, Qt theme switching won't work!"
echo $ERRORMESSAGE
notify-send --app-name="darkman" --icon=error $ERRORMESSAGE
exit 0
fi
@ -17,5 +24,14 @@ if [[ "$DARKMANGET" == "dark" ]]; then
elif [[ "$DARKMANGET" == "light" ]]; then
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Teema: $DARKMANGET" &)
else
echo "darkman: Something went wrong?"
ERRORMESSAGE="Something went wrong?"
echo $ERRORMESSAGE
notify-send --app-name="darkman" --icon=error $ERRORMESSAGE
fi
if [[ "$QT_STYLE_OVERRIDE" != "kvantum" ]]; then
ERRORMESSAGE="\$QT_STYLE_OVERRIDE is not 'kvantum', Qt theme switching has no effect!"
echo $ERRORMESSAGE
notify-send --app-name="darkman" --icon=error $ERRORMESSAGE
exit 0
fi

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
# This is all adapted from /usr/share/doc/darkman/examples/dark-mode.d/
# GTK Theme
@ -8,7 +10,10 @@
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Adwaita-dark" &)
# Xfce theme?
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Adwaita-dark' &)
(xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Adwaita-dark &)
# Plasma
(lookandfeeltool --apply "org.kde.breezedark.desktop" &)
# Kvantum Qt
(kvantummanager --set KvGnomeDark --noAssign-All &)

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.sh
# This is all adapted from /usr/share/doc/darkman/examples/light-mode.d/
# GTK Theme
@ -8,7 +10,10 @@
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
# Xfce theme?
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Breeze' &)
(xfconf-query --channel xsettings --create --type string --property /Net/ThemeName --set Breeze &)
# Plasma
(lookandfeeltool --apply "org.kde.breeze.desktop" &)
# Kvantum Qt
(kvantummanager --set KvGnome --noAssign-All &)

2
package.json vendored
View File

@ -2,6 +2,6 @@
"devDependencies": {
"@aminda/global-prettier-config": "2024.28.4"
},
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903",
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",
"prettier": "@aminda/global-prettier-config"
}