Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→
Page 1 .. 169 170 171 172 173 174 175 176 177 178 179 .. 1843
184,249 events total
2021-08-12 20:44:48 <grvxs[m]> , keys = workspaceShiftBinds myLayout
2021-08-12 20:44:48 <grvxs[m]> ```
2021-08-12 20:47:18 <elonsroadster[m]> wait what isn't this part: `(f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]` going to clobber what came before?
2021-08-12 20:47:49 <elonsroadster[m]> specifically: `(W.greedyView, 0),`
2021-08-12 20:48:04 <elonsroadster[m]> so it makes perfect sense that it stopped working
2021-08-12 20:48:36 grvxs[m] < https://libera.ems.host/_matrix/media/r0/download/libera.chat/dfec83630afc3c5df81f3f6565342d213fd775e4/message.txt >
2021-08-12 20:48:59 <elonsroadster[m]> no listen to what im saying
2021-08-12 20:49:12 <elonsroadster[m]> this part `(W.greedyView, 0),`
2021-08-12 20:49:12 <grvxs[m]> ok
2021-08-12 20:49:15 <elonsroadster[m]> is clobbering the key definitions that came before it
2021-08-12 20:49:31 <elonsroadster[m]> you're re-binding the definitions you set earlier
2021-08-12 20:49:41 <elonsroadster[m]> I think you shuold just delete that part
2021-08-12 20:49:43 <elonsroadster[m]> or alternatively
2021-08-12 20:49:49 <elonsroadster[m]> if you wanted to combine everythinng
2021-08-12 20:50:14 <elonsroadster[m]> `W.greedyView` should be the `bindOn [("", windows $ W.greedyView n), (n, toggleWS)]` from above
2021-08-12 20:50:23 <elonsroadster[m]> and then you can just delete the whole thing above
2021-08-12 20:51:11 <elonsroadster[m]> also you're doing the same thing in the qwerty layout: `[(W.greedyView, 0), (W.shift, shiftMask)]`
2021-08-12 20:51:28 <elonsroadster[m]> this is binding both `mod + number` to greedyView
2021-08-12 20:51:43 <elonsroadster[m]> AND mod + shift + number
2021-08-12 20:52:03 elonsroadster[m] < https://libera.ems.host/_matrix/media/r0/download/libera.chat/778d8a26ce50b44adbaf451cb2d027095eef68d0/message.txt >
2021-08-12 20:52:26 × wonko quits (~wjc@62.115.229.50) (Ping timeout: 268 seconds)
2021-08-12 20:52:26 <grvxs[m]> ok it worked
2021-08-12 20:52:27 <grvxs[m]> thanks
2021-08-12 20:54:13 <grvxs[m]> One last question can I have only 1 keybind for example "M-S-l" which does the following for me
2021-08-12 20:54:13 <grvxs[m]> run a bash script(setxbmap) using spawn
2021-08-12 20:54:13 <grvxs[m]> if the layout is qwerty then switch to dvorak and vice versa
2021-08-12 20:54:23 <grvxs[m]> * One last question can I have only 1 keybind for example "M-S-l" which does the following for me
2021-08-12 20:54:23 <grvxs[m]> run a bash script(setxkbmap) using spawn
2021-08-12 20:54:23 <grvxs[m]> if the layout is qwerty then switch to dvorak and vice versa
2021-08-12 20:55:07 <grvxs[m]> I'm sorry if I'm annoying
2021-08-12 20:55:45 <elonsroadster[m]> grvxs[m]: yes i was actually going to suggest something like this
2021-08-12 20:56:03 <grvxs[m]> yea it seems more reasonable
2021-08-12 20:56:05 <elonsroadster[m]> I dont know too much about keyboard layouts
2021-08-12 20:56:18 <elonsroadster[m]> but is there a command you can run that will tell you what the current layout is?
2021-08-12 20:56:28 <grvxs[m]> yes there is
2021-08-12 20:56:36 grvxs[m] < https://libera.ems.host/_matrix/media/r0/download/libera.chat/71fecf2f27dcd0487e0e80caea94182385db9d27/message.txt >
2021-08-12 20:56:41 <grvxs[m]> this script might be helpful
2021-08-12 20:56:55 <grvxs[m]> us is qwerty and dvp is programmer dvorak
2021-08-12 20:57:25 <elonsroadster[m]> right so then instead of using an IORef, what you could do is just run a shell command to decide which map to use
2021-08-12 20:57:58 <grvxs[m]> hmmm
2021-08-12 20:58:26 <grvxs[m]> `LAYOUT=$(setxkbmap -query | grep layout | awk '{print $2}')` this will give the current layout
2021-08-12 20:58:44 <elonsroadster[m]> so you'd replace this line: `currentLayout <- liftIO $ readIORef ref`
2021-08-12 21:01:10 <grvxs[m]> how do we get the output of a shell script to a variable?
2021-08-12 21:03:00 <elonsroadster[m]> `runProcessWithInput`
2021-08-12 21:03:04 <elonsroadster[m]> https://github.com/xmonad/xmonad-contrib/blob/d5522d69db9ae2a57b3a10056ea7e80aaddf123d/XMonad/Util/Run.hs#L57
2021-08-12 21:03:32 <elonsroadster[m]> the only thing I might worry about is that this could have an effect on how quickly your bindings run
2021-08-12 21:03:42 <elonsroadster[m]> but it probably would not be noticeable
2021-08-12 21:03:52 <grvxs[m]> wdym?
2021-08-12 21:03:53 <grvxs[m]> oh, delay?
2021-08-12 21:04:09 <grvxs[m]> yea it might not be noticable
2021-08-12 21:04:17 <elonsroadster[m]> yeah because it means it would be shelling out before running each command every time
2021-08-12 21:04:18 <elonsroadster[m]> yeah it probably will not be noticeable
2021-08-12 21:04:46 <elonsroadster[m]> but if it were, you could cache the result using some type of extensible state and then update it every so often or something
2021-08-12 21:05:13 <elonsroadster[m]> so yeah just use `runProcessWithInput`
2021-08-12 21:06:03 grvxs[m] < https://libera.ems.host/_matrix/media/r0/download/libera.chat/056576783e34e438aae13a2ea5d1ab7540ce8de0/message.txt >
2021-08-12 21:07:45 <elonsroadster[m]> great then no issue
2021-08-12 21:07:55 <elonsroadster[m]> do you know how to use runProcessWithInput properly?
2021-08-12 21:08:22 <grvxs[m]> no i think it works like System.Process (readProcess)
2021-08-12 21:08:43 <grvxs[m]> i saw it on stackoverflow but I don't know how to pipe
2021-08-12 21:12:48 <elonsroadster[m]> just read the doc here: https://github.com/xmonad/xmonad-contrib/blob/a03d58cf6a071f9bacb3543e70e94c0c5603434c/XMonad/Util/Run.hs#L57
2021-08-12 21:12:51 <elonsroadster[m]> its very straightforward
2021-08-12 21:13:54 <grvxs[m]> thanks I'll try this tomorrow 2:41 am oof
2021-08-12 21:14:04 <grvxs[m]> thanks for your help
2021-08-12 22:37:06 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Remote host closed the connection)
2021-08-12 22:38:57 geekosaur joins (~geekosaur@xmonad/geekosaur)
2021-08-12 22:54:13 × seschwar quits (~seschwar@user/seschwar) (Quit: :wq)
2021-08-12 23:18:51 <yuu[m]> omg is there a way to position the mouse cursor in into the window (like in the center) when resizing?
2021-08-12 23:20:34 <yuu[m]> for some reason by default it always put the cursor in the lower right, which leads to many inconveniences
2021-08-12 23:37:41 × srk quits (~sorki@user/srk) (Ping timeout: 268 seconds)
2021-08-12 23:46:35 srk joins (~sorki@user/srk)
2021-08-12 23:54:36 × jakub[m]1 quits (~jakubfami@2001:470:69fc:105::a43) (Ping timeout: 240 seconds)
2021-08-12 23:54:42 × diaspora[m] quits (~diasporae@2001:470:69fc:105::93e) (Ping timeout: 245 seconds)
2021-08-12 23:54:42 × craige[m] quits (~craigemcw@2001:470:69fc:105::35f1) (Ping timeout: 245 seconds)
2021-08-12 23:54:42 × yuu[m] quits (~yuumatrix@2001:470:69fc:105::8a6) (Ping timeout: 245 seconds)
2021-08-12 23:54:50 × M-elo-[m] quits (~gilganixm@2001:470:69fc:105::3d09) (Ping timeout: 256 seconds)
2021-08-12 23:54:58 × gate32[m] quits (~gate32mat@2001:470:69fc:105::9e3) (Ping timeout: 240 seconds)
2021-08-12 23:54:59 × dkasak[m] quits (~dkasakter@2001:470:69fc:105::a34) (Ping timeout: 240 seconds)
2021-08-12 23:54:59 × josiah_sama[m] quits (~josiahsam@2001:470:69fc:105::a46) (Ping timeout: 240 seconds)
2021-08-12 23:54:59 × oggythebilla[m] quits (~oggythebi@2001:470:69fc:105::17ed) (Ping timeout: 240 seconds)
2021-08-12 23:54:59 × liskin[m] quits (~liskinmat@2001:470:69fc:105::768) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × cjbaylisstheythe quits (~cjbayliss@2001:470:69fc:105::bade) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × sagaracharya[m] quits (~sagaracha@2001:470:69fc:105::690d) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × antilambda[m] quits (~antilambd@2001:470:69fc:105::a2b) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × vojjvoda[m] quits (~vojjvodam@2001:470:69fc:105::cefe) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × Youssef[m] quits (~youssefbm@2001:470:69fc:105::d1e1) (Ping timeout: 252 seconds)
2021-08-12 23:55:00 × DrRoot[m] quits (~drroot85m@2001:470:69fc:105::c35e) (Ping timeout: 252 seconds)
2021-08-12 23:55:06 × jgart[m] quits (~jgartemat@2001:470:69fc:105::5c9) (Ping timeout: 252 seconds)
2021-08-12 23:55:06 × ClassifiedLegend quits (~classifie@2001:470:69fc:105::cee4) (Ping timeout: 252 seconds)
2021-08-12 23:55:07 × TheWizardTower[m quits (~thewizard@2001:470:69fc:105::a5b) (Ping timeout: 252 seconds)
2021-08-12 23:55:07 × ci[m] quits (~cimatrixo@2001:470:69fc:105::d59e) (Ping timeout: 252 seconds)
2021-08-12 23:55:07 × iffsid quits (~iffsid@2001:470:69fc:105::a3e) (Ping timeout: 252 seconds)
2021-08-12 23:55:08 × unrooted quits (~unrooted@2001:470:69fc:105::a4a) (Ping timeout: 245 seconds)
2021-08-12 23:55:13 × Las[m] quits (~lasmatrix@2001:470:69fc:105::74e) (Ping timeout: 268 seconds)
2021-08-12 23:55:13 × Mellow[m] quits (~mellow210@2001:470:69fc:105::8c62) (Ping timeout: 268 seconds)
2021-08-12 23:55:13 × amirography[m] quits (~amirograp@2001:470:69fc:105::c365) (Ping timeout: 268 seconds)
2021-08-12 23:55:13 × jidra[m] quits (~jidramatr@2001:470:69fc:105::ceaa) (Ping timeout: 268 seconds)
2021-08-12 23:55:13 × mc47[m] quits (~mc47matri@2001:470:69fc:105::733) (Ping timeout: 268 seconds)
2021-08-12 23:55:13 × syntactic_sugar[ quits (~syntactic@2001:470:69fc:105::b4af) (Ping timeout: 268 seconds)
2021-08-12 23:55:16 × fabfianda[m] quits (~fabfianda@2001:470:69fc:105::6db) (Ping timeout: 276 seconds)
2021-08-12 23:55:16 × telefza[m] quits (~telefzama@2001:470:69fc:105::3c37) (Ping timeout: 276 seconds)

All times are in UTC.