Fixes icons for notifications
This commit is contained in:
parent
4024086cee
commit
cc918502b1
6 changed files with 25 additions and 21 deletions
|
|
@ -2,13 +2,11 @@
|
||||||
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
||||||
# Playerctl
|
# Playerctl
|
||||||
|
|
||||||
iconPath="/usr/share/icons/Qogir/24/actions"
|
nextIcon="gtk-media-next-ltr"
|
||||||
|
previousIcon="gtk-media-previous-ltr"
|
||||||
nextIcon="$iconPath/gtk-media-next-ltr.svg"
|
stopIcon="gtk-media-stop"
|
||||||
previousIcon="$iconPath/gtk-media-previous-ltr.svg"
|
playIcon="gtk-media-play-ltr"
|
||||||
stopIcon="$iconPath/gtk-media-stop.svg"
|
pauseIcon="gtk-media-pause"
|
||||||
playIcon="$iconPath/gtk-media-play-ltr.svg"
|
|
||||||
pauseIcon="$iconPath/gtk-media-pause.svg"
|
|
||||||
|
|
||||||
# Play the next track
|
# Play the next track
|
||||||
play_next() {
|
play_next() {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
currentHour=$(date +"%H")
|
currentHour=$(date +"%H")
|
||||||
|
|
||||||
notify-send --icon "/usr/share/icons/Gruvbox-Material-Dark/16x16/actions/amarok_clock.svg" \
|
notify-send --icon "amarok_clock" \
|
||||||
--app-name="Current Hour" \
|
--app-name="Current Hour" \
|
||||||
"Ding Dong..." \
|
"Ding Dong..." \
|
||||||
"It's currently: ${currentHour}:00"
|
"It's currently: ${currentHour}:00"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ active_window_class=$(hyprctl -j activewindow | jq -r '(.class)')
|
||||||
active_window_file="Screenshot_${time}_${active_window_class}.png"
|
active_window_file="Screenshot_${time}_${active_window_class}.png"
|
||||||
active_window_path="${dir}/${active_window_file}"
|
active_window_path="${dir}/${active_window_file}"
|
||||||
|
|
||||||
notify_cmd_base="notify-send -t 10000 -A action1=Open -A action2=Delete -h string:x-canonical-private-synchronous:shot-notify"
|
notify_cmd_base="notify-send -i "shoot" -t 10000 -A action1=Open -A action2=Delete -h string:x-canonical-private-synchronous:shot-notify"
|
||||||
#notify_swappy="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
|
#notify_swappy="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
|
||||||
notify_cmd_shot="${notify_cmd_base}"
|
notify_cmd_shot="${notify_cmd_base}"
|
||||||
notify_cmd_shot_win="${notify_cmd_base}"
|
notify_cmd_shot_win="${notify_cmd_base}"
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,13 @@ get_volume() {
|
||||||
get_icon() {
|
get_icon() {
|
||||||
current=$(get_volume)
|
current=$(get_volume)
|
||||||
if [[ "$current" == "Muted" ]]; then
|
if [[ "$current" == "Muted" ]]; then
|
||||||
echo "$iDIR/audio-volume-muted.svg"
|
echo "audio-volume-muted"
|
||||||
elif [[ "${current%\%}" -le 30 ]]; then
|
elif [[ "${current%\%}" -le 30 ]]; then
|
||||||
echo "$iDIR/audio-volume-low.svg"
|
echo "audio-volume-low"
|
||||||
elif [[ "${current%\%}" -le 60 ]]; then
|
elif [[ "${current%\%}" -le 60 ]]; then
|
||||||
echo "$iDIR/audio-volume-medium.svg"
|
echo "audio-volume-medium"
|
||||||
else
|
else
|
||||||
echo "$iDIR/audio-volume-high.svg"
|
echo "audio-volume-high"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ dec_volume() {
|
||||||
# Toggle Mute
|
# Toggle Mute
|
||||||
toggle_mute() {
|
toggle_mute() {
|
||||||
if [ "$(pamixer --get-mute)" == "false" ]; then
|
if [ "$(pamixer --get-mute)" == "false" ]; then
|
||||||
pamixer -m && notify-send -e -u low -i "$iDIR/audio-volume-muted.svg" " Mute"
|
pamixer -m && notify-send -e -u low -i "audio-volume-muted" " Mute"
|
||||||
elif [ "$(pamixer --get-mute)" == "true" ]; then
|
elif [ "$(pamixer --get-mute)" == "true" ]; then
|
||||||
pamixer -u && notify-send -e -u low -i "$(get_icon)" " Volume:" " Switched ON"
|
pamixer -u && notify-send -e -u low -i "$(get_icon)" " Volume:" " Switched ON"
|
||||||
fi
|
fi
|
||||||
|
|
@ -69,18 +69,18 @@ toggle_mute() {
|
||||||
# Toggle Mic
|
# Toggle Mic
|
||||||
toggle_mic() {
|
toggle_mic() {
|
||||||
if [ "$(pamixer --default-source --get-mute)" == "false" ]; then
|
if [ "$(pamixer --default-source --get-mute)" == "false" ]; then
|
||||||
pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" " Microphone:" " Switched OFF"
|
pamixer --default-source -m && notify-send -e -u low -i "microphone-mute" " Microphone:" " Switched OFF"
|
||||||
elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then
|
elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then
|
||||||
pamixer -u --default-source u && notify-send -e -u low -i "$iDIR/microphone.png" " Microphone:" " Switched ON"
|
pamixer -u --default-source u && notify-send -e -u low -i "microphone" " Microphone:" " Switched ON"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# Get Mic Icon
|
# Get Mic Icon
|
||||||
get_mic_icon() {
|
get_mic_icon() {
|
||||||
current=$(pamixer --default-source --get-volume)
|
current=$(pamixer --default-source --get-volume)
|
||||||
if [[ "$current" -eq "0" ]]; then
|
if [[ "$current" -eq "0" ]]; then
|
||||||
echo "$iDIR/microphone-mute.png"
|
echo "microphone-mute"
|
||||||
else
|
else
|
||||||
echo "$iDIR/microphone.png"
|
echo "microphone"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
WindowWidth = 2051
|
WindowWidth = 2051
|
||||||
WindowHeight = 1424
|
WindowHeight = 1424
|
||||||
LastCheckedVersion = 'v0.14.0'
|
LastCheckedVersion = 'v0.14.0'
|
||||||
LastLaunchedVersion = 'v0.15.2'
|
LastLaunchedVersion = 'v0.16.0'
|
||||||
EnableSystemTray = true
|
EnableSystemTray = true
|
||||||
CloseToSystemTray = false
|
CloseToSystemTray = false
|
||||||
StartupPage = 'Albums'
|
StartupPage = 'Albums'
|
||||||
|
|
@ -23,6 +23,7 @@ Language = 'auto'
|
||||||
DisableDPIDetection = false
|
DisableDPIDetection = false
|
||||||
EnableAutoUpdateChecker = true
|
EnableAutoUpdateChecker = true
|
||||||
RequestTimeoutSeconds = 15
|
RequestTimeoutSeconds = 15
|
||||||
|
EnableOSMediaPlayerAPIs = true
|
||||||
FontNormalTTF = ''
|
FontNormalTTF = ''
|
||||||
FontBoldTTF = ''
|
FontBoldTTF = ''
|
||||||
UIScaleSize = 'Normal'
|
UIScaleSize = 'Normal'
|
||||||
|
|
@ -58,6 +59,9 @@ InitialView = 'Albums'
|
||||||
TracklistColumns = ['Album', 'Time', 'Plays']
|
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||||
ShowAlbumYears = false
|
ShowAlbumYears = false
|
||||||
|
|
||||||
|
[GridView]
|
||||||
|
CardSize = 200.0
|
||||||
|
|
||||||
[PlaylistPage]
|
[PlaylistPage]
|
||||||
TracklistColumns = ['Album', 'Time', 'Plays']
|
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||||
|
|
||||||
|
|
@ -68,7 +72,7 @@ InitialView = 'List'
|
||||||
TracklistColumns = ['Album', 'Time', 'Plays']
|
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||||
|
|
||||||
[NowPlayingConfig]
|
[NowPlayingConfig]
|
||||||
InitialView = 'Play Queue'
|
InitialView = 'Lyrics'
|
||||||
|
|
||||||
[Playback]
|
[Playback]
|
||||||
Autoplay = false
|
Autoplay = false
|
||||||
|
|
@ -95,6 +99,9 @@ PreventClipping = true
|
||||||
|
|
||||||
[Transcoding]
|
[Transcoding]
|
||||||
ForceRawFile = false
|
ForceRawFile = false
|
||||||
|
RequestTranscode = false
|
||||||
|
Codec = 'opus'
|
||||||
|
MaxBitRateKBPS = 160
|
||||||
|
|
||||||
[Theme]
|
[Theme]
|
||||||
ThemeFile = ''
|
ThemeFile = ''
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
"$schema": "/etc/xdg/swaync/configSchema.json",
|
"$schema": "/etc/xdg/swaync/configSchema.json",
|
||||||
"positionX": "right",
|
"positionX": "right",
|
||||||
"positionY": "top",
|
"positionY": "top",
|
||||||
"layer": "top",
|
|
||||||
"widgets": [
|
"widgets": [
|
||||||
"inhibitors",
|
"inhibitors",
|
||||||
"title",
|
"title",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue