Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
This commit is contained in:
1 parent
8d688d1107
commit
0bd1501855
84 files changed
+3192
-1973
No files matched your search
@@ -0,0 +1,23 @@
|
||||
widget = {
|
||||
plugin = 'alsa',
|
||||
cb = function(t)
|
||||
local symbol = ''
|
||||
if t.mute then
|
||||
return { full_text = ' ', color = '#ed8796' }
|
||||
else
|
||||
local percent = (t.vol.cur - t.vol.min) / (t.vol.max - t.vol.min) * 100
|
||||
if percent <= 30 then
|
||||
symbol = ''
|
||||
elseif percent >= 70 then
|
||||
symbol = ''
|
||||
end
|
||||
return { full_text = string.format('%s%3d%%', symbol, math.floor(0.5 + percent)), color = '#b7bdf8' }
|
||||
end
|
||||
end,
|
||||
event = [[
|
||||
local t = ...
|
||||
if t.button == 1 then
|
||||
os.execute('pactl set-sink-mute @DEFAULT_SINK@ toggle &')
|
||||
end
|
||||
]],
|
||||
}
|
||||
Reference in new issue
Block a user