mirror of
https://github.com/endeavouros-team/eos-bash-shared.git
synced 2026-06-13 01:34:36 +00:00
[eos-bash-shared] wezterm to supported terminals; rate-mirrors to changelogs.conf; changed notify-send parameters in eos_notification_all()
This commit is contained in:
@@ -61,13 +61,13 @@ PKG_CHANGELOGS+=(
|
||||
kernel-install-for-dracut "https://gitlab.com/dalto.8/kernel-install-for-dracut/commits"
|
||||
keyserver-rank "https://github.com/endeavouros-team/PKGBUILDS/commits/master/keyserver-rank"
|
||||
# lsb-release "https://gitlab.archlinux.org/archlinux/packaging/packages/lsb-release/commits"
|
||||
mkinitcpio-openswap "https://aur.archlinux.org/cgit/aur.git/log/?h=mkinitcpio-openswap"
|
||||
# mkinitcpio-openswap "https://aur.archlinux.org/cgit/aur.git/log/?h=mkinitcpio-openswap"
|
||||
nvidia-hook "https://github.com/endeavouros-team/PKGBUILDS/commits/master/nvidia-hook"
|
||||
nvidia-inst "https://github.com/endeavouros-team/PKGBUILDS/commits/master/nvidia-inst"
|
||||
pahis "https://github.com/endeavouros-team/PKGBUILDS/commits/master/pahis"
|
||||
paru "https://github.com/Morganamilo/paru/releases|https://github.com/Morganamilo/paru/commits"
|
||||
rami "https://github.com/endeavouros-team/PKGBUILDS/commits/master/rami"
|
||||
# rate-mirrors "https://github.com/westandskif/rate-mirrors/releases|https://github.com/westandskif/rate-mirrors/commits"
|
||||
rate-mirrors "https://github.com/westandskif/rate-mirrors/releases|https://github.com/westandskif/rate-mirrors/commits"
|
||||
reflector-bash-completion "https://github.com/endeavouros-team/PKGBUILDS/commits/master/reflector-bash-completion"
|
||||
reflector-simple "https://github.com/endeavouros-team/PKGBUILDS/commits/master/reflector-simple"
|
||||
welcome "https://github.com/endeavouros-team/welcome/commits"
|
||||
|
||||
+9
-7
@@ -288,7 +288,7 @@ eos_workaround_fix_critical_urgency() {
|
||||
# value 0 for --expire-time does not work, any other value works (?)
|
||||
# or don't use --expire-time at all.
|
||||
|
||||
[ "$urgency" = critical ] || cmd+=(--expire-time="$expiretime")
|
||||
[ "$urgency" = critical ] || cmd+=(--expire-time="'$expiretime'")
|
||||
}
|
||||
|
||||
eos_notification() { # sending notification to the current user
|
||||
@@ -384,23 +384,24 @@ eos_notification_all() { # sending notification to all users
|
||||
[ "$DISPLAY" ] && display="DISPLAY=$DISPLAY"
|
||||
|
||||
for user in $users ; do
|
||||
userid=$(/usr/bin/id -u "$user")
|
||||
userid="$(/usr/bin/id -u "$user")"
|
||||
wayland_display=$(GetWaylandDisplay "$userid")
|
||||
eos_notification_all_debug "user = '$user'; display = '$display'; wayland_display = '$wayland_display'"
|
||||
cmd=(
|
||||
$display # Note: format is VARIABLE=value (or empty)
|
||||
$wayland_display # Note: format is VARIABLE=value (or empty)
|
||||
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$userid/bus
|
||||
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$userid/bus"
|
||||
notify-send
|
||||
--icon="$icon"
|
||||
--urgency="$urgency"
|
||||
--app-name="$appname"
|
||||
--icon="'$icon'"
|
||||
--urgency="'$urgency'"
|
||||
--app-name="'$appname'"
|
||||
"'$summary'"
|
||||
"'$body'"
|
||||
)
|
||||
eos_workaround_fix_critical_urgency
|
||||
|
||||
/usr/bin/su "$user" -c "${cmd[*]}"
|
||||
# /usr/bin/su "$user" -c "${cmd[*]}"
|
||||
/usr/bin/sudo -u "$user" bash -c "${cmd[*]}"
|
||||
done
|
||||
}
|
||||
|
||||
@@ -449,6 +450,7 @@ eos_yad_terminal() {
|
||||
sakura
|
||||
ghostty
|
||||
foot # wayland
|
||||
wezterm
|
||||
)
|
||||
local xx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user