23 lines
591 B
Bash
23 lines
591 B
Bash
#!/bin/bash
|
|
# Launcher for Deskmeter Task Window with always-on-top and sticky properties
|
|
|
|
# Start the task window in background
|
|
python3 task_window.py &
|
|
TASK_PID=$!
|
|
|
|
# Wait for window to appear
|
|
sleep 2
|
|
|
|
# Find the window and set properties
|
|
# Make it always on top and visible on all workspaces (sticky)
|
|
wmctrl -r "Deskmeter Task" -b add,above,sticky
|
|
|
|
echo "Task window started (PID: $TASK_PID)"
|
|
echo "Window set to: always-on-top + visible on all workspaces"
|
|
echo ""
|
|
echo "To close: kill $TASK_PID"
|
|
echo "Or just close the window normally"
|
|
|
|
# Keep script running to show PID
|
|
wait $TASK_PID
|