aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/hypr/hyprland.conf7
-rwxr-xr-x.local/bin/hyprshot28
-rwxr-xr-x.local/bin/wayload3
3 files changed, 36 insertions, 2 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index bcb3238..f8f9abd 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -130,6 +130,9 @@ bind = $mainMod, Grave, exec, bookmarks
bind = $mainMod SHIFT, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, Return, swapnext
+bind =, Print, exec, hyprshot 2
+bind = SHIFT, Print, exec, hyprshot 3
+bind = $mainMod SHIFT, S, exec, hyprshot 1
bind =,XF86AudioPlay, exec, playerctl play-pause
bind =,XF86AudioPrev, exec, playerctl previous
bind =,XF86AudioNext, exec, playerctl next
@@ -165,8 +168,8 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
-bind = $mainMod, S, togglespecialworkspace, magic
-bind = $mainMod SHIFT, S, movetoworkspace, special:magic
+#bind = $mainMod, S, togglespecialworkspace, magic
+#bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
diff --git a/.local/bin/hyprshot b/.local/bin/hyprshot
new file mode 100755
index 0000000..f8398a1
--- /dev/null
+++ b/.local/bin/hyprshot
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+part() {
+ geometry="$(slurp)"
+ sleep "0.5"
+ grim -g "${geometry}" - | wl-copy
+}
+
+full() {
+ grim - | wl-copy
+}
+
+rec() {
+ killall -SIGINT gpu-screen-recorder
+ homeuser='/home/awy'
+ availableDisplay=$(hyprctl monitors | grep Monitor | cut -d' ' -f2)
+ filename=$(date +"%Y-%m-%d %H:%M:%S")
+ choice="$(printf "$availableDisplay\nExit\n" | rofi -dmenu -l "5")"
+ [ "${choice}" != "Exit" ] || [ -z "${choice}" ] &&
+ gpu-screen-recorder -w $choice -f 60 -a default_output -a default_input -o "$homeuser/$filename.mp4"
+
+}
+
+case $1 in
+ 1) part ;;
+ 2) full ;;
+ 3) rec ;;
+esac
diff --git a/.local/bin/wayload b/.local/bin/wayload
new file mode 100755
index 0000000..0301b76
--- /dev/null
+++ b/.local/bin/wayload
@@ -0,0 +1,3 @@
+#!/bin/sh
+killall waybar
+hyprctl dispatch exec waybar