summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2024-08-24 16:36:19 +0530
committerSaumit <justsaumit@protonmail.com>2024-08-24 16:36:19 +0530
commitfaf0ed7d6b3f59d05e2652c3a9077686ae39aed0 (patch)
tree85b33c43f91bb73942a31bcfc8e539730398a86f
parentf2d6401062c648f52cca92d9ada2bfd079e504bc (diff)
hypr: Improved screenshot bindings, GRIM_DEFAULT_DIR env var, pulsemixer bind for pin replacement
-rw-r--r--.config/hypr/hyprland.conf16
1 files changed, 10 insertions, 6 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 5c2d1a8..51d3d7d 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -21,6 +21,8 @@ env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
+$GRIM_DEFAULT_DIR=$HOME/pix/Screenshots
+env = GRIM_DEFAULT_DIR,$GRIM_DEFAULT_DIR
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
@@ -55,7 +57,6 @@ general {
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
special_scale_factor=0.8
- new_is_master=false
new_on_top=false
no_gaps_when_only=true
orientation=left
@@ -143,7 +144,7 @@ $MOD = SUPER
# Imp Utils #
###############
#Terminal
-bind = $MOD SHIFT, Return, exec, foot -t meh
+bind = $MOD SHIFT, Return, exec, foot
bind = $MOD, W, killactive
bind = $MOD CTRL SHIFT, Q, exit
bind = $MOD, F, togglefloating
@@ -193,7 +194,7 @@ bind = $MOD CTRL, T, exec, telegram-desktop
# Launch ranger
bind = $MOD, R, exec, foot --term xterm-256color -e ranger
# Launch pulsemixer
-bind = $MOD, P, exec, foot -e pulsemixer
+bind = $MOD SHIFT, P, exec, foot -e pulsemixer
#Launch <go,h,b>top
bind = $MOD SHIFT, G, exec, foot --term xterm -e gotop
bind = $MOD SHIFT, H, exec, foot -e htop
@@ -207,9 +208,12 @@ bind = $MOD SHIFT, B, exec, foot -e btop
bind = $MOD SHIFT, L, exec, swaylock
#screenshot
-bind = ,Print, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG"
-bind = CTRL,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG"
-bind = ALT ,Print, exec, flameshot gui
+#bind = ,Print, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG"
+#bind = CTRL,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" "$GRIM_DEFAULT_DIR/""$IMG" && wl-copy < "$GRIM_DEFAULT_DIR/""$IMG"
+#bind = ALT ,Print, exec, flameshot gui
+bind = ,Print, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the whole screen taken" "$IMG" -t 1000 # screenshot of whole screen
+bind = $MOD SHIFT,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the region taken" "$IMG" -t 1000 # screenshot of a region
+bind = ALT ,Print, exec, flameshot gui
#otherkeyb
bind = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && [[ "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep MUTE)" ]] && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234