feat: use tectonic
This commit is contained in:
parent
c63ca7ccf6
commit
dd0c72082c
5 changed files with 9 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
|
|||
|
||||
|
||||
if [ "$ISOPEN" = "" ]; then
|
||||
MONITOR=$(hyprctl monitors | grep -B 7 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
eww open cockpit_window_"$MONITOR"
|
||||
else
|
||||
eww close "$ISOPEN"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
NUM=$(pactl list clients short | grep "ncspot" | awk -F 'PipeWire' ' { print $1 } ' | tr -d ' \t\n')
|
||||
CLIENT=$(pactl list sink-inputs short | grep "$NUM" | awk -F ' ' ' { print $1 }' | tr -d ' \t\n')
|
||||
pactl set-sink-input-volume "$CLIENT" "$1"
|
||||
NUM=$(pactl list clients short | rg "spotify_player" | awk -F 'PipeWire' ' { print $1 } ' | tr -d ' \t\n')
|
||||
CHANGE=$(pactl list sink-inputs short | rg "$NUM" | awk -F ' ' ' { print $1 }' | tr -d ' \t\n')
|
||||
pactl set-sink-input-volume "$CHANGE" "$1"
|
||||
VOLUME=$(pactl list sink-inputs | rg "$NUM" -A7 | rg "Volume:" | awk -F ' ' ' { print $5 }' | tr -d '%')
|
||||
dunstify -a "changeVolume" -r 2 -u low -i audio-volume-high -h int:value:"$VOLUME" "Spotify Volume: ${VOLUME}%"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue