update_0.8

This commit is contained in:
2026-02-24 18:42:54 +04:00
parent 3820c75523
commit e315b90497
9 changed files with 13 additions and 17 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ include set
include main
include exec
include bind
include color
include color
-4
View File
@@ -1,8 +1,4 @@
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
exec --no-startup-id picom
exec --no-startup-id clipmenud
exec --no-startup-id greenclip daemon
exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer 600 "~/.config/i3/scripts/i3-lock.sh" "" --timer 900 "systemctl suspend" ""
exec_always --no-startup-id bash ~/.config/i3/scripts/i3-lang-layout.sh
+3 -1
View File
@@ -2,10 +2,12 @@
eval $(xdotool getmouselocation --shell)
data=$(i3-msg -t get_outputs | jq -r ".[] | select(.active == true and $X >= .rect.x and $X < (.rect.x + .rect.width) and $Y >= .rect.y and $Y < (.rect.y + .rect.height)) | \"\(.name)\t\(.rect.width)x\(.rect.height)+\(.rect.x)+\(.rect.y)\"")
echo $data
name=$(echo "$data" | cut -f1)
echo $name
geometry=$(echo "$data" | cut -f2)
echo $geometry
temp_file="/tmp/i3-sc-full.png"
maim -g "$geometry" "$temp_file"
echo "file://$temp_file" | xclip -selection clipboard -t text/uri-list
notify-send "Screenshot" "Captured display: $name" -i camera-photo
rm "$temp_file"