From 37d7f32d0d9e18eeb1d58b1cef2ae9d76ceea8d0 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 31 Dec 2021 16:38:33 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 66ff14a..d8832a8 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -88,6 +88,10 @@ try: nginx:latest \ -c 'echo "server{listen 80; root /app; location / {autoindex on;}}" > /etc/nginx/conf.d/default.conf; nginx -g "daemon off;"' ''', shell=True) + elif sys.argv[1] == 'wl-screenshot': + subprocess.check_call(r''' + grim -g "$(slurp)" - | wl-copy + ''', shell=True) else: raise NotImplementedError except: