summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorChristian Krinitsin <code@krinitsin.xyz>2025-02-11 13:50:31 +0100
committerChristian Krinitsin <code@krinitsin.xyz>2025-02-11 13:50:31 +0100
commitcc82c0264384d44e0bb8cb97648f784b5b2d4e52 (patch)
tree4e32e3d27203cb60394ec4af06e62b07377fc3d3
parent8d24f931b6156e69666529074d92b53469c7e1ed (diff)
downloaddotfiles-cc82c0264384d44e0bb8cb97648f784b5b2d4e52.tar.gz
dotfiles-cc82c0264384d44e0bb8cb97648f784b5b2d4e52.zip
edit screenshot script
-rwxr-xr-xbin/screenshot24
1 files changed, 2 insertions, 22 deletions
diff --git a/bin/screenshot b/bin/screenshot
index 9704a2c..c641d55 100755
--- a/bin/screenshot
+++ b/bin/screenshot
@@ -14,30 +14,10 @@ fi
 case "$MODE" in 
   *save*)
     cd $HOME/downloads/screenshots
-    # while true; do
-    #     selected_dir=$(ls | dmenu -i)
-    #     if [ -z "$selected_dir" ]; then
-    #         exit 0
-    #     fi
-    #
-    #     if [ -d "$selected_dir" ]; then
-    #         cd "$selected_dir"
-    #         continue
-    #     fi 
-    #
-    #     if [ -e "$selected_dir" ]; then
-    #         notify-send "Error: File exists!"
-    #         exit 0
-    #     fi 
-    #
-    #     break
-    # done
-
-    # grimshot save area "$PWD/$selected_dir.png" && notify-send "$PWD/$selected_dir.png" "saved" 
     timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
-    grimshot save area "$timestamp.png" && notify-send "$timestamp.png" "saved" 
+    /usr/share/sway-contrib/grimshot save area "$timestamp.png"
     ;;
   *copy*)
-    grimshot copy area && notify-send "Screenshot copied" 
+    /usr/share/sway-contrib/grimshot copy area
     ;;
 esac