Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions dotfiles/.config/hypr/conf/binds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, B, exec, ~/.config/ml4w/settings/browser.sh # Opens the browser
bind = $mainMod SHIFT, B, exec, ~/.config/ml4w/scripts/reload-waybar.sh # Reload Waybar
bind = $mainMod SHIFT, W, exec, ~/.config/ml4w/scripts/reload-hyprpaper.sh # Reload hyprpaper after a changing the wallpaper
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
bind = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
bind = , XF86MonBrightnessUp, exec, brightnessctl set 10%+
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bind = , XF86WLAN, exec, nmcli radio wifi toggle
bind = , XF86Refresh, exec, xdotool key F5
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ # Increases audio volume
bind = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- # Decreases audio volume
bind = , XF86MonBrightnessUp, exec, brightnessctl set 10%+ # Increases Brightness
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%- # Decreases Brightness
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # Mutes Speaker
bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # Mutes Mic
bind = , XF86WLAN, exec, nmcli radio wifi toggle # Toggles Wifi connectivity
bind = , XF86Refresh, exec, xdotool key F5 # Refreshes screen
bind = , Print, exec, ~/.config/hypr/scripts/screenshot rc # Full screen to clipboard
bind = SUPER, Print, exec, ~/.config/hypr/scripts/screenshot rf # Region-based screenshot
bind = CTRL, Print, exec, ~/.config/hypr/scripts/screenshot ri # Full-screen screenshot saved to file
bind = SHIFT, Print, exec, ~/.config/hypr/scripts/screenshot sc # Captures the full screen to clipboard
bind = SUPER SHIFT, Print, exec, ~/.config/hypr/scripts/screenshot sf # Saves the full-screen screenshot with a timestamp
bind = CTRL SHIFT, Print, exec, ~/.config/hypr/scripts/screenshot si # Captures interactive screenshot
bind = ALT, Print, exec, ~/.config/hypr/scripts/screenshot p # Copies color under the cursor to clipboard

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l # Move focus left
Expand Down
45 changes: 45 additions & 0 deletions dotfiles/.config/hypr/scripts/screenshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env bash

# Flags:

# r: region
# s: screen
#
# c: clipboard
# f: file
# i: interactive

# p: pixel

if [[ $1 == rc ]]; then
grim -g "$(slurp -b '#000000b0' -c '#00000000')" - | wl-copy
notify-send 'Copied to Clipboard' Screenshot

elif [[ $1 == rf ]]; then
mkdir -p ~/Pictures/Screenshots
filename=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png
grim -g "$(slurp -b '#000000b0' -c '#00000000')" $filename
notify-send 'Screenshot Taken' $filename

elif [[ $1 == ri ]]; then
grim -g "$(slurp -b '#000000b0' -c '#00000000')" - | swappy -f -

elif [[ $1 == sc ]]; then
filename=~/Pictures/Screenshots/%Y-%m-%d_%H-%M-%S.png
grim - | wl-copy
notify-send 'Copied to Clipboard' Screenshot

elif [[ $1 == sf ]]; then
mkdir -p ~/Pictures/Screenshots
filename=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png
grim $filename
notify-send 'Screenshot Taken' $filename

elif [[ $1 == si ]]; then
grim - | swappy -f -

elif [[ $1 == p ]]; then
color=$(hyprpicker -a)
wl-copy $color
notify-send 'Copied to Clipboard' $color
fi
4 changes: 4 additions & 0 deletions install/arch/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ installer_packages=(
"brightnessctl"
"networkmanager"
"wireplumber"
"grim"
"slurp"
"swappy"
"hyprpicker"
)

installer_yay=(
Expand Down