Compare commits
6 Commits
82829db5e3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c5f14c3d83 | |||
| 1d749b2446 | |||
| fb17abf8d5 | |||
| 3556bcf33d | |||
| ecbce66724 | |||
| 946ca9b43d |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
!betterlockscreen/
|
!betterlockscreen/
|
||||||
!bspwm/
|
!bspwm/
|
||||||
|
!custom_icons/
|
||||||
!dotdot/
|
!dotdot/
|
||||||
!i3/
|
!i3/
|
||||||
!mpd/
|
!mpd/
|
||||||
|
|||||||
BIN
custom_icons/audio.png
Normal file
BIN
custom_icons/audio.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
custom_icons/battery.png
Normal file
BIN
custom_icons/battery.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
BIN
custom_icons/music.png
Normal file
BIN
custom_icons/music.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
@@ -7,7 +7,8 @@
|
|||||||
background-alt: #4c5c68;
|
background-alt: #4c5c68;
|
||||||
separatorcolor: #4c5c68;
|
separatorcolor: #4c5c68;
|
||||||
border: #518386;
|
border: #518386;
|
||||||
highlight: #343c41;
|
highlight: #518386;
|
||||||
|
highlight-background: #343c41;
|
||||||
foreground: #93a1a1;
|
foreground: #93a1a1;
|
||||||
normal-background: var(background);
|
normal-background: var(background);
|
||||||
urgent-background: var(background);
|
urgent-background: var(background);
|
||||||
@@ -93,7 +94,7 @@ element normal.active {
|
|||||||
text-color: var(active-foreground);
|
text-color: var(active-foreground);
|
||||||
}
|
}
|
||||||
element selected.normal {
|
element selected.normal {
|
||||||
background-color: var(highlight);
|
background-color: var(highlight-background);
|
||||||
text-color: var(selected-normal-foreground);
|
text-color: var(selected-normal-foreground);
|
||||||
}
|
}
|
||||||
element selected.urgent {
|
element selected.urgent {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# terminal emulator
|
# terminal emulator
|
||||||
super + Return
|
super + Return
|
||||||
kitty
|
st
|
||||||
|
|
||||||
# program launcher
|
# program launcher
|
||||||
# super + @space
|
# super + @space
|
||||||
@@ -130,7 +130,7 @@ super + Tab
|
|||||||
|
|
||||||
#Programas
|
#Programas
|
||||||
super + b
|
super + b
|
||||||
zen-browser
|
helium-browser
|
||||||
super + shift + b
|
super + shift + b
|
||||||
firefox --private-window
|
firefox --private-window
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ super + v
|
|||||||
xdotool getactivewindow key ctrl+v
|
xdotool getactivewindow key ctrl+v
|
||||||
|
|
||||||
super + e
|
super + e
|
||||||
kitty -e yazi
|
st -e yazi
|
||||||
Print
|
Print
|
||||||
flameshot gui
|
flameshot gui
|
||||||
super + m
|
super + m
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ id=1527 # HACK: dirty but works
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"audio_up")
|
"audio_up")
|
||||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Up to $audio_percentage%"
|
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio volume" " Up to $audio_percentage% "
|
||||||
;;
|
;;
|
||||||
"audio_down")
|
"audio_down")
|
||||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Down to $audio_percentage%"
|
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio volume" " Down to $audio_percentage% "
|
||||||
;;
|
;;
|
||||||
"audio_unmute")
|
"audio_unmute")
|
||||||
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Unmuted"
|
notify-send -c Audio -r $id -i ~/.config/custom_icons/audio.png "Output Audio" "Unmuted"
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ notify() {
|
|||||||
mpc readpicture "$(mpc current -f %file%)" > $icon_file
|
mpc readpicture "$(mpc current -f %file%)" > $icon_file
|
||||||
song_title=$(mpc current -f %Title%)
|
song_title=$(mpc current -f %Title%)
|
||||||
song_artist=$(mpc current -f %albumartist%)
|
song_artist=$(mpc current -f %albumartist%)
|
||||||
|
song_duration=$(mpc current -f %time%)
|
||||||
|
|
||||||
# check image
|
# check image
|
||||||
is_image=$(cat $icon_file | grep volume | grep repeat)
|
is_image=$(cat $icon_file | grep volume | grep repeat)
|
||||||
@@ -20,10 +21,10 @@ notify() {
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"playing")
|
"playing")
|
||||||
notify-send -i $final_icon_route -t 6000 -r $id "Currently playing $song_artist" "$song_title"
|
notify-send -i $final_icon_route -t 6000 -r $id "'$song_artist' is playing" " $song_title ($song_duration)"
|
||||||
;;
|
;;
|
||||||
"paused")
|
"paused")
|
||||||
notify-send -i $final_icon_route -t 6000 -r $id "Player paused" "$song_title"
|
notify-send -i $final_icon_route -t 6000 -r $id "'$song_artist' is paused" " $song_title ($song_duration)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ getFormalNameFromSink() {
|
|||||||
echo "Bluetooth audio"
|
echo "Bluetooth audio"
|
||||||
;;
|
;;
|
||||||
*usb-Synaptics*)
|
*usb-Synaptics*)
|
||||||
echo "USB-c audio"
|
echo "USB-C audio"
|
||||||
;;
|
;;
|
||||||
*USB*)
|
*USB*)
|
||||||
echo "USB audio"
|
echo "USB audio"
|
||||||
;;
|
;;
|
||||||
*HDMI*)
|
*HDMI* | *DP* | *DisplayPort*)
|
||||||
echo "Screen audio"
|
echo "Screen audio"
|
||||||
;;
|
;;
|
||||||
*pci*)
|
*pci*)
|
||||||
@@ -40,9 +40,14 @@ declare -A sink_map
|
|||||||
declare menu_options
|
declare menu_options
|
||||||
|
|
||||||
readarray -t sink_list < <(pactl list sinks | grep -e "Name" | awk -F: '{print $2}')
|
readarray -t sink_list < <(pactl list sinks | grep -e "Name" | awk -F: '{print $2}')
|
||||||
|
sink_default=$(pactl get-default-sink)
|
||||||
|
|
||||||
for sink in "${sink_list[@]}"; do
|
for sink in "${sink_list[@]}"; do
|
||||||
formal_name=$(getFormalNameFromSink $sink)
|
formal_name=$(getFormalNameFromSink $sink)
|
||||||
|
if [ "$sink" = "$sink_default" ]; then
|
||||||
|
formal_name=" $formal_name"
|
||||||
|
fi
|
||||||
|
|
||||||
sink_map["$formal_name"]="$sink"
|
sink_map["$formal_name"]="$sink"
|
||||||
if [[ ${#menu_options} -ne 0 ]]; then
|
if [[ ${#menu_options} -ne 0 ]]; then
|
||||||
menu_options="$menu_options|"
|
menu_options="$menu_options|"
|
||||||
|
|||||||
Reference in New Issue
Block a user