From 178d65bd38f31cd93bfb0a636b2abf8330e37049 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 8 Nov 2023 15:51:11 +0100 Subject: [PATCH] Works with nushell --- rc.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rc.lua b/rc.lua index 8d782ce..c265fc8 100644 --- a/rc.lua +++ b/rc.lua @@ -468,15 +468,11 @@ globalkeys = awful.util.table.join( end, {description = "skip to the previous music", group="Fn Keys"}), 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"}), awful.key({"Shift"}, "Print", function () - awful.spawn.easy_async_with_shell('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) + awful.spawn.easy_async('flameshot gui -d 1000', function() end) end, {description = "capture the screen", group="Fn Keys"}), awful.key({modkey}, "a", function () @@ -490,11 +486,11 @@ globalkeys = awful.util.table.join( end, {description="Open social media", group="shortcuts"}), 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"}), 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"}), awful.key({modkey, "Shift"}, "Tab", function()