Add files via upload
BIN
config/dunst/scripts/Seafile.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
1
config/dunst/scripts/alert.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
|
||||
|
After Width: | Height: | Size: 351 B |
1
config/dunst/scripts/archlinux.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="64" height="64" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg"><circle cx="8.466" cy="8.466" r="7.144" fill="#138ed3" style="paint-order:stroke markers fill"/><path d="M8.466 3.769c-.377.924-.604 1.529-1.024 2.425.257.273.573.59 1.086.95-.551-.227-.928-.455-1.209-.692-.537 1.121-1.378 2.717-3.086 5.785 1.342-.774 2.383-1.252 3.352-1.434a2.457 2.457 0 0 1-.063-.575l.001-.043c.022-.86.469-1.521.999-1.476s.941.779.92 1.638a2.427 2.427 0 0 1-.054.462c.959.188 1.988.664 3.312 1.428-.261-.48-.494-.913-.717-1.326-.35-.272-.716-.625-1.461-1.008.512.133.88.287 1.165.459C9.425 6.15 9.242 5.59 8.466 3.769z" fill="#fff" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 671 B |
BIN
config/dunst/scripts/audio-mute.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
1
config/dunst/scripts/bell.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
|
||||
|
After Width: | Height: | Size: 316 B |
30
config/dunst/scripts/brightness.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$1" = "screen" ]]; then
|
||||
device=intel_backlight
|
||||
declare -i id=5969
|
||||
elif [[ "$1" = "kb" ]]; then
|
||||
device=apple::kbd_backlight
|
||||
declare -i id=6779
|
||||
fi
|
||||
echo "$device"
|
||||
|
||||
current=$(brightnessctl -d "$device" | grep "Current" | awk -F'[()]' '{print $2}' | sed 's/%//g')
|
||||
|
||||
if [[ "$1" = "screen" ]]; then
|
||||
message="Brightness: ${current}%"
|
||||
if [[ "$current" -lt "50" ]]; then
|
||||
icon="$HOME/.config/dunst/scripts/brightness-low.svg"
|
||||
else
|
||||
icon="$HOME/.config/dunst/scripts/brightness-high.svg"
|
||||
fi
|
||||
elif [[ "$1" = "kb" ]]; then
|
||||
message="Keyboard brightness: ${current}%"
|
||||
if [[ "$current" -eq "0" ]]; then
|
||||
icon="cross"
|
||||
else
|
||||
icon="kb-brightness"
|
||||
fi
|
||||
fi
|
||||
|
||||
dunstify -a "$1" -r "$id" -i "$icon" -h int:value:"$current" "$message"
|
||||
BIN
config/dunst/scripts/charger-unplugged.ogg
Executable file
2
config/dunst/scripts/charger-unplugged.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
paplay ~/.config/dunst/scripts/charger-unplugged.ogg
|
||||
BIN
config/dunst/scripts/chat.png
Normal file
|
After Width: | Height: | Size: 834 B |
BIN
config/dunst/scripts/chat2.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
config/dunst/scripts/chat3.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
config/dunst/scripts/chat4.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
2
config/dunst/scripts/gomuks-message-sound.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
paplay ~/.config/dunst/scripts/sounds/odnoklassniki_-_zvuk_soobscheniy.ogg
|
||||
1
config/dunst/scripts/heart.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-heart"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>
|
||||
|
After Width: | Height: | Size: 366 B |
BIN
config/dunst/scripts/mute(1).png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
config/dunst/scripts/rss.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
config/dunst/scripts/screenshoot-shutter.ogg
Executable file
2
config/dunst/scripts/screenshot-sound.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
paplay ~/.config/dunst/scripts/screenshoot-shutter.ogg
|
||||
1
config/dunst/scripts/screenshot.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="64" height="64" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg"><circle cx="8.466" cy="8.466" r="7.144" fill="#f0f0f0" style="paint-order:stroke fill markers"/><path d="M11.642 8.466a3.175 3.175 0 1 1-6.35 0 3.175 3.175 0 0 1 6.35 0" fill="#4d4d4d"/><path d="M11.112 8.466a2.646 2.646 0 1 1-5.293 0 2.646 2.646 0 0 1 5.293 0" fill="#666"/><path d="M10.054 8.466a1.588 1.588 0 1 1-3.176 0 1.588 1.588 0 0 1 3.176 0" fill="#333" opacity=".75"/><path d="M8.996 7.673a.529.529 0 1 1-1.058 0 .529.529 0 0 1 1.058 0" fill="#fff" opacity=".15"/><path d="M5.556 4.498c-.586 0-1.058.472-1.058 1.058v.53h.264v-.53c0-.44.354-.794.794-.794h.53v-.264zm5.292 0v.264h.529c.44 0 .794.354.794.794v.53h.264v-.53c0-.586-.472-1.058-1.058-1.058zm-6.35 6.35v.529c0 .586.472 1.058 1.058 1.058h.53v-.264h-.53a.792.792 0 0 1-.794-.794v-.53zm7.673 0v.529c0 .44-.354.794-.794.794h-.53v.264h.53c.586 0 1.058-.472 1.058-1.058v-.53z" opacity=".1" style="paint-order:stroke fill markers"/></svg>
|
||||
|
After Width: | Height: | Size: 991 B |
BIN
config/dunst/scripts/sounds/melodichnoe-sms-uvedomlenie.ogg
Normal file
BIN
config/dunst/scripts/sounds/new_message-3.ogg
Normal file
BIN
config/dunst/scripts/sounds/odnoklassniki_-_zvuk_soobscheniy.ogg
Normal file
BIN
config/dunst/scripts/sounds/uvedomlenie-o-poluchennoy-pochte.ogg
Normal file
BIN
config/dunst/scripts/sounds/zvuk-dostavlennogo-soobscheniya.ogg
Normal file
2
config/dunst/scripts/vivaldi-sound-mail.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
paplay ~/.config/dunst/scripts/sounds/zvuk-dostavlennogo-soobscheniya.ogg
|
||||
2
config/dunst/scripts/vivaldi-sound.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
paplay ~/.config/dunst/scripts/sounds/zvonkiy-korotkiy-zvuk-uvedomleniya.ogg
|
||||
44
config/dunst/scripts/volume-control
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Description: Configure volume level and show notification using dunst
|
||||
# Usage:
|
||||
# ./volume-control.sh up
|
||||
# ./volume-control.sh down
|
||||
# ./volume-control.sh mute
|
||||
# Dependencies: pamixer, dunst
|
||||
# Github: https://gist.github.com/basilioss/baa36bf5d4b91b50da81313281dbc887
|
||||
|
||||
#iconSound="audio-volume-high"
|
||||
#iconMuted="audio-volume-muted"
|
||||
iconSound="/home/crud/.config/dunst/scripts/volume-up.png"
|
||||
iconMuted="/home/crud/.config/dunst/scripts/audio-mute.png"
|
||||
|
||||
function get_volume {
|
||||
pamixer --get-volume
|
||||
}
|
||||
|
||||
function send_notification {
|
||||
if [ "$(pamixer --get-mute)" = true ]; then
|
||||
dunstify -i $iconMuted -r 2593 -u normal "mute"
|
||||
else
|
||||
dunstify -i $iconSound -r 2593 -u normal -h int:value:"$1" "$1%"
|
||||
fi
|
||||
}
|
||||
|
||||
case $1 in
|
||||
up)
|
||||
pamixer --unmute
|
||||
pamixer --increase 5
|
||||
send_notification "$(get_volume)"
|
||||
;;
|
||||
down)
|
||||
pamixer --unmute
|
||||
pamixer --decrease 5
|
||||
send_notification "$(get_volume)"
|
||||
;;
|
||||
mute)
|
||||
pamixer --toggle-mute
|
||||
send_notification "$(get_volume)"
|
||||
;;
|
||||
esac
|
||||
|
||||
1
config/dunst/scripts/volume-max.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-2"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>
|
||||
|
After Width: | Height: | Size: 354 B |
1
config/dunst/scripts/volume-mute.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-x"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>
|
||||
|
After Width: | Height: | Size: 365 B |
1
config/dunst/scripts/volume-normal.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#96CDFB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-volume-1"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>
|
||||
|
After Width: | Height: | Size: 323 B |
BIN
config/dunst/scripts/volume-up.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
13
config/dunst/scripts/volume.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
volume=$(amixer -D pulse sget Master | tail -1 | awk -F'[][]' '{print $2}' | sed 's/%//g')
|
||||
|
||||
if [[ "$volume" -eq "0" ]]; then
|
||||
icon="$HOME/.config/dunst/scripts/volume-mute.svg"
|
||||
elif [[ "$volume" -lt "100" ]]; then
|
||||
icon="$HOME/.config/dunst/scripts/volume-normal.svg"
|
||||
else
|
||||
icon="$HOME/.config/dunst/scripts/volume-max.svg"
|
||||
fi
|
||||
|
||||
dunstify -a "volume" -i "$icon" -r 3456 -h int:value:"$volume" "Volume: ${volume}%"
|
||||
BIN
config/dunst/scripts/vpn.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |