Add print screen binds

This commit is contained in:
pancakes 2023-09-28 00:42:59 +10:00
parent fdccc4ff36
commit 52ef8d291f
2 changed files with 5 additions and 0 deletions
install.sh
river/.config/river

View file

@ -36,6 +36,7 @@ sudo systemctl enable greetd
# Window Manager
paru -S --needed --noconfirm brightnessctl gammastep geoclue2 grim fuzzel mako network-manager-applet river slurp swaybg swayidle swaylock way-displays waybar xdg-desktop-portal-gtk xdg-desktop-portal-wlr
mkdir -p ~/Pictures/Screenshots
# Fonts
sudo pacman -S --needed --noconfirm noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-firacode-nerd ttf-liberation wqy-zenhei

View file

@ -121,6 +121,10 @@ do
riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl s 5%- -q'
done
# Print to take full screenshot and Alt+Print to take rectangle screenshot
riverctl map normal None Print spawn "GRIM_DEFAULT_DIR=~/Pictures/Screenshots grim"
riverctl map normal Alt Print spawn 'GRIM_DEFAULT_DIR=~/Pictures/Screenshots grim -g "$(slurp)"'
# Set background and border color
riverctl background-color 0x907aa9
riverctl border-color-focused 0xe0def4