awesome-audiowheel 0.3.1-1
Lua io.popen() shell command executionLua os.execute() function call
SHA-2568fd8c7cbbf10d1304a45f44616e04d0a1f99531582777144fe9419f631190eba
MaleculeH₂(DbPo)
Evidence
1local util = {}
2
3function util.readcommand(command)
4 local file = io.popen(command)
5 if file == nil then
6 print("volume-control: Failed to execute command: " .. command)
7 return nil
8 end
9 local text = …
29:3… ocal cr = cairo.Context(img)
30 local handle = assert(Rsvg.Handle.new_from_file(path))
31 local dim = handle:get_dimensions()
32 local aspect = math.min(icon_size / dim.width, icon_size / dim.height)
33 cr:scale(as …
97:61… tion: ([^\n]+)")
98end
99
100function vcontrol:set_default_sink(name)
101 os.execute(("pactl set-default-sink %s"):format(name))
102end
103
104return vcontrol
1-- Volume Control
2local awful = require("awful")
3local gears = require("gears")
4local util = require("audiowheel.volume-control.util")
12:8… n vcontrol:init(args)
13 self.callbacks = {}
14 self.cmd = "amixer"
15 self.device = args.device or nil
16 self.cardid = args.cardid or nil
17 self.channel = a …
No evidence locations were recorded for this file. Raw result