Skip to content

Commit

Permalink
[i3] Limit i3blocks window title length to 150 character and start my…
Browse files Browse the repository at this point in the history
…-distrobox on login
  • Loading branch information
iotku committed May 14, 2024
1 parent 7930565 commit 9bdb594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Restore environment after VM
exec --no-startup-id systemctl --user restart pipewire
exec --no-startup-id distrobox-stop --all -Y
exec --no-startup-id nvidia-modprobe --unified-memory -f 0

exec --no-startup-id podman restart my-distrobox
# Load Xresources
exec xrdb ~/.Xresources

Expand Down
2 changes: 1 addition & 1 deletion i3blocks/scripts/window-title.i3block
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
XPID_FILE="/tmp/xpid_file.$$"

function spyWMNAME() {
xprop -spy -root -id "$1" WM_NAME &
xprop -spy -root -id "$1" -len 150 WM_NAME &
echo "$!" > "$XPID_FILE" # Save the PID to a file
wait "$!" # Wait for the background process to finish
rm "$XPID_FILE"
Expand Down

0 comments on commit 9bdb594

Please sign in to comment.