This commit is contained in:
2026-04-09 00:39:54 +03:00
parent 03fab63ebf
commit 503136d067
18 changed files with 9366 additions and 14 deletions
+2
View File
@@ -26,3 +26,5 @@ function __zoxide_z() {
fi
fi
}
alias codium="codium --ozone-platform=wayland "
+9 -6
View File
@@ -1,15 +1,17 @@
font=Fira Code Retina 11
format=<b>%a ⏵</b> %s\n%b
#format=<b>%a ⏵</b> %s\n%b
format=<b>%s</b> \n%b
sort=-time
layer=overlay
anchor=top-right
anchor=bottom-right
background-color=#000000
width=300
width=250
height=110
margin=16
padding=8,16
padding=8,12
border-size=1
border-color=#FFFFFF
#border-color=#FFFFFF
border-color=#000000
border-radius=0
icons=0
max-icon-size=64
@@ -18,7 +20,8 @@ ignore-timeout=1
on-notify=exec mpv /usr/share/sounds/freedesktop/stereo/message.oga
[urgency=normal]
border-color=#FFFFFF
#border-color=#FFFFFF
border-color=#000000
[urgency=high]
border-color=#FF0000
+8 -3
View File
@@ -105,7 +105,9 @@ output HDMI-A-1 {
}
output DP-2 {
position $right_monitor_x 0
position 0 0
mode $lg_left_monitor_mode
# position $right_monitor_x 0
# ECO
# mode 2560x1440@60Hz
@@ -121,7 +123,7 @@ output DP-2 {
###############################################################################
exec swayidle -w \
timeout 900 'swaylock -f -c 000000' \
timeout 1500 'swaylock -f -c 000000' \
# timeout 1800 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c 000000'
@@ -159,7 +161,7 @@ input type:pointer {
# Floating window rules
floating_maximum_size -1 x -1
for_window [app_id="floating_window"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="pavucontrol"] floating enable, move position mouse, sticky enable, border pixel 0
for_window [app_id="Windscribe"] floating enable
for_window [class="steam" instance="steamwebhelper"] floating enable
for_window [class="steam" title="Steam"] floating disable
@@ -542,6 +544,7 @@ bindsym $mod+i bar mode toggle
bar {
output DP-1
#output DP-2
position bottom
mode dock
height $lg_left_monitor_bar_height
@@ -612,3 +615,5 @@ exec --no-startup-id home_dotfiles/.config/sway/scripts/i3status/set-random-bg.s
include /etc/sway/config.d/*
#bindsym $mod+x exec "$(file="/tmp/click"; if test "0" = "$(cat "$file")"; then printf '1\n' > "$file"; else printf '0\n' > "$file"; fi)"
seat seat0 hide_cursor 3000
@@ -61,11 +61,15 @@ missing_format = ""
[[block]]
block = "sound"
format = " $icon $volume "
format = " $icon { $volume|} {$output_name |} "
click = [
{button = "left", cmd = "pavucontrol --tab=3"},
{button = "right", cmd = "pactl set-sink-mute @DEFAULT_SINK@ toggle"},
]
[block.mappings]
"bluez_output.04:21:44:A7:66:EA" = "Dung"
"alsa_output.usb-FiiO_FiiO_USB_DAC_K1-01.pro-output-0" = "M50X"
"bluez_output.04_21_44_A7_66_EA.1" = "Dung"
[[block]]
block = "bluetooth"
@@ -21,7 +21,10 @@ if [ "$BLUETOOTH_POWERED" != "yes" ]; then
fi
# Get connected devices
CONNECTED_DEVICES=$(bluetoothctl devices Connected | grep "^Device" | awk '{for(i=3;i<=NF;i++) printf "%s ", $i; print ""}' | sed 's/ $//')
# Note: bluetoothctl devices Connected doesn't work as a direct command argument
# It must be piped through bluetoothctl's interactive shell
# Also need to strip ANSI escape codes from output
CONNECTED_DEVICES=$(echo "devices Connected" | bluetoothctl 2>/dev/null | sed 's/\x1b\[[0-9;]*m//g' | grep "Device " | awk '{for(i=3;i<=NF;i++) printf "%s ", $i; print ""}' | sed 's/ $//')
if [ -z "$CONNECTED_DEVICES" ]; then
echo "$BT_ICON No devices"
@@ -39,7 +42,7 @@ fi
# Handle click events (for i3status-rust custom block)
if [ "${BLOCK_BUTTON:-}" = "1" ]; then
# Left click - show all connected devices with details
DETAILED_DEVICES=$(bluetoothctl devices Connected | while read -r line; do
DETAILED_DEVICES=$(echo "devices Connected" | bluetoothctl 2>/dev/null | sed 's/\x1b\[[0-9;]*m//g' | grep "Device " | while read -r line; do
MAC=$(echo "$line" | awk '{print $2}')
NAME=$(echo "$line" | awk '{for(i=3;i<=NF;i++) printf "%s ", $i; print ""}' | sed 's/ $//')
echo "$NAME ($MAC)"
@@ -1,7 +1,9 @@
#!/bin/bash
# Find a random image file
#IMAGE=$(find /run/media/raga/970/qBittorrent/nsfw/xd -type f \( -name '*.png' -o -name '*.jpg' -o -name '*.jpeg' \) | shuf -n 1)
IMAGE=$(find /run/media/raga/970/images/cars/wallpaper -type f \( -name '*.png' -o -name '*.jpg' -o -name '*.jpeg' \) | shuf -n 1)
IMAGES=/run/media/raga/970/images/cars/wallpaper
IMAGES=/run/media/raga/730/shared/photos/hr
IMAGE=$(find $IMAGES -type f \( -name '*.png' -o -name '*.jpg' -o -name '*.jpeg' \) | shuf -n 1)
if [ -n "$IMAGE" ]; then
echo "Image: $IMAGE"
+2
View File
@@ -1,4 +1,6 @@
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
PATH="$HOME/go/bin:$PATH"
export PATH