diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-18 01:17:06 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-18 01:17:06 +0300 |
commit | a36aadab60c09bff3a055b0442971aa5e8a87a27 (patch) | |
tree | 0026c02065a0cf35478386312aeb5cb732192469 /dotfiles/.local/bin/menugrim | |
parent | 484181c25cba61469254e24bff578cff5189c8a7 (diff) | |
download | swayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.tar.gz swayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.zip |
WIP: rofi
* Moved basically all menu scripts to use rofi
* Updated some custom desktop entries
* Updated list of packages. TODO: make a better installer script/package
list.
* Removed some old and extraneous scripts.
* Other minor changes to config.
Diffstat (limited to 'dotfiles/.local/bin/menugrim')
-rwxr-xr-x | dotfiles/.local/bin/menugrim | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/dotfiles/.local/bin/menugrim b/dotfiles/.local/bin/menugrim deleted file mode 100755 index 28e1249..0000000 --- a/dotfiles/.local/bin/menugrim +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -if ! [ -d $SCROT_DIR ]; then - mkdir -p $SCROT_DIR -fi - -# Source settings from .bemenurc -. ~/.config/bemenurc - -notify_saved() { - notify-send "screenshot has been saved in $SCROT_DIR" ; -} - -notify_copied() { - notify-send "screenshot has been copied to clipboard" ; -} - -case "$1" in - --quick|-q) - grim $SCROT_DIR/fullscreen-"$(date '+%y%m%d-%H%M-%S').png"; notify_saved ;; - *) - case "$(printf "a selected area\ncurrent window\nfull screen\na selected area (copy)\ncurrent window (copy)\nfull screen (copy)\n" | bemenu -l 6 -i -p "Screenshot which area?" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")" in - "a selected area") grim -g "$(slurp)" $SCROT_DIR/selected-"$(date '+%y%m%d-%H%M-%S').png"; notify_saved ;; - "current window") grim -g "$(swaygetcurrentwindow)" $SCROT_DIR/window-"$(date '+%y%m%d-%H%M-%S').png"; notify_saved ;; - "full screen") grim $SCROT_DIR/fullscreen-"$(date '+%y%m%d-%H%M-%S').png"; notify_saved ;; - "a selected area (copy)") grim -g "$(slurp)" - | wl-copy; notify_copied ;; - "current window (copy)") grim -g "$(swaygetcurrentwindow)" - | wl-copy; notify_copied ;; - "full screen (copy)") grim - | wl-copy; notify_copied ;; - *) exit 0 ;; - esac -esac - - |