-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bulk fixes too lazy to go through them
- Loading branch information
Showing
6 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
local DriverStrategyFactory = {} | ||
DriverStrategyFactory.__index = DriverStrategyFactory | ||
|
||
function DriverStrategyFactory.new(settings) | ||
local self = setmetatable({}, DriverStrategyFactory) | ||
self.settings = settings.drivers | ||
|
||
return self | ||
end | ||
|
||
function DriverStrategyFactory:volume_up() | ||
return require("rabbithole.components.keys.drivers.volume_up." .. self.settings.volume_up.driver.name)(self.settings.volume_up.driver.opts) | ||
end | ||
|
||
return DriverStrategyFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local awful = require("awful") | ||
|
||
return function(opts) | ||
awful.spawn("amixer -D pulse sset Master 5%+") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local awful = require("awful") | ||
|
||
return function(opts) | ||
awful.spawn("pactl set-sink-volume @DEFAULT_SINK@ +5%") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters