1
0

6 کامیت‌ها bf9aa8dfb6 ... 45bf8514d6

نویسنده SHA1 پیام تاریخ
  Daniel Sheffield 45bf8514d6 stop sleep-inhibitor-daemon spamming logs 2 هفته پیش
  Daniel Sheffield 4537530b1b switch to NetworkManager hook - but file must be owned by root :( 2 هفته پیش
  Daniel Sheffield 55875a5e0b add systemd service override and unit to patch cups-browsed 2 هفته پیش
  Daniel Sheffield 7ceb7ca9a2 add widescreen profiles for so-called widescreen DVDs 2 هفته پیش
  Daniel Sheffield 9d61d5c6ec add default audio language to mplayer config 2 هفته پیش
  Daniel Sheffield 0e5f90d96d support bash 5.2 2 هفته پیش

+ 11 - 0
cups-browsed/system/etc/NetworkManager/dispatcher.d/99-cups-browsed

@@ -0,0 +1,11 @@
+#!/bin/sh
+INTERFACE="wlan0"  # Change to your main interface
+
+case "$2" in
+    up)
+        if [ "$1" = "$INTERFACE" ]; then
+            : Restart cups-browsed once online
+            nm-online -s -t 30 && systemctl restart cups-browsed
+        fi
+        ;;
+esac   

+ 42 - 0
mplayer/.mplayer/config

@@ -1,3 +1,45 @@
 ao=alsa:device=hw=0.3 # alsactl info
 ac=hwac3
 nosub=1
+alang=en
+
+[ws]
+# For "widescreen" (NTSC) DVD
+#
+#  * 16:9 cinematic (or wider)
+#  * 4:3 monitor
+#
+vf=crop=720:360
+
+
+[ws-ntsc]
+# For "widescreen" (NTSC) DVD
+#
+#  * 16:9 cinematic (or wider)
+#  * 4:3 monitor
+#
+vf=crop=720:360
+
+[nvws-ntsc]
+# For "widescreen" (NTSC) DVD
+#
+#  * 1.65:1 cinematic
+#  * 4:3 monitor
+#
+vf=crop=720:388
+
+[ws-pal]
+# For "widescreen" (PAL) DVD
+#
+#  * 16:9 cinematic (or wider)
+#  * 4:3 monitor
+#
+vf=crop=720:432
+
+[nvws-pal]
+# For "widescreen" (PAL) DVD
+#
+#  * 1.65:1 cinematic
+#  * 4:3 monitor
+#
+vf=crop=720:465

+ 1 - 1
mythtv/system/usr/local/bin/sleep_inhibitor_daemon.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #set -euo pipefail
-set -x
+#set -x
 
 while true
 do

+ 6 - 4

@@ -4,14 +4,16 @@ set -euo pipefail
 DOTFILES_DIR="${DOTFILES_DIR:=}"
 [ "$DOTFILES_DIR" ] || DOTFILES_DIR=$(pwd)
 
-msg=${|
+msg=$(
     mapfile -d $'\0' -t pkgs < <(
         find "$DOTFILES_DIR" -maxdepth 1 -mindepth 1 -follow \
             -type d \! -name '.*' \
             -printf '%f\0'
-    )
-    local IFS=,; REPLY="${pkgs[*]}";
-}
+    ) >/dev/null
+    #local IFS=,; REPLY="${pkgs[*]}";
+    IFS=,
+    echo "${pkgs[*]}"
+)
 
 action="${1:?action must be apply, update, or remove}"
 package="${2:?package must be one of $msg}"