Support screen recordings
This commit is contained in:
parent
c1ea8fb375
commit
87b525839c
4 changed files with 53 additions and 24 deletions
|
|
@ -1,5 +1,12 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
recordings=$(pgrep wf-recorder | wc -l)
|
||||
if [ "${recordings}" = "0" ]; then
|
||||
recs=""
|
||||
else
|
||||
recs="📽${recordings}"
|
||||
fi
|
||||
|
||||
touchpad=$(swaymsg -t get_inputs | jq -r '[.[] | select(.type == "touchpad")][0] | .libinput.send_events')
|
||||
if [ "${touchpad}" = "enabled" ]; then
|
||||
touchpad_active="✅"
|
||||
|
|
@ -77,4 +84,4 @@ case "${battery_state}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
echo 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
|
||||
echo ${recs} 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue