update_0.1

This commit is contained in:
2026-01-17 07:00:03 +04:00
commit 76f2dffd62
29 changed files with 636 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
bindsym $mod+F7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% #&& $refresh_i3status
bindsym $mod+F8 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle #&& $refresh_i3status
bindsym $mod+F9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% #&& $refresh_i3status
bindsym $mod+Return exec kitty
bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id "rofi -modi drun,run,window -show drun"
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+h split h
bindsym $mod+Shift+v split v
bindsym $mod+Shift+f fullscreen toggle
bindsym $mod+Shift+s layout stacking
bindsym $mod+Shift+w layout tabbed
bindsym $mod+Shift+e layout toggle split
bindsym $mod+m floating toggle
bindsym $mod+Shift+m focus mode_toggle
bindsym $mod+Shift+a focus parent
bindsym $mod+Shift+d focus child
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
mode "Exit i3? [y/n]" {
bindsym y exec i3-msg exit
bindsym n mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+x mode "Exit i3? [y/n]"
mode "Resize" {
bindsym $left resize shrink width 10 px or 10 ppt
bindsym $down resize grow height 10 px or 10 ppt
bindsym $up resize shrink height 10 px or 10 ppt
bindsym $right resize grow width 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym Mod1+r mode "default"
}
bindsym $mod+r mode "Resize"
bindsym $mod+v exec --no-startup-id bash -c "rofi -modi 'clipboard:greenclip print' -show clipboard && xclip -selection clipboard -o | ~/.config/i3/scripts/i3-sc-clipboard.sh"
bindsym Shift+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-area.sh
bindsym Ctrl+Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-window.sh
bindsym Print exec --no-startup-id ~/.config/i3/scripts/i3-sc-full.shv
+12
View File
@@ -0,0 +1,12 @@
set $bgcolor #00afff
set $ibgcolor #2d2d2d
set $textcolor #ffffff
set $itextcolor #969696
set $ubgcolor #6b8e23
set $indcolor #ffffff
set $indinactive #1a1a1a
client.focused $bgcolor $bgcolor $textcolor $bgcolor
client.unfocused $ibgcolor $ibgcolor $itextcolor $indinactive
client.focused_inactive $ibgcolor $ibgcolor $itextcolor $indinactive
client.urgent $ubgcolor $ubgcolor $textcolor $ubgcolor
+7
View File
@@ -0,0 +1,7 @@
set $mod Mod4
include set
include main
include exec
include bind
include color
+12
View File
@@ -0,0 +1,12 @@
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_always --no-startup-id bash ~/.config/i3/scripts/i3-lang-layout.sh
exec_always --no-startup-id killall -q dunst; dunst -config ~/.config/dunst/dunstrc
exec_always --no-startup-id setxkbmap -layout "us,ru" -option "grp:win_space_toggle"
exec_always --no-startup-id xrandr --output DVI-I-1 --mode 1600x900 --pos 0x0 --rotate normal --output HDMI-0 --primary --mode 1920x1080 --pos 1600x-160 --rotate normal
exec_always --no-startup-id ~/.config/polybar/launch.sh
exec_always --no-startup-id feh --bg-fill --no-fehbg ~/Pictures/wallhaven-7jj86e.jpg ~/Pictures/wallhaven-x1lr3l.jpg
+8
View File
@@ -0,0 +1,8 @@
font pango:JetBrainsMono Nerd Font 11
floating_modifier $mod
tiling_drag modifier titlebar
gaps inner 5
gaps outer 5
for_window [class="^.*"] border pixel 2
workspace 1 output HDMI-0
workspace 5 output DVI-I-1
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
_self=$(basename "$0")
pgrep -f "$_self" | grep -v $$ | xargs kill -9 2>/dev/null
declare -A layouts
prev_win_id=""
while read -r event; do
if [[ "$event" == *'"change":"focus"'* ]]; then
current_win_id=$(echo "$event" | grep -oP '"id":\K[0-9]+' | head -n 1)
if [ -n "$current_win_id" ]; then
if [ -n "$prev_win_id" ] && [ "$prev_win_id" != "$current_win_id" ]; then
layouts[$prev_win_id]=$(xkb-switch -p)
fi
saved_layout=${layouts[$current_win_id]}
if [ -n "$saved_layout" ]; then
xkb-switch -s "$saved_layout"
else
layouts[$current_win_id]=$(xkb-switch -p)
fi
prev_win_id=$current_win_id
fi
fi
done < <(stdbuf -oL i3-msg -t subscribe -m '[ "window" ]')
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
geometry=$(slop -f "%g" -c 0,0.68,1,0.4 -b 1 -l)
[ -z "$geometry" ] && exit 1
temp_file="/tmp/i3-sc-area.png"
maim -g "$geometry" "$temp_file"
echo "file://$temp_file" | xclip -selection clipboard -t text/uri-list
notify-send "Screenshot" "Captured area: $geometry" -i camera-photo -u low
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
selection=$(cat)
[[ -z "$selection" ]] && exit 0
pkill -u $USER -x xclip
if [[ "$selection" == file://* && "$selection" == *.png ]]; then
echo -n "$selection" | xclip -selection clipboard -t text/uri-list
fi
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
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)\"")
name=$(echo "$data" | cut -f1)
geometry=$(echo "$data" | cut -f2)
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"
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
window_id=$(xdotool getactivewindow)
window_name=$(xprop -id "$window_id" WM_CLASS | cut -d '"' -f 4)
temp_file="/tmp/i3-sc-window.png"
maim -i "$window_id" "$temp_file"
echo "file://$temp_file" | xclip -selection clipboard -t text/uri-list
notify-send "Screenshot" "Captured window: $window_name" -u low
+11
View File
@@ -0,0 +1,11 @@
set $refresh_i3status killall -SIGUSR1 i3status
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"