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 💫 ---- */ ##
|
||||
# Playerctl
|
||||
|
||||
iconPath="/usr/share/icons/Qogir/24/actions"
|
||||
|
||||
nextIcon="$iconPath/gtk-media-next-ltr.svg"
|
||||
previousIcon="$iconPath/gtk-media-previous-ltr.svg"
|
||||
stopIcon="$iconPath/gtk-media-stop.svg"
|
||||
playIcon="$iconPath/gtk-media-play-ltr.svg"
|
||||
pauseIcon="$iconPath/gtk-media-pause.svg"
|
||||
nextIcon="gtk-media-next-ltr"
|
||||
previousIcon="gtk-media-previous-ltr"
|
||||
stopIcon="gtk-media-stop"
|
||||
playIcon="gtk-media-play-ltr"
|
||||
pauseIcon="gtk-media-pause"
|
||||
|
||||
# Play the next track
|
||||
play_next() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
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" \
|
||||
"Ding Dong..." \
|
||||
"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_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_cmd_shot="${notify_cmd_base}"
|
||||
notify_cmd_shot_win="${notify_cmd_base}"
|
||||
|
|
|
|||
|
|
@ -19,13 +19,13 @@ get_volume() {
|
|||
get_icon() {
|
||||
current=$(get_volume)
|
||||
if [[ "$current" == "Muted" ]]; then
|
||||
echo "$iDIR/audio-volume-muted.svg"
|
||||
echo "audio-volume-muted"
|
||||
elif [[ "${current%\%}" -le 30 ]]; then
|
||||
echo "$iDIR/audio-volume-low.svg"
|
||||
echo "audio-volume-low"
|
||||
elif [[ "${current%\%}" -le 60 ]]; then
|
||||
echo "$iDIR/audio-volume-medium.svg"
|
||||
echo "audio-volume-medium"
|
||||
else
|
||||
echo "$iDIR/audio-volume-high.svg"
|
||||
echo "audio-volume-high"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ dec_volume() {
|
|||
# Toggle Mute
|
||||
toggle_mute() {
|
||||
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
|
||||
pamixer -u && notify-send -e -u low -i "$(get_icon)" " Volume:" " Switched ON"
|
||||
fi
|
||||
|
|
@ -69,18 +69,18 @@ toggle_mute() {
|
|||
# Toggle Mic
|
||||
toggle_mic() {
|
||||
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
|
||||
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
|
||||
}
|
||||
# Get Mic Icon
|
||||
get_mic_icon() {
|
||||
current=$(pamixer --default-source --get-volume)
|
||||
if [[ "$current" -eq "0" ]]; then
|
||||
echo "$iDIR/microphone-mute.png"
|
||||
echo "microphone-mute"
|
||||
else
|
||||
echo "$iDIR/microphone.png"
|
||||
echo "microphone"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
WindowWidth = 2051
|
||||
WindowHeight = 1424
|
||||
LastCheckedVersion = 'v0.14.0'
|
||||
LastLaunchedVersion = 'v0.15.2'
|
||||
LastLaunchedVersion = 'v0.16.0'
|
||||
EnableSystemTray = true
|
||||
CloseToSystemTray = false
|
||||
StartupPage = 'Albums'
|
||||
|
|
@ -23,6 +23,7 @@ Language = 'auto'
|
|||
DisableDPIDetection = false
|
||||
EnableAutoUpdateChecker = true
|
||||
RequestTimeoutSeconds = 15
|
||||
EnableOSMediaPlayerAPIs = true
|
||||
FontNormalTTF = ''
|
||||
FontBoldTTF = ''
|
||||
UIScaleSize = 'Normal'
|
||||
|
|
@ -58,6 +59,9 @@ InitialView = 'Albums'
|
|||
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||
ShowAlbumYears = false
|
||||
|
||||
[GridView]
|
||||
CardSize = 200.0
|
||||
|
||||
[PlaylistPage]
|
||||
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||
|
||||
|
|
@ -68,7 +72,7 @@ InitialView = 'List'
|
|||
TracklistColumns = ['Album', 'Time', 'Plays']
|
||||
|
||||
[NowPlayingConfig]
|
||||
InitialView = 'Play Queue'
|
||||
InitialView = 'Lyrics'
|
||||
|
||||
[Playback]
|
||||
Autoplay = false
|
||||
|
|
@ -95,6 +99,9 @@ PreventClipping = true
|
|||
|
||||
[Transcoding]
|
||||
ForceRawFile = false
|
||||
RequestTranscode = false
|
||||
Codec = 'opus'
|
||||
MaxBitRateKBPS = 160
|
||||
|
||||
[Theme]
|
||||
ThemeFile = ''
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
"$schema": "/etc/xdg/swaync/configSchema.json",
|
||||
"positionX": "right",
|
||||
"positionY": "top",
|
||||
"layer": "top",
|
||||
"widgets": [
|
||||
"inhibitors",
|
||||
"title",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue