2023-12-25 19:35:15 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
act=$1
|
2024-03-24 19:37:05 +00:00
|
|
|
timestamp=$(date)
|
2023-12-25 19:35:15 +00:00
|
|
|
|
2024-03-24 19:37:05 +00:00
|
|
|
echo "$0 - $timestamp - $act" >> ~/dwl_key_act.log
|
2023-12-25 19:35:15 +00:00
|
|
|
|
|
|
|
# In Wayland, use the following like X11's xev:
|
|
|
|
#
|
|
|
|
# % wev | grep "sym"
|
|
|
|
#
|
|
|
|
|
|
|
|
case $act in
|
|
|
|
vol_mute) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle;;
|
|
|
|
vol_lower) wpctl set-volume --limit 1.0 @DEFAULT_AUDIO_SINK@ 10%-;;
|
|
|
|
vol_raise) wpctl set-volume --limit 1.0 @DEFAULT_AUDIO_SINK@ 10%+;;
|
|
|
|
# mic_mute) ;;
|
|
|
|
# bright_low) ;;
|
|
|
|
# bright_high) ;;
|
|
|
|
# disp) ;;
|
|
|
|
# wlan) ;;
|
|
|
|
# tools) ;;
|
|
|
|
# search) ;;
|
2024-03-24 19:37:05 +00:00
|
|
|
launch) wldash;;
|
2023-12-25 19:35:15 +00:00
|
|
|
# explore) ;;
|
|
|
|
*) echo "Unknown action '$act'";;
|
|
|
|
esac
|