aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-11-29 14:07:54 +0300
committereug-vs <eugene@eug-vs.xyz>2022-11-29 14:07:54 +0300
commit64fbda41591c42e662a75875f905f5b9a3a28bd8 (patch)
tree3dd236c73f8d443a10842b02a22b39798695cf93
parent7319f1c472551c2cd04152553434d8f513578805 (diff)
downloaddotfiles-64fbda41591c42e662a75875f905f5b9a3a28bd8.tar.gz
feat(wayland): support screenshots
-rw-r--r--env-wayland/.config/sway/config3
-rwxr-xr-xenv/.local/bin/screenshot.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/env-wayland/.config/sway/config b/env-wayland/.config/sway/config
index c9a7dde..7081621 100644
--- a/env-wayland/.config/sway/config
+++ b/env-wayland/.config/sway/config
@@ -23,7 +23,7 @@ set $menu dmenu_path | dmenu | xargs swaymsg exec --
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
-output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
+output * bg ~/Pictures/Wallpapers/wallpaper.jpg fill
#
# Example configuration:
#
@@ -99,6 +99,7 @@ bindsym XF86MonBrightnessUp exec light -A 4
bindsym $mod+e exec foot neomutt
bindsym $mod+w exec librewolf
bindsym $mod+n exec foot nvim ~/Sync/diary/$(date +"%Y-%m-%d").md
+ bindsym Print exec screenshot.sh
#
# Moving around:
diff --git a/env/.local/bin/screenshot.sh b/env/.local/bin/screenshot.sh
index 5acf77b..7071b5c 100755
--- a/env/.local/bin/screenshot.sh
+++ b/env/.local/bin/screenshot.sh
@@ -6,4 +6,4 @@ SCREENSHOTS_DIR=$HOME/Pictures/Screenshots
FILENAME=$SCREENSHOTS_DIR/$(date +%F_%H-%M-%S).png
mkdir -p $SCREENSHOTS_DIR
-import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME
+grim $@ $FILENAME && wl-copy < $FILENAME