Reset old config
This commit is contained in:
56
binds/system/backlight.lua
Executable file
56
binds/system/backlight.lua
Executable file
@ -0,0 +1,56 @@
|
||||
return gears.table.join(
|
||||
awful.key( {}, "XF86MonBrightnessUp",
|
||||
function ()
|
||||
wrapper.backlight.up()
|
||||
end,
|
||||
{
|
||||
description = "Raise brightness",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {}, "XF86MonBrightnessDown",
|
||||
function ()
|
||||
wrapper.backlight.down()
|
||||
end,
|
||||
{
|
||||
description = "Lower brightness",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( { "Mod4" }, "o",
|
||||
function ()
|
||||
bin.backlight.redshift(5600)
|
||||
end,
|
||||
{
|
||||
description = "Default redshift",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( { "Mod4", "Shift" }, "o",
|
||||
function ()
|
||||
bin.backlight.redshift_reset()
|
||||
end,
|
||||
{
|
||||
description = "Reset redshift",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( { "Mod4", "Shift", "Control" }, "o",
|
||||
function ()
|
||||
bin.backlight.redshift_reset()
|
||||
awful.prompt.run {
|
||||
prompt = "<b>Color temperature: </b>",
|
||||
textbox = awful.screen.focused().mypromptbox.widget,
|
||||
exe_callback = bin.backlight.redshift
|
||||
}
|
||||
end,
|
||||
{
|
||||
description = "Set redshift",
|
||||
group = "System"
|
||||
}
|
||||
)
|
||||
)
|
11
binds/system/input.lua
Normal file
11
binds/system/input.lua
Normal file
@ -0,0 +1,11 @@
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod4"}, "space",
|
||||
function()
|
||||
desktop.popup.language.next()
|
||||
end,
|
||||
{
|
||||
description = "Change input language",
|
||||
group = "System"
|
||||
}
|
||||
)
|
||||
)
|
51
binds/system/mpd.lua
Executable file
51
binds/system/mpd.lua
Executable file
@ -0,0 +1,51 @@
|
||||
return gears.table.join(
|
||||
awful.key( {}, "XF86AudioPrev",
|
||||
function ()
|
||||
bin.mpc.command("prev")
|
||||
end,
|
||||
{
|
||||
description = "Previous track",
|
||||
group = "MPD"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {}, "XF86AudioPlay",
|
||||
function ()
|
||||
bin.mpc.command("toggle")
|
||||
end,
|
||||
{
|
||||
description = "Play/Pause",
|
||||
group = "MPD"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {}, "XF86AudioNext",
|
||||
function ()
|
||||
bin.mpc.command("next")
|
||||
end,
|
||||
{
|
||||
description = "Next track",
|
||||
group = "MPD"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "XF86AudioRaiseVolume",
|
||||
function ()
|
||||
bin.mpc.command("vol +5")
|
||||
end,
|
||||
{
|
||||
description = "Volume up",
|
||||
group = "MPD"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "XF86AudioLowerVolume",
|
||||
function ()
|
||||
bin.mpc.command("vol -5")
|
||||
end,
|
||||
{
|
||||
description = "Volume down",
|
||||
group = "MPD"
|
||||
}
|
||||
)
|
||||
)
|
15
binds/system/system.lua
Normal file
15
binds/system/system.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod4"}, "p",
|
||||
function ()
|
||||
awful.prompt.run {
|
||||
prompt = "<b>Really shutdown? (y/n/r) </b>",
|
||||
textbox = awful.screen.focused().mypromptbox.widget,
|
||||
exe_callback = bin.system.shutdown
|
||||
}
|
||||
end,
|
||||
{
|
||||
description = "Shutdown",
|
||||
group = "System"
|
||||
}
|
||||
)
|
||||
)
|
31
binds/system/volume.lua
Executable file
31
binds/system/volume.lua
Executable file
@ -0,0 +1,31 @@
|
||||
return gears.table.join(
|
||||
awful.key( {}, "XF86AudioRaiseVolume",
|
||||
function ()
|
||||
wrapper.volume.up()
|
||||
end,
|
||||
{
|
||||
description = "Volume up",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {}, "XF86AudioLowerVolume",
|
||||
function ()
|
||||
wrapper.volume.down()
|
||||
end,
|
||||
{
|
||||
description = "Volume down",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {}, "XF86AudioMute",
|
||||
function ()
|
||||
wrapper.volume.togglemute()
|
||||
end,
|
||||
{
|
||||
description = "Mute",
|
||||
group = "System"
|
||||
}
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user