mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-25 12:52:09 +00:00
use grimblast
This commit is contained in:
parent
01679e1849
commit
09e1e13fea
2 changed files with 8 additions and 7 deletions
|
|
@ -75,7 +75,7 @@ const Utilities = () => Box({
|
|||
children: [
|
||||
UtilButton({
|
||||
name: 'Screen snip', icon: 'screenshot_region', onClicked: () => {
|
||||
Utils.execAsync(['bash', '-c', `grim -g "$(slurp -d -c e2e2e2BB -b 31313122 -s 00000000)" - | wl-copy &`])
|
||||
Utils.execAsync(`${App.configDir}/scripts/grimblast.sh`)
|
||||
.catch(print)
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ bind = Control+Shift+Alt, Delete, exec, pkill wlogout || wlogout -p layer-shell
|
|||
bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff
|
||||
|
||||
# Screenshot, Record, OCR, Color picker, Clipboard history
|
||||
bind = Super+Shift+Alt, S, exec, grim -g $SLURP_COMMAND - | swappy -f -
|
||||
bind = Super+Shift+Alt, S, exec, grim -g $(slurp $SLURP_ARGS) - | swappy -f -
|
||||
bindl=,Print,exec,grim - | wl-copy
|
||||
bind = Super+Shift, S, exec, grim -g $SLURP_COMMAND - | wl-copy
|
||||
bind = Super+Shift, S, exec, ~/.config/ags/scripts/grimblast.sh --freeze copy area
|
||||
bind = Super+Alt, R, exec, ~/.config/ags/scripts/record-script.sh
|
||||
bind = Control+Alt, R, exec, ~/.config/ags/scripts/record-script.sh --fullscreen
|
||||
bind = Super+Shift+Alt, R, exec, ~/.config/ags/scripts/record-script.sh --fullscreen-sound
|
||||
|
|
@ -49,11 +49,11 @@ bind = Super, V, exec, pkill fuzzel || cliphist list | fuzzel --no-fuzzy --dmenu
|
|||
|
||||
# Text-to-image
|
||||
# Normal
|
||||
bind = Control+Super+Shift,S,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
bind = Control+Super+Shift,S,exec,grim -g $(slurp $SLURP_ARGS) "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
# English
|
||||
bind = Super+Shift,T,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
bind = Super+Shift,T,exec,grim -g $(slurp $SLURP_ARGS) "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
# Japanese
|
||||
bind = Super+Shift,J,exec,grim -g $SLURP_COMMAND "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
bind = Super+Shift,J,exec,grim -g $(slurp $SLURP_ARGS) "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"
|
||||
|
||||
# Media
|
||||
bindl= Super+Shift, N, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`
|
||||
|
|
@ -100,7 +100,8 @@ bind = Control+Super, O, exec, hyprctl plugin unload "~/.config/hypr/plugins/dro
|
|||
# bind = SuperAlt, f12, exec, notify-send "Hyprland version: $(hyprctl version | head -2 | tail -1 | cut -f2 -d ' ')" "owo" -a 'Hyprland keybind'
|
||||
# bind = Super+Alt, f12, exec, notify-send "Millis since epoch" "$(date +%s%N | cut -b1-13)" -a 'Hyprland keybind'
|
||||
bind = Super+Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'Shell' -A "Test1=I got it!" -A "Test2=Another action"
|
||||
bind = Super+Alt, Equal, exec, notify-send "Urgent notification" "Ah hell no" -u critical -a 'Hyprland keybind'
|
||||
# bind = Super+Alt, Equal, exec, notify-send "Urgent notification" "Ah hell no" -u critical -a 'Hyprland keybind'
|
||||
bind = Super+Alt, Equal, exec, notify-send 'hmm' ${SLURP_ARGS}
|
||||
|
||||
############################ Keybinds for Hyprland ############################
|
||||
# Swap windows
|
||||
|
|
|
|||
Loading…
Reference in a new issue