Works with nushell

This commit is contained in:
Thomas Forgione 2023-11-08 15:51:11 +01:00
parent a8d855d2f7
commit 178d65bd38
1 changed files with 4 additions and 8 deletions

12
rc.lua
View File

@ -468,15 +468,11 @@ globalkeys = awful.util.table.join(
end, {description = "skip to the previous music", group="Fn Keys"}), end, {description = "skip to the previous music", group="Fn Keys"}),
awful.key({ }, "Print", function () awful.key({ }, "Print", function ()
awful.spawn.easy_async_with_shell('flameshot gui', function() end) awful.spawn.easy_async('flameshot gui', function() end)
end, {description = "capture the screen", group="Fn Keys"}), end, {description = "capture the screen", group="Fn Keys"}),
awful.key({"Shift"}, "Print", function () awful.key({"Shift"}, "Print", function ()
awful.spawn.easy_async_with_shell('flameshot gui -d 1000', function() end) awful.spawn.easy_async('flameshot gui -d 1000', function() end)
end, {description = "capture the screen", group="Fn Keys"}),
awful.key({"Ctrl"}, "Print", function ()
awful.spawn.easy_async_with_shell('gnome-screenshot -f "`echo -n ' .. home .. '"/Images/Captures/Capture du " && date "+%Y-%m-%d %H-%M-%S"`.png"', function() end)
end, {description = "capture the screen", group="Fn Keys"}), end, {description = "capture the screen", group="Fn Keys"}),
awful.key({modkey}, "a", function () awful.key({modkey}, "a", function ()
@ -490,11 +486,11 @@ globalkeys = awful.util.table.join(
end, {description="Open social media", group="shortcuts"}), end, {description="Open social media", group="shortcuts"}),
awful.key({modkey}, "l", function() awful.key({modkey}, "l", function()
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off && slock', function() end) awful.spawn.easy_async_with_shell('sleep 1sec; xset dpms force off; slock', function() end)
end, { description="Locks the screen", group="screen control"}), end, { description="Locks the screen", group="screen control"}),
awful.key({modkey, "Shift"}, "l", function() awful.key({modkey, "Shift"}, "l", function()
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off', function() end) awful.spawn.easy_async_with_shell('sleep 1sec; xset dpms force off', function() end)
end, { description="Turns off the screen", group="screen control"}), end, { description="Turns off the screen", group="screen control"}),
awful.key({modkey, "Shift"}, "Tab", function() awful.key({modkey, "Shift"}, "Tab", function()