add scap script to take screenshots with scrot
This commit is contained in:
parent
96fc6b1753
commit
a34468cb62
4 changed files with 15 additions and 3 deletions
1
_sync.sh
1
_sync.sh
|
|
@ -29,6 +29,7 @@ files=(
|
||||||
"/usr/local/etc/smb4.conf:smb4.conf"
|
"/usr/local/etc/smb4.conf:smb4.conf"
|
||||||
"/etc/sysctl.conf:sysctl.conf"
|
"/etc/sysctl.conf:sysctl.conf"
|
||||||
"/usr/local/bin/w_status:w_status"
|
"/usr/local/bin/w_status:w_status"
|
||||||
|
"/usr/local/bin/scap:scap"
|
||||||
"$HOME/docker.sh:docker.sh"
|
"$HOME/docker.sh:docker.sh"
|
||||||
"/usr/local/etc/X11/xinit/xinitrc.d/10-i3wm-kde-dark:X11/10-i3wm-kde-dark"
|
"/usr/local/etc/X11/xinit/xinitrc.d/10-i3wm-kde-dark:X11/10-i3wm-kde-dark"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ exec --no-startup-id "feh --bg-fill --geometry 1366x768+0+0 $wallpaper"
|
||||||
# start a terminal
|
# start a terminal
|
||||||
bindsym $mod+Return exec konsole
|
bindsym $mod+Return exec konsole
|
||||||
|
|
||||||
# take screenshot with KDE's spectacle
|
# call our own script for screenshotting
|
||||||
bindsym Print exec spectacle
|
bindsym Print exec scap
|
||||||
|
|
||||||
# i3lock
|
# i3lock
|
||||||
bindsym $win+l exec "i3lock --image $wallpaper --show-failed-attempts --show-keyboard-layout"
|
bindsym $win+l exec "i3lock --image $wallpaper --show-failed-attempts --show-keyboard-layout"
|
||||||
|
|
|
||||||
11
scap
Executable file
11
scap
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
scap_dir="$HOME/Pictures"
|
||||||
|
scap_delay="0.1"
|
||||||
|
scap_compression=3
|
||||||
|
|
||||||
|
# sleep 100ms so i3 dmenu won't get in screenshot
|
||||||
|
sleep $scap_delay
|
||||||
|
|
||||||
|
# take screenshot
|
||||||
|
scrot --format png --compression $scap_compression --file "$scap_dir/"$(date '+%d%m%y_%H%M%S.png')
|
||||||
Loading…
Add table
Reference in a new issue