Remove notifications when locking the screen and resume after
This commit is contained in:
		| @@ -21,13 +21,22 @@ | |||||||
|   :END: |   :END: | ||||||
| - [ ] Does not work well with multiple screen | - [ ] Does not work well with multiple screen | ||||||
|  |  | ||||||
|  | First, turn off dunst | ||||||
|  | #+begin_src bash | ||||||
|  |   killall -SIGUSR1 dunst && echo "off" > /tmp/dunststatus; | ||||||
|  | #+end_src | ||||||
|  |  | ||||||
|  | Then take a screenshot and process it. | ||||||
| #+begin_src bash | #+begin_src bash | ||||||
|   temp_file="/tmp/screen.png" |   temp_file="/tmp/screen.png" | ||||||
|  |  | ||||||
|   scrot $temp_file |   scrot $temp_file | ||||||
|   convert $temp_file -scale 10% -scale 1000% $temp_file |   convert $temp_file -scale 10% -scale 1000% $temp_file | ||||||
|  | #+end_src | ||||||
|  |  | ||||||
|   i3lock -e -u -n -i $temp_file | Finally, lock the screen using =i3lock=. | ||||||
|  | #+begin_src bash | ||||||
|  |   i3lock -e -n -i $temp_file && killall -SIGUSR2 dunst && echo "on" > /tmp/dunststatus | ||||||
| #+end_src | #+end_src | ||||||
|  |  | ||||||
| #+begin_src bash :tangle no | #+begin_src bash :tangle no | ||||||
| @@ -254,6 +263,7 @@ http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |||||||
|   ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette |   ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | ||||||
|   ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |   ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 | ||||||
| #+end_src | #+end_src | ||||||
|  |  | ||||||
| * Org-Capture | * Org-Capture | ||||||
|   :PROPERTIES: |   :PROPERTIES: | ||||||
|   :header-args:  :tangle ~/scripts/org-capture-selection.sh |   :header-args:  :tangle ~/scripts/org-capture-selection.sh | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user