Logs: liberachat/#xmonad
| 2023-01-29 16:42:01 | → | mc47 joins (~mc47@xmonad/TheMC47) |
| 2023-01-29 17:42:01 | → | imaneb[m] joins (~imanebmat@2001:470:69fc:105::2:ff84) |
| 2023-01-29 17:49:13 | → | thyriaen joins (~thyriaen@2a01:aea0:dd4:4fa4:6245:cbff:fe9f:48b1) |
| 2023-01-29 17:50:05 | × | thyriaen quits (~thyriaen@2a01:aea0:dd4:4fa4:6245:cbff:fe9f:48b1) (Client Quit) |
| 2023-01-29 17:50:36 | → | thyriaen joins (~thyriaen@2a01:aea0:dd4:4fa4:6245:cbff:fe9f:48b1) |
| 2023-01-29 17:52:47 | <thyriaen> | Howdy friends - I want to have a button that does "sendMessage ( Move R )" and if it is already on the most far right on the monitor it moves the window to screen 2 |
| 2023-01-29 17:52:57 | <thyriaen> | instead |
| 2023-01-29 17:53:02 | → | unclechu joins (~unclechu@2001:470:69fc:105::354) |
| 2023-01-29 17:54:43 | <thyriaen> | basically i want to combine line 180 and 202 https://paste.tomsmeding.com/oZxl2qIV |
| 2023-01-29 18:03:58 | <geekosaur> | unfortunately, you can't determine that it's the most far right |
| 2023-01-29 18:09:17 | <thyriaen> | are there some workarounds ? |
| 2023-01-29 18:16:08 | <geekosaur> | possibly a copy of WindowNavigation with https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Layout/WindowNavigation.hs#L186 changed would be able to do it |
| 2023-01-29 18:16:55 | <geekosaur> | note that you'd have to verify `d` is the correct direction, and/or implement screen moving for each direction |
| 2023-01-29 18:22:52 | <geekosaur> | sadly you can't get the `Nothing` on failure out of `windowBracket_` |
| 2023-01-29 18:36:44 | × | jabuxas quits (~jabuxas@user/jabuxas) (Ping timeout: 260 seconds) |
| 2023-01-29 18:38:51 | → | jabuxas joins (~jabuxas@user/jabuxas) |
| 2023-01-29 18:43:48 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 2023-01-29 18:47:56 | <Lears> | thyriaen: I feel like I've said this before, but something like `X.A.MessageFeedback.sendMessageB (Move R) >>= \b -> unless b do ...` should work. The screen-moving part can probably be done with X.A.Navigation2D. Actually, Nav2D might already do what you want out-of-the-box. |
| 2023-01-29 18:49:06 | <geekosaur> | hm, I was wondering if we had a version of `sendMessage` that passed back the result somewhere… |
| 2023-01-29 18:49:25 | <geekosaur> | contrib's getting too big for me to have it indexed upstairs any mroe 😕 |
| 2023-01-29 19:24:26 | <thyriaen> | Nav2d |
| 2023-01-29 19:28:20 | <thyriaen> | i will try that out - it says it has problems with tabbed layout which might be big trouble for me xD |
| 2023-01-29 19:31:25 | <thyriaen> | windowGo works perfectly |
| 2023-01-29 19:31:48 | <thyriaen> | but i want a window to be pushed to new location so i have to try the other commands |
| 2023-01-29 19:36:44 | <thyriaen> | others don't do what i want |
| 2023-01-29 19:37:12 | <thyriaen> | WindowGo is almost what i want - I want to send my current window to the location which windowgo selects :p |
| 2023-01-29 19:43:02 | <Lears> | I see; it's lacking a `windowShift`. That being the case, you'll have to use what I wrote above, with manual screen-shifting logic in the elided section. |
| 2023-01-29 19:43:35 | <thyriaen> | Lears, yea ;/ however my skills are insufficient for what you wrote above :p |
| 2023-01-29 20:05:01 | × | qbt quits (~qbt@user/edun) (Ping timeout: 252 seconds) |
| 2023-01-29 20:11:53 | <thyriaen> | i have installed xmonad with stack |
| 2023-01-29 20:12:10 | <thyriaen> | following the guide doesn't really help me run it as my wm tho |
| 2023-01-29 20:15:33 | <geekosaur> | you may need to install something which provides a "traditional X session" via ~/.xsession |
| 2023-01-29 20:16:38 | <geekosaur> | the guide can't really help with this because different distros have different packages for it and some throw in other kinks (notably Fedora wants you to use some other file iirc — .xclients maybe?) |
| 2023-01-29 20:17:33 | <geekosaur> | right, .Xclients |
| 2023-01-29 20:18:10 | <thyriaen> | geekosaur, yeath not really sure what to make of all that |
| 2023-01-29 20:18:13 | <geekosaur> | or configure a user session using systemd but I'll point you to liskin for that one as I have no clue 🙂 |
| 2023-01-29 20:25:29 | <geekosaur> | looks like xorg-x11-xinit-session |
| 2023-01-29 20:26:05 | <geekosaur> | install with dnf and you should get a new login option which lets you run xmonad via .xsession or .Xclients |
| 2023-01-29 20:27:10 | <geekosaur> | took a bit of digging to find that, all it wanted to tell me about was how to disable wayland… |
| 2023-01-29 20:38:17 | <thyriaen> | geekosaur, but i don't want xmonad with dnf |
| 2023-01-29 20:38:35 | <thyriaen> | geekosaur, i need the newest version which isn't available in dnf |
| 2023-01-29 20:39:57 | <geekosaur> | this does not install xmonad. it installs the way you run something other than gnome or kde |
| 2023-01-29 20:41:02 | <geekosaur> | once installed, if you click on the gear icon in gdm (the login manager) it will offer .xsession as a login session. you can configure .xsession to run xmonad, i3, or any other window manager |
| 2023-01-29 20:41:06 | <thyriaen> | ah i install xorg-x11-xinit-session without xmonad ? |
| 2023-01-29 20:41:10 | <geekosaur> | right |
| 2023-01-29 20:41:28 | <thyriaen> | and and that will then load my ~/.xsession file where i will "exec xmonad" ? |
| 2023-01-29 20:41:36 | <geekosaur> | right |
| 2023-01-29 20:41:43 | <thyriaen> | alrighty let me try - thanks ! |
| 2023-01-29 20:42:54 | <geekosaur> | you may also have to set $PATH since xmonad installed via stack will put it in ~/.local/bin but the session PATH defaults to /bin:/usr/bin |
| 2023-01-29 20:46:30 | <thyriaen> | geekosaur, do you mean ~/.xsession will not find xmonad when it is only in my local path and not in /bin ? |
| 2023-01-29 20:46:59 | <geekosaur> | by default, yes. so you set PATH before `exec xmonad`, not really a problem |
| 2023-01-29 20:47:16 | <geekosaur> | or put it in .Xclients instead, which iirc reads PATH on Fedora |
| 2023-01-29 20:49:09 | <thyriaen> | geekosaur i think i have all my gobbledygook in ~/.profile |
| 2023-01-29 20:50:35 | <geekosaur> | https://paste.tomsmeding.com/oYECfYyL |
| 2023-01-29 20:51:59 | <thyriaen> | perfect |
| 2023-01-29 20:52:21 | <thyriaen> | when get's .profile loaded ? |
| 2023-01-29 20:53:18 | <geekosaur> | `.` is called `source` in bash, but I don't know if /bin/sh is bash on Fedora (it's not on Ubuntu which I run) so I'm being safe and using the old name |
| 2023-01-29 20:53:56 | <geekosaur> | so the user defined session loads your .profile and then runs xmonad |
| 2023-01-29 20:54:32 | <thyriaen> | you know what would be really good |
| 2023-01-29 20:54:35 | <thyriaen> | for me |
| 2023-01-29 20:55:22 | <thyriaen> | if i would read a guide about .profile .xinitrc .xsession .xprofile .bash_login and all that |
| 2023-01-29 20:56:31 | <geekosaur> | the only guides I've seen are error-prone at best. I know this stuff because I've been doing it since the 1980s… |
| 2023-01-29 20:56:41 | <thyriaen> | :P |
| 2023-01-29 20:57:07 | <thyriaen> | are you sure .profile doesn't get loaded later on by some other process ? |
| 2023-01-29 20:58:03 | <thyriaen> | cause for some reason ( which i don't know why ) in my current xmonad install ( dnf ) .profile get's run |
| 2023-01-29 20:59:19 | <thyriaen> | i think i will put everything in .xsession and get rid of .profile |
| 2023-01-29 20:59:25 | <geekosaur> | that is presumably done by the session definition instead of with a dotfile. you can try poking around in /usr/share/xsessions |
| 2023-01-29 20:59:44 | <geekosaur> | https://se-education.org/learningresources/contents/dotfiles/Dotfiles.html might be of interest, note the links to more information at the end |
| 2023-01-29 21:00:04 | <thyriaen> | thanks |
| 2023-01-29 21:00:43 | <geekosaur> | also I would probably leave .profile in case I ever needed to log in via text session for some reason |
| 2023-01-29 21:00:52 | <thyriaen> | geekosaur, not really what i was looking for tho |
| 2023-01-29 21:01:15 | <geekosaur> | https://thoughtbot.com/upcase/videos/intro-to-dotfiles at the end? |
| 2023-01-29 23:09:06 | <thyriaen> | geekosaur, i have created my .xsession and installed this xinit package |
| 2023-01-29 23:09:32 | <thyriaen> | however, when i login with the "user script" option in my sddm it tries to login, goes into blackscreen and back to sddm |
| 2023-01-29 23:10:45 | <geekosaur> | did you check ~/.xsession-errors? |
| 2023-01-29 23:11:21 | <thyriaen> | nothing new in it |
| 2023-01-29 23:11:27 | <thyriaen> | just i3 related stuff |
| 2023-01-29 23:13:17 | <thyriaen> | i guess .xsession needed to be executable |
| 2023-01-29 23:13:20 | <thyriaen> | which now works |
| 2023-01-29 23:14:06 | <thyriaen> | awesome sauce |
| 2023-01-29 23:14:24 | <geekosaur> | yes, its a script, it needs to be executable |
| 2023-01-29 23:17:26 | <thyriaen> | geekosaur, can i remove the ~/.stack folder or does xmonad continue to need stack every time i change the xmonad.hs ? |
| 2023-01-29 23:18:06 | <geekosaur> | it does |
| 2023-01-29 23:18:19 | <thyriaen> | ok |
| 2023-01-29 23:19:33 | <thyriaen> | geekosaur, if i use cabal to install it will i have that kind of residue aswell ? |
| 2023-01-29 23:20:10 | <geekosaur> | yes, in ~/.cabal/store |
| 2023-01-29 23:20:47 | <thyriaen> | ok |
| 2023-01-29 23:25:42 | <geekosaur> | if you do remove it, stack will recreate and refill it when next run. (cabal will break because you would have an environment file that was pointing into a nonexistent store; this is essentially because our cabal support cheats.) |
| 2023-01-29 23:26:06 | <thyriaen> | :p |
| 2023-01-29 23:26:16 | <thyriaen> | good to know |
| 2023-01-30 00:08:11 | × | thyriaen quits (~thyriaen@2a01:aea0:dd4:4fa4:6245:cbff:fe9f:48b1) (Quit: Leaving) |
| 2023-01-30 00:35:18 | → | bhall joins (~brunohall@138.199.22.99) |
| 2023-01-30 03:04:00 | × | banc quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 248 seconds) |
| 2023-01-30 03:14:47 | × | td_ quits (~td@i5387093F.versanet.de) (Ping timeout: 252 seconds) |
| 2023-01-30 03:16:49 | → | td_ joins (~td@i53870926.versanet.de) |
| 2023-01-30 03:26:45 | → | banc joins (banc@gateway/vpn/protonvpn/banc) |
| 2023-01-30 05:26:32 | × | jao quits (~jao@cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net) (Ping timeout: 268 seconds) |
| 2023-01-30 06:09:21 | → | qbt joins (~qbt@user/edun) |
| 2023-01-30 07:51:07 | → | Guest58 joins (~Guest58@174-22-199-196.phnx.qwest.net) |
| 2023-01-30 09:49:07 | × | Guest58 quits (~Guest58@174-22-199-196.phnx.qwest.net) (Quit: Client closed) |
All times are in UTC.