Skip to content

Commit a4ca78d

Browse files
committed
Add misc updates
1 parent 8eebb17 commit a4ca78d

File tree

10 files changed

+48
-11
lines changed

10 files changed

+48
-11
lines changed

.local/share/nvim/spell/en.utf-8.add

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,12 @@ Birkenbihl
252252
neovim
253253
tyres
254254
TOC
255+
Rückersdorf
256+
Blogartikel
257+
tv
258+
understimulated
259+
Uncategorized
260+
Ottifanten
261+
LSP
262+
OCP
263+
OSM
117 Bytes
Binary file not shown.

.zsh/apps.zsh

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ wait_for_newsboat() {
118118
fi
119119
}
120120
alias new="wait_for_newsboat clean"
121-
alias pod="wait_for_newsboat pod"
122-
alias misc="wait_for_newsboat misc"
123-
alias ma="wait_for_newsboat manga"
121+
# alias pod="wait_for_newsboat pod"
122+
# alias misc="wait_for_newsboat misc"
123+
# alias ma="wait_for_newsboat manga"
124124
nomoreent() {
125125
# echo "No youtube and gaming entertainment for now"
126126
# return 1
@@ -264,3 +264,25 @@ n() {
264264
echo "Wrote to $file"
265265
fi
266266
}
267+
268+
ssm() { # cd into currently playing mpd album
269+
ALBUM=`dirname "$(mpc-get file)"`
270+
source ~/scripts/mpd/shared-mpd-variables
271+
272+
if [ "$IS_SERVER" -eq 1 ]; then
273+
DIR="usb/music/$ALBUM"
274+
ssh pi -t "cd '$DIR'; zsh"
275+
276+
exit 0
277+
else
278+
DIR="$ORG_MEDIA/music/$ALBUM"
279+
cd $DIR
280+
fi
281+
}
282+
283+
## pots
284+
alias pta="pots trans add"
285+
alias ptl="pots trans list"
286+
alias pte="pots trans edit"
287+
alias ptr="pots trans remove"
288+
alias pv="pots view"

etc/pacman.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ HoldPkg = pacman glibc
2121
Architecture = auto
2222

2323
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
24-
IgnorePkg = ib-tws ausweisapp2 remind bluez bluez-libs bluez-utils nodejs lemonbar-xft-git-local libmagick6 mongosh-bin ceph-libs qt5-webkit
24+
# python-pillow breaks ueberzug: https://github.com/ueber-devel/ueberzug/issues/15
25+
IgnorePkg = ausweisapp2 remind bluez bluez-libs bluez-utils nodejs lemonbar-xft-git-local libmagick6 mongosh-bin ceph-libs qt5-webkit python-pillow
26+
# ib-tws
2527
#IgnoreGroup =
2628

2729
#NoUpgrade =

scripts/mpd/mpd-cover

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
MUSIC_DIR="$(grep '^music_directory' $HOME/.config/mpd/mpd.conf | awk -F\" '{ print $2 }')"
44
MUSIC_DIR="${MUSIC_DIR/#\~/$HOME}"
55

6+
echo $MUSIC_DIR
7+
68
if [ "$1" = "--help" ] || [ "$1" = "help" ]; then
79
echo "$ mpd-cover"
810
echo "Open cover of current mpd track in $IMAGE_VIEWER_BIN"

scripts/mpd/mpd-lyrics

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ if [ -n "$LYRICS" ]; then
6565
else
6666
echo "Song has no lyrics" 1>&2
6767
fi
68-

scripts/rec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ elif [ -n "$1" ]; then
3030
fi
3131

3232
command -v ffmpeg >/dev/null || { echo "ffmpeg is not installed"; exit 1; }
33-
command -v xdpyinfo >/dev/null || { echo "xdpyinfo is not installed"; exit 1; }
33+
command -v xdpyinfo >/dev/null || { echo "xorg-xdpyinfo is not installed"; exit 1; }
3434

3535
test_audio() {
3636
# play sound and check on stream if sound is being played
@@ -61,10 +61,11 @@ circumvent_lockscreen
6161
# fast ~30%
6262
# ultrafast ~20% cpu
6363

64+
# TODO: fix audio with pipewire
65+
# -f alsa -i pulse \
6466
ffmpeg -s $(xdpyinfo | grep dimensions | awk '{ print $2 }') \
6567
-use_wallclock_as_timestamps true \
6668
-f x11grab -i :0.0 \
67-
-f alsa -i pulse \
6869
-r $FPS \
6970
-threads 0 \
7071
-vcodec libx264 \

scripts/tmux/tmuxinator.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ windows:
44
- nvim: vim
55
- ~:
66
- lf: lf
7-
- n: ncmpcpp
7+
- writing: lf
8+
# - n: ncmpcpp
89
# layout: 278d,151x33,0,0[151x12,0,0,35,151x20,0,13,36]
910
# # setup test session and show with: tmux list-windows
1011
# panes:

scripts/vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ if [ "$(pwd)" = "$HOME" ]; then
1616
fi
1717
else
1818
if [ -e "/bin/nvim" ]; then
19-
/bin/nvim $@ 2>/dev/null
19+
/bin/nvim "$@" 2>/dev/null
2020
elif [ -e "/usr/bin/nvim" ]; then
21-
/usr/bin/nvim $@ 2>/dev/null
21+
/usr/bin/nvim "$@" 2>/dev/null
2222
elif [ -e "/usr/local/bin/nvim" ]; then
23-
/usr/local/bin/nvim $@ 2>/dev/null
23+
/usr/local/bin/nvim "$@" 2>/dev/null
2424
fi
2525
fi

scripts/wifiname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ IS_DEV=0
1919
INTERFACE="wlp*"
2020
case "$(cat /etc/hostname)" in
2121
*x240) INTERFACE=wlp3s0;;
22+
*x270) INTERFACE=wlan0;;
2223
esac
2324

2425
CONNECTION=`nmcli connection show --active`

0 commit comments

Comments
 (0)