summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-dotfiles
blob: aca2727ce063b2b6f126e0a34b646dfb58feb635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

dotfiles=$(yadm status | sed '1,3d;
                            5,$d;
                            s/.$//g')

if [[ ${dotfiles:0:1} == "n" ]]; then
    warn=""
else
    warn=" "
fi



echo " $warn "
case $BLOCK_BUTTON in
		1) $TERMINAL -c dropdown -e yadm diff ;;
		3) $TERMINAL -c dropdown -e dfup ;;
    6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac