adding a lot of little additions and tweaks for the updated nix

This commit is contained in:
Chris Cochrun 2023-01-03 07:23:08 -06:00
parent b68e8c45d8
commit e47b3fa5ff
13 changed files with 70 additions and 77 deletions

View file

@ -1,20 +1,14 @@
#!/usr/bin/env bash
#!/bin/sh
touch /tmp/vol
touch /tmp/ewwvol
echo on > /tmp/ewwvol
# killall volup
# killall voldown
pamixer --allow-boost -i 5
pw-play /run/current-system/sw/share/sounds/freedesktop/stereo/audio-volume-change.oga
volume=$(pulsemixer --get-volume | awk '{print $1}' | cut -c 1-2)
echo $volume >> /tmp/vol
ewwvol=$(cat /tmp/ewwvol)
volume=$(pulsemixer --get-volume | awk '{print $1}')
echo $volume > /tmp/vol
eww open volume
sleep 3
if [[ ewwvol == "on" ]]; then
fi
eww close volume