Some documentation
This commit is contained in:
parent
3d375c89f8
commit
df260f4f4f
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ def clipboard [] {
|
||||||
$in | ^pngquant - | ^xclip -sel clip -t image/png
|
$in | ^pngquant - | ^xclip -sel clip -t image/png
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Take a screenshot of all screens
|
||||||
def main [--clipboard (-c)] {
|
def main [--clipboard (-c)] {
|
||||||
let scrot = ^maim -ui root | complete
|
let scrot = ^maim -ui root | complete
|
||||||
match $clipboard {
|
match $clipboard {
|
||||||
|
@ -32,6 +33,7 @@ def main [--clipboard (-c)] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Take a screenshot of a the current window
|
||||||
def "main window" [--clipboard (-c)] {
|
def "main window" [--clipboard (-c)] {
|
||||||
let window = ^xdotool getactivewindow
|
let window = ^xdotool getactivewindow
|
||||||
let scrot = ^maim -ui $window | complete
|
let scrot = ^maim -ui $window | complete
|
||||||
|
@ -47,6 +49,7 @@ def "main window" [--clipboard (-c)] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Take a screenshot based on selection
|
||||||
def "main selection" [--clipboard(-c)] {
|
def "main selection" [--clipboard(-c)] {
|
||||||
let scrot = ^maim -su | complete
|
let scrot = ^maim -su | complete
|
||||||
match $scrot.exit_code {
|
match $scrot.exit_code {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue