mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-07 09:17:23 +08:00
Replace ps pipeline for pactl with single pkill command
This commit is contained in:
parent
caca49e3fa
commit
3db9773e37
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ local volume_script = [[
|
|||
|
||||
|
||||
-- Kill old pactl subscribe processes
|
||||
awful.spawn.easy_async_with_shell("ps x | grep \"pactl subscribe\" | grep -v grep | awk '{print $1}' | xargs kill", function ()
|
||||
awful.spawn.easy_async({"pkill", "--full", "--uid", os.getenv("USER"), "^pactl subscribe"}, function ()
|
||||
-- Run emit_volume_info() with each line printed
|
||||
awful.spawn.with_line_callback(volume_script, {
|
||||
stdout = function(line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue