From 0f3b7850e883aeab0ddfd2c7846c82052d2ea541 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Mon, 21 Feb 2022 21:31:07 -0800 Subject: scripts repo: initial commit --- cs | 3 +++ lock | 6 ++++++ locks | 8 ++++++++ monday | 6 ++++++ scs | 4 ++++ 5 files changed, 27 insertions(+) create mode 100755 cs create mode 100755 lock create mode 100755 locks create mode 100755 monday create mode 100755 scs diff --git a/cs b/cs new file mode 100755 index 0000000..9341901 --- /dev/null +++ b/cs @@ -0,0 +1,3 @@ +#!/bin/sh + +grim -g "$(slurp)" - | wl-copy diff --git a/lock b/lock new file mode 100755 index 0000000..20fa44b --- /dev/null +++ b/lock @@ -0,0 +1,6 @@ +#!/bin/bash +imgPath=/home/n8/media/pix/4a5g/Camera/Camera +swaylock -d -s fit -c 002B36 --image $imgPath/$(ls $imgPath | grep -i jpg | sort -R | head -n1) + +# locks the screen and shows a random image + diff --git a/locks b/locks new file mode 100755 index 0000000..c9e8e8d --- /dev/null +++ b/locks @@ -0,0 +1,8 @@ +#!/bin/bash +# locks the screen and shows a random image and suspends the system +imgPath=/home/n8/media/pix/4a5g/Camera/Camera +swaylock --daemonize \ +--scaling fit \ +--color 002B36 \ +--image $imgPath/$(ls $imgPath | grep -i jpg | sort -R | head -n1) +systemctl suspend diff --git a/monday b/monday new file mode 100755 index 0000000..409af80 --- /dev/null +++ b/monday @@ -0,0 +1,6 @@ +#!/bin/bash +riverctl spawn thunderbird; +riverctl spawn obsidian; +riverctl spawn "zathura dox/plan/work/work.pdf"; +riverctl spawn "zathura dox/plan/personal/personal.pdf"; +riverctl spawn "plan f" diff --git a/scs b/scs new file mode 100755 index 0000000..549f663 --- /dev/null +++ b/scs @@ -0,0 +1,4 @@ +#!/bin/sh + +grim -g "$(slurp)" ~/media/pix/ss/$1.png +notify-send "saved to ~/media/pix/ss/$1.png" -- cgit v1.2.3