mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 18:28:35 -05:00
notification: change redundant hardcoded mako
This commit is contained in:
parent
57a1938531
commit
439829da61
@ -87,6 +87,7 @@ cp -rfv ./home/.local/share/fonts/ ~/.local/share/fonts/
|
|||||||
# Scripts
|
# Scripts
|
||||||
cp -rfv ./home/.local/bin/ ~/.local/bin/
|
cp -rfv ./home/.local/bin/ ~/.local/bin/
|
||||||
# The bloated dotfiles itself
|
# The bloated dotfiles itself
|
||||||
|
cp -rfv ./home/.rtorrent.rc ~/.rtorrent.rc
|
||||||
cp -rfv ./home/.config/alacritty/ ~/.config/alacritty/
|
cp -rfv ./home/.config/alacritty/ ~/.config/alacritty/
|
||||||
cp -rfv ./home/.config/amfora/ ~/.config/amfora/
|
cp -rfv ./home/.config/amfora/ ~/.config/amfora/
|
||||||
cp -rfv ./home/.config/anime-downloader/ ~/.config/anime-downloader/
|
cp -rfv ./home/.config/anime-downloader/ ~/.config/anime-downloader/
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"file_format": "{anime_title}/{anime_title}_{ep_no}",
|
"file_format": "{anime_title}/{anime_title}_{ep_no}",
|
||||||
"force_download": false,
|
"force_download": false,
|
||||||
"player": "mpv",
|
"player": "mpv",
|
||||||
"provider": "4anime",
|
"provider": "anime8",
|
||||||
"quality": "1080p",
|
"quality": "1080p",
|
||||||
"skip_download": false,
|
"skip_download": false,
|
||||||
"url": false
|
"url": false
|
||||||
@ -120,7 +120,7 @@
|
|||||||
"360p"
|
"360p"
|
||||||
],
|
],
|
||||||
"log_level": "INFO",
|
"log_level": "INFO",
|
||||||
"provider": "4anime",
|
"provider": "anime8",
|
||||||
"quality": "1080p"
|
"quality": "1080p"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
MUSIC_DIR=$HOME/Music/
|
MUSIC_DIR=$HOME/Music/
|
||||||
COVER=/tmp/cover.jpg
|
COVER=/tmp/cover.jpg
|
||||||
|
|
||||||
|
if command -v mako >/dev/null
|
||||||
|
then
|
||||||
|
notification=mako
|
||||||
|
else
|
||||||
|
notification=dunst
|
||||||
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
file="$(mpc --format %file% current -p 6600)"
|
file="$(mpc --format %file% current -p 6600)"
|
||||||
album_dir="${file%/*}"
|
album_dir="${file%/*}"
|
||||||
@ -17,9 +24,9 @@ COVER=/tmp/cover.jpg
|
|||||||
# Resize the image's width to 64px
|
# Resize the image's width to 64px
|
||||||
convert "$src" -resize 64x "$COVER"
|
convert "$src" -resize 64x "$COVER"
|
||||||
if [[ -f "$COVER" ]] ; then
|
if [[ -f "$COVER" ]] ; then
|
||||||
notify-send -u low -i ${COVER} " Now Playing" "$(mpc --format '%title% \n%artist% - %album%' current)"
|
notify-send -u low -i ${COVER} " Now Playing" "$(mpc --format '%title% \n%artist% - %album%' current)"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
notify-send -u low -i $HOME/.config/dunst/headphones.png " Now Playing" "$(mpc --format '%title% \n%artist% - %album%' current)"
|
notify-send -u low -i $HOME/.config/${notification}/headphones.png " Now Playing" "$(mpc --format '%title% \n%artist% - %album%' current)"
|
||||||
fi
|
fi
|
||||||
} &
|
} &
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if command -v mako >/dev/null
|
||||||
|
then
|
||||||
|
notification=mako
|
||||||
|
else
|
||||||
|
notification=dunst
|
||||||
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--wofi)
|
--wofi)
|
||||||
clipman pick --tool wofi -T'-p "Clipboard " -i -O default'
|
clipman pick --tool wofi -T'-p "Clipboard " -i -O default'
|
||||||
@ -11,7 +18,7 @@ case $1 in
|
|||||||
clipman pick --tool fzf -T'--no-multi -e'
|
clipman pick --tool fzf -T'--no-multi -e'
|
||||||
;;
|
;;
|
||||||
--clear)
|
--clear)
|
||||||
clipman clear --all && notify-send -i $HOME/.config/mako/clipboard.png "Clipboard cleared"
|
clipman clear --all && notify-send -i $HOME/.config/${notification}/clipboard.png "Clipboard cleared"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
@ -3,15 +3,22 @@
|
|||||||
mkdir -p ~/Screenshots
|
mkdir -p ~/Screenshots
|
||||||
SAVEPATH="$HOME/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
|
SAVEPATH="$HOME/Screenshots/$(date +'%Y-%m-%d-%H%M%S_grim.png')"
|
||||||
|
|
||||||
|
if command -v mako >/dev/null
|
||||||
|
then
|
||||||
|
notification=mako
|
||||||
|
else
|
||||||
|
notification=dunst
|
||||||
|
fi
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--full)
|
--full)
|
||||||
grim "${SAVEPATH}"
|
grim "${SAVEPATH}"
|
||||||
notify-send -i $HOME/.config/mako/photograph.png "Screenshot taken..."
|
notify-send -i $HOME/.config/${notification}/photograph.png "Screenshot taken..."
|
||||||
;;
|
;;
|
||||||
--region)
|
--region)
|
||||||
GEOMETRY=$(slurp)
|
GEOMETRY=$(slurp)
|
||||||
grim -g "${GEOMETRY}" "${SAVEPATH}"
|
grim -g "${GEOMETRY}" "${SAVEPATH}"
|
||||||
notify-send -i $HOME/.config/mako/photograph.png "Screenshot taken..."
|
notify-send -i $HOME/.config/${notification}/photograph.png "Screenshot taken..."
|
||||||
;;
|
;;
|
||||||
--full-optional)
|
--full-optional)
|
||||||
grim - | swappy -f -
|
grim - | swappy -f -
|
||||||
@ -22,12 +29,12 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
--full-copy)
|
--full-copy)
|
||||||
grim - | wl-copy
|
grim - | wl-copy
|
||||||
notify-send -i $HOME/.config/mako/photograph.png "Screenshot copied..."
|
notify-send -i $HOME/.config/${notification}/photograph.png "Screenshot copied..."
|
||||||
;;
|
;;
|
||||||
--region-copy)
|
--region-copy)
|
||||||
GEOMETRY=$(slurp)
|
GEOMETRY=$(slurp)
|
||||||
grim -g "${GEOMETRY}" - | wl-copy
|
grim -g "${GEOMETRY}" - | wl-copy
|
||||||
notify-send -i $HOME/.config/mako/photograph.png "Screenshot copied..."
|
notify-send -i $HOME/.config/${notification}/photograph.png "Screenshot copied..."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user