Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eayin2 committed Apr 20, 2014
1 parent 7d851db commit 8ed2abc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions bin/weetray-icon
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ else
session_id=`qdbus org.kde.konsole /Konsole org.kde.konsole.Window.currentSession`
qdbus org.kde.konsole /Sessions/$session_id org.kde.konsole.Session.runCommand /usr/bin/weetray
else
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.newSession
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.newSession
session_id=`qdbus org.kde.konsole /Konsole org.kde.konsole.Window.currentSession`
qdbus org.kde.konsole /Sessions/$session_id org.kde.konsole.Session.setTitle 1 weetray
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.moveSessionLeft
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.moveSessionLeft
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.moveSessionLeft
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.currentSession
qdbus org.kde.konsole /Sessions/$session_id org.kde.konsole.Session.runCommand /usr/bin/weetray
ncount=0
for line in `qdbus org.kde.konsole /Sessions org.freedesktop.DBus.Introspectable.Introspect | grep "node name"`;do
(( ncount++ ))
done
ncount=$((ncount/2+1))
i=0
for i in `seq $ncount`;do
qdbus org.kde.konsole /Konsole org.kde.konsole.Window.moveSessionLeft
done
fi
fi

0 comments on commit 8ed2abc

Please sign in to comment.