=== Nobody is now known as Guest61029 | ||
=== FrankF1 is now known as FrankF | ||
=== shan_ is now known as shan | ||
=== BrianG61UK_ is now known as BrianG61UK | ||
someball | hi, I'm using lxpanel and I'd like to get the ids of the windows on the lxpanel taskbar | 22:34 |
---|---|---|
someball | its for hotkeys purposes | 22:35 |
someball | anyone has an idea of how to do it? | 22:35 |
wxl | someball: you mean as x understands it? | 22:36 |
someball | not sure, I want to pass it as a parameter to wmctrl | 22:37 |
wxl | cuz you can probably do that with the likes of xwininfo but not lxpanel | 22:37 |
someball | this command focuses a window | 22:37 |
someball | wmctrl -i -a "$appId" | 22:37 |
someball | if you give it the right id | 22:37 |
someball | ok, ill check out xwininfo | 22:38 |
wxl | someball: something like `xwininfo -name lxterminal | grep "Window id" | awk '{print $4}'` | 22:40 |
wxl | someball: that said it would probably work to do `wmctrl -i -a "$(xwininfo -name lxterminal | grep 'Window id' | awk '{print $4}')"` | 22:41 |
wxl | someball: or more generally, if you wanted to pass a value `wmctrl -i -a "$(xwininfo -name ${application} | grep 'Window id' | awk '{print $4}')"` | 22:41 |
someball | yeah I can get every window id with wmctrl, but what I want is to know what their position is in the taskbar | 22:42 |
wxl | oh, and use -int if you want integer values | 22:42 |
someball | wmctrl displays the ids in the order that the app was ran | 22:43 |
wxl | yes, but it's a question of hexidecimal or integer | 22:43 |
someball | int | 22:44 |
wxl | then pass -int to xwininfo | 22:45 |
someball | been reading the man pages for wmctrl and xwininfo | 23:13 |
someball | nothing about the taskbar there | 23:13 |
wxl | because it has nothing to do with the taskbar | 23:13 |
someball | haha, yeah I figured | 23:13 |
wxl | as i said before, lxpanel's understanding of the sequence of opened applications is not exposed to the user | 23:14 |
wxl | one thing you might want to do if you're working on sequential behavior is to look at the PID | 23:14 |
someball | mmm, I dont need the ids to focus a window, so if there is a way to read the windows names on the taskbar that would do it | 23:15 |
wxl | nope | 23:15 |
someball | what is PID? | 23:15 |
wxl | put another way: lxpanel keeps its information about applications on the taskbar a secret | 23:15 |
wxl | process ID | 23:15 |
wxl | they are sequential | 23:15 |
wxl | xprop should give you it in the form of something like _NET_WM_PID(CARDINAL) | 23:16 |
wxl | or you could just pgrep | 23:16 |
someball | yeah I dont think thats gonna help me, I need the exact same order of the taskbar | 23:18 |
wxl | well it's the order they're opened, no? | 23:19 |
someball | not neccessarily | 23:20 |
wxl | oh? | 23:20 |
someball | I mean, I reorder some of them to a spcific order | 23:20 |
wxl | so don't do that and then you'll have it XD | 23:21 |
someball | which reminds I also want to hotkey a way to reorder them automatically | 23:21 |
someball | lol | 23:21 |
someball | ok if it cant be done with lxpanel do you know one that lets me control it via terminal? | 23:23 |
wxl | the problem is you're asking for information only the panel understands | 23:23 |
someball | I hope this journey for some hotekeys ends up in me making my own taskbar program xD | 23:25 |
someball | I meant I hot it does NOT end up like that | 23:25 |
wxl | welllllllllllllll | 23:28 |
wxl | i don't see anything in xwininfo or xprop that would give you what you want | 23:28 |
someball | I guess my hotkeys dreams will have to stop for now | 23:29 |
wxl | i mean you could probably use some other panel | 23:30 |
someball | yeah I'm gonna explore that later | 23:31 |
someball | hey I'm having a problem with lxhotkey | 23:48 |
someball | I have added a bunch of hotkeys but there is no wat to scroll down on the list | 23:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!