Logs: freenode/#xmonad
| 2021-05-21 17:35:44 | → | deepy joins (deepy@wrongplanet/deepa) |
| 2021-05-21 17:43:47 | → | mc47 joins (~yecinem@89.246.239.190) |
| 2021-05-21 17:53:39 | × | notis quits (~notis@85.203.44.245) (Ping timeout: 265 seconds) |
| 2021-05-21 18:03:46 | × | xubun2 quits (~xubun2@unaffiliated/xubun2) (Ping timeout: 240 seconds) |
| 2021-05-21 18:05:02 | × | mc47 quits (~yecinem@89.246.239.190) (Quit: Leaving) |
| 2021-05-21 18:05:19 | → | mc47 joins (~yecinem@89.246.239.190) |
| 2021-05-21 18:05:30 | × | mc47 quits (~yecinem@89.246.239.190) (Client Quit) |
| 2021-05-21 18:11:00 | × | mudri quits (sid317655@gateway/web/irccloud.com/x-tkftihyrhfadzkvn) () |
| 2021-05-21 18:27:38 | × | idhugo quits (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) (Ping timeout: 260 seconds) |
| 2021-05-21 18:30:07 | ← | amiri parts (~amiri@cpe-76-91-154-9.socal.res.rr.com) () |
| 2021-05-21 18:38:56 | × | thc202 quits (~thc202@unaffiliated/thc202) (Quit: thc202) |
| 2021-05-21 18:41:02 | → | toniz4 joins (~toniz4@unaffiliated/toniz4) |
| 2021-05-21 18:48:09 | ChanServ | sets mode +o geekosaur |
| 2021-05-21 18:48:48 | geekosaur | sets topic to "Want to help? http://bit.ly/2nYjqpQ | xmonad: the tiling window manager with formally proven extensions | http://xmonad.org | http://xmonad.org/faq | cheatsheet: https://wiki.haskell.org/File:Xmbindings.png | https://ircbrowse.tomsmeding.com/browse/xmonad | We're on Libera.chat now" |
| 2021-05-21 18:49:07 | geekosaur | sets mode -o geekosaur |
| 2021-05-21 19:04:41 | ← | davemq parts (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) ("ERC (IRC client for Emacs 27.2)") |
| 2021-05-21 19:13:15 | × | qbit2821 quits (~qbit2821@94-255-133-214.cust.bredband2.com) (Quit: WeeChat 3.1) |
| 2021-05-21 19:22:09 | → | qbit2821 joins (~qbit2821@94-255-133-214.cust.bredband2.com) |
| 2021-05-21 19:22:17 | ← | qbit2821 parts (~qbit2821@94-255-133-214.cust.bredband2.com) () |
| 2021-05-21 19:28:38 | → | qbit2821 joins (~qbit2821@94-255-133-214.cust.bredband2.com) |
| 2021-05-21 19:35:23 | × | geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Ping timeout: 240 seconds) |
| 2021-05-21 19:37:45 | → | geekosaur joins (45870322@069-135-003-034.biz.spectrum.com) |
| 2021-05-21 19:44:28 | × | qbit2821 quits (~qbit2821@94-255-133-214.cust.bredband2.com) (Quit: WeeChat 3.1) |
| 2021-05-21 19:45:33 | ← | seschwar parts (~seschwar@unaffiliated/seschwar) (":wq") |
| 2021-05-21 19:51:37 | × | geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Quit: Ping timeout (120 seconds)) |
| 2021-05-21 20:00:13 | → | geekosaur joins (45870322@069-135-003-034.biz.spectrum.com) |
| 2021-05-21 20:12:23 | → | davemq joins (~davemq@99-179-0-50.lightspeed.austtx.sbcglobal.net) |
| 2021-05-21 20:22:10 | → | dementorrr joins (5678f3b6@86.120.243.182) |
| 2021-05-21 20:23:53 | → | werneta joins (~werneta@137.79.212.255) |
| 2021-05-21 20:27:47 | → | notis joins (~notis@185.51.134.229) |
| 2021-05-21 20:36:39 | × | ericsagn1 quits (~ericsagne@2405:6580:0:5100:e563:9647:b265:38d9) (Ping timeout: 245 seconds) |
| 2021-05-21 20:42:44 | → | idhugo joins (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) |
| 2021-05-21 20:45:11 | <dementorrr> | Hello! Is there a way to "grab" the current window? By that i mean that xwd asks me what screen i want to select for a screenshot, and I want to automatically grab the current one... |
| 2021-05-21 20:49:00 | → | ericsagn1 joins (~ericsagne@2405:6580:0:5100:988d:da35:81ad:f58f) |
| 2021-05-21 20:50:23 | <dementorrr> | Ok, I think it's in xmonad util ungrab |
| 2021-05-21 20:51:38 | <geekosaur> | it'll be up to the individual utility, but yes you have to drop xmonad's grab for the screenshot utility to grab it |
| 2021-05-21 20:52:26 | × | werneta quits (~werneta@137.79.212.255) (Ping timeout: 240 seconds) |
| 2021-05-21 20:57:34 | <geekosaur> | (xmonad keeps the grab so things like Prompt and Submap will work properly) |
| 2021-05-21 20:58:40 | <dementorrr> | Hmm... but it seems that I still have to select the screen... I would like that when the crosshair pops up it will automatically "click" the current window. Is that possible? |
| 2021-05-21 20:59:03 | <geekosaur> | again, that's up to the utility, not to xmonad |
| 2021-05-21 20:59:38 | <geekosaur> | scrot has -u, for example |
| 2021-05-21 20:59:48 | <dementorrr> | So, if the utility wants to get a click from the user, xmonad can't do anything about that, till the user clicks the screen? |
| 2021-05-21 20:59:55 | <geekosaur> | right |
| 2021-05-21 21:00:10 | <dementorrr> | ... okay then, is there a way to simulate a click ?? ;)) |
| 2021-05-21 21:00:29 | <geekosaur> | I mean, hypothetically you can "forge" an event but programs afe free to ignore SendEvents |
| 2021-05-21 21:01:18 | ← | meowray parts (MaskRay@sjtug/member/MaskRay) ("WeeChat 2.6") |
| 2021-05-21 21:01:23 | <dementorrr> | I'm using slop to get info about the current window (like where is it on the screen, its size, etc) so I can pipe that to ffmpeg to record it, but slop wants me to select a window, and I would like to say "its always the current one" |
| 2021-05-21 21:01:46 | <geekosaur> | easiest way to simulate UI actions is not from xmonad but to use xdotool |
| 2021-05-21 21:02:34 | <geekosaur> | we have ways to simulate keystrokes but not mouse actions, iirc |
| 2021-05-21 21:03:06 | <liskin> | xdotool also lets you query the current window id |
| 2021-05-21 21:04:05 | <geekosaur> | you can look through https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Util/Paste.hs to see how to simulate events although it only does key events, not pointer events |
| 2021-05-21 21:06:42 | <dementorrr> | Hmm.. it seems xdotool allows to simulate a click with "xdotool click 1", but now the problem is that the mouse may be on another window. Probably there is a tool that can move the mouse to the current focused window |
| 2021-05-21 21:07:38 | <dementorrr> | oh ... its still xdotool, but now it's a chicken egg problem |
| 2021-05-21 21:09:12 | <liskin> | xdotool can move mouse relative to window, ans that window can be the current window |
| 2021-05-21 21:10:59 | <liskin> | if all you need is the rectangle of the active window, you can just do xwininfo -id "$(xdotool getactivewindow)" |
| 2021-05-21 21:11:30 | <geekosaur> | for that matter you can do the same with xwd |
| 2021-05-21 21:11:40 | <geekosaur> | it also takes -id |
| 2021-05-21 21:13:51 | <dementorrr> | liskin: Thanks! You are right, I can get the necesary info from xwininfo. Now if I parse the output I can get the size and offset of the current window :) Thx guys for the info! |
| 2021-05-21 21:14:54 | <liskin> | or even xdotool getactivewindow getwindowgeometry |
| 2021-05-21 21:15:13 | <dementorrr> | Hmm... i don:t think I need xdotool then... I mean I can get the window id with "withFocused" |
| 2021-05-21 21:15:39 | × | sagax quits (~sagax_nb@213.138.71.146) (Excess Flood) |
| 2021-05-21 21:15:45 | × | idhugo quits (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) (Remote host closed the connection) |
| 2021-05-21 21:16:01 | → | idhugo joins (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) |
| 2021-05-21 21:16:02 | <liskin> | yeah you can definitely get the window id and even the dimensions completely inside xmonad |
| 2021-05-21 21:16:43 | <liskin> | but just using xdotool will probably be the easiest way |
| 2021-05-21 21:18:46 | <dementorrr> | Okay, now I got a bash question (probably will ask it at #bash): is there a way to parse a multiline output? I mean the values are on different lines... |
| 2021-05-21 21:19:33 | <liskin> | eval "$(xdotool getactivewindow getwindowgeometry --shell)" |
| 2021-05-21 21:19:48 | <liskin> | doesn't really answer the question of parsing multiple lines, but it does what you want :-) |
| 2021-05-21 21:20:12 | <dementorrr> | Okay, thanks again :) |
| 2021-05-21 21:20:32 | <liskin> | otheriwse bash lets you parse multiple lines by grouping a bunch of reads with {} and using the command as input for those |
| 2021-05-21 21:20:40 | <liskin> | or you can match a regex |
| 2021-05-21 21:20:52 | <liskin> | that is indeed offtopic here tho :-) |
| 2021-05-21 21:28:08 | ← | deepy parts (deepy@wrongplanet/deepa) ("WeeChat 2.8") |
| 2021-05-21 21:40:22 | → | sagax joins (~sagax_nb@213.138.71.146) |
| 2021-05-21 21:46:08 | × | idhugo quits (~idhugo@80-62-117-193-mobile.dk.customer.tdc.net) (Ping timeout: 246 seconds) |
| 2021-05-21 21:50:41 | × | notis quits (~notis@185.51.134.229) (Ping timeout: 260 seconds) |
| 2021-05-21 21:52:24 | → | notis joins (~notis@85.203.44.98) |
| 2021-05-21 21:55:02 | × | pittma quits (sid332680@gateway/web/irccloud.com/x-vzqcpnpbirbvbyns) (Read error: Connection reset by peer) |
| 2021-05-21 21:59:04 | → | pittma joins (sid332680@gateway/web/irccloud.com/x-pbpwynyqvuwzqqar) |
| 2021-05-21 22:04:28 | × | matijja quits (~matijja@193.77.181.208) (Quit: bye) |
| 2021-05-21 22:05:15 | → | matijja joins (~matijja@193.77.181.208) |
| 2021-05-21 22:16:18 | × | dementorrr quits (5678f3b6@86.120.243.182) (Quit: Connection closed) |
| 2021-05-21 22:22:04 | → | benin joins (~benin@183.82.204.177) |
| 2021-05-21 22:44:21 | × | toniz4 quits (~toniz4@unaffiliated/toniz4) (Ping timeout: 260 seconds) |
| 2021-05-21 22:46:15 | → | toniz4 joins (~toniz4@191.31.226.130) |
| 2021-05-21 22:47:44 | × | notis quits (~notis@85.203.44.98) (Ping timeout: 246 seconds) |
| 2021-05-21 23:01:13 | → | werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) |
| 2021-05-21 23:32:47 | × | toniz4 quits (~toniz4@191.31.226.130) (Quit: leaving) |
| 2021-05-21 23:51:26 | × | s00pcan quits (~chris@107.181.165.217) (Ping timeout: 240 seconds) |
| 2021-05-21 23:53:33 | → | s00pcan joins (~chris@075-133-056-178.res.spectrum.com) |
| 2021-05-22 00:40:05 | × | geekosaur quits (45870322@069-135-003-034.biz.spectrum.com) (Quit: Ping timeout (120 seconds)) |
| 2021-05-22 00:47:14 | → | geekosaur joins (45870322@069-135-003-034.biz.spectrum.com) |
| 2021-05-22 00:54:17 | → | dmwit joins (~dmwit@pool-173-66-86-32.washdc.fios.verizon.net) |
| 2021-05-22 01:09:10 | → | a6a45081-2b83 joins (~aditya@122.163.181.9) |
| 2021-05-22 01:25:23 | × | thunderrd quits (~thunderrd@183.182.115.120) (Ping timeout: 268 seconds) |
| 2021-05-22 01:49:34 | × | kajzer quits (~kajzer@unaffiliated/kajzer) (Quit: WeeChat 3.1) |
| 2021-05-22 02:12:39 | × | a6a45081-2b83 quits (~aditya@122.163.181.9) (Remote host closed the connection) |
| 2021-05-22 02:14:09 | × | ericsagn1 quits (~ericsagne@2405:6580:0:5100:988d:da35:81ad:f58f) (Ping timeout: 245 seconds) |
| 2021-05-22 02:26:09 | → | ericsagn1 joins (~ericsagne@2405:6580:0:5100:c59f:b:a27d:d967) |
| 2021-05-22 02:30:30 | → | a6a45081-2b83 joins (~aditya@122.163.181.9) |
All times are in UTC.