This commit is contained in:
Yuri Zamyatin 2025-01-06 18:27:31 +00:00
parent b5906605a3
commit 7c370c85ba
3 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ PACKAGES=(
git zip # others
# desktop env
greetd sway swaybg swayidle xorg-xwayland # basic
greetd wlr-randr sway swaybg swayidle xorg-xwayland # basic
foot bemenu-wayland i3blocks mako libnotify # terminals, ui
wev wl-clipboard wtype slurp grim # interaction
ttf-roboto ttf-roboto-mono ttf-font-awesome # fonts
@ -47,7 +47,7 @@ cp_chown() {
[ "$(id -u)" != "0" ] && echo "ERROR: root required" >&2 && exit 1
pacman -Syu
pacman -Syu --noconfirm
install "${PACKAGES[@]}"
file_has_line "/etc/profile" "umask 002"

View File

@ -102,6 +102,7 @@ exec_screen_pick() {
elif [ "$1" = "selection" ]; then
grim -g "$(slurp)" - | wl-copy -t image/png
fi
notify-send -a Screenshot "Done" "PNG image copied to clipboard" -t 3000
}
exec_pass() {
echo 1

View File

@ -102,8 +102,8 @@ bindsym --to-code $mod+slash focus next sibling
################## actions ####################
# copy paste
bindsym --to-code $mod+c exec wtype -P XF86Cut
bindsym --to-code $mod+d exec wtype -P XF86Copy
bindsym --to-code $mod+d exec wtype -P XF86Cut
bindsym --to-code $mod+c exec wtype -P XF86Copy
bindsym --to-code $mod+v exec wtype -P XF86Paste
# media
bindsym --to-code XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%- && pkill -SIGRTMIN+2 i3blocks