mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 00:10:59 +02:00
Switch to tvolnoti
This commit is contained in:
parent
35a2caf560
commit
5076f9c5ad
8
.bin/fakebluezplayer.py
Executable file
8
.bin/fakebluezplayer.py
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import dbus, time
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
media = dbus.Interface(bus.get_object("org.bluez", "/org/bluez/hci0"), 'org.bluez.Media1')
|
||||||
|
path = dbus.ObjectPath('/dummy_player')
|
||||||
|
media.RegisterPlayer(path, {})
|
||||||
|
while True: time.sleep(10000)
|
||||||
|
|
@ -21,7 +21,7 @@ font pango:Terminus 12
|
|||||||
set $bg "~/Pildid/background.png"
|
set $bg "~/Pildid/background.png"
|
||||||
|
|
||||||
# Lock screen
|
# Lock screen
|
||||||
set $lockcmd ~/.bin/swaylock.sh
|
set $lockcmd ~/.bin/swaylock.sh $bg
|
||||||
|
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term gnome-terminal
|
set $term gnome-terminal
|
||||||
@ -50,8 +50,14 @@ exec xrdb -load ~/.Xresources
|
|||||||
# Notification daemon
|
# Notification daemon
|
||||||
exec mako --default-timeout 10000
|
exec mako --default-timeout 10000
|
||||||
|
|
||||||
# Simple bar
|
# Volume and Brightness notification
|
||||||
exec rm /tmp/wobpipe; mkfifo /tmp/wobpipe && tail -f /tmp/wobpipe | wob
|
exec tvolnoti -n -T dark
|
||||||
|
|
||||||
|
# Monitor volume changes
|
||||||
|
exec pactl subscribe | grep --line-buffered "sink" | xargs -n1 sh -c 'tvolnoti-show $(amixer get Master | grep -Po "[0-9]+(?=%)" | tail -1)'
|
||||||
|
|
||||||
|
# Register a fake player in bluez so that volume control would work
|
||||||
|
exec ~/.bin/fakebluezplayer.py
|
||||||
|
|
||||||
# Polkit agent
|
# Polkit agent
|
||||||
exec ~/.bin/polkit-agent
|
exec ~/.bin/polkit-agent
|
||||||
|
1
.config/tvolnoti/themes
Symbolic link
1
.config/tvolnoti/themes
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/usr/share/tvolnoti/themes
|
Loading…
Reference in New Issue
Block a user