Logs: liberachat/#xmonad
| 2022-11-07 09:10:15 | → | sogens joins (sogens@gateway/vpn/protonvpn/sogens) |
| 2022-11-07 09:25:06 | → | Ehllie joins (~Thunderbi@217-67-208-66.itsa.net.pl) |
| 2022-11-07 09:47:25 | × | Ehllie quits (~Thunderbi@217-67-208-66.itsa.net.pl) (Ping timeout: 252 seconds) |
| 2022-11-07 10:05:53 | → | thyriaen joins (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) |
| 2022-11-07 10:05:57 | × | ft quits (~ft@p508dbd59.dip0.t-ipconnect.de) (Quit: leaving) |
| 2022-11-07 10:37:38 | × | pl quits (sid98063@id-98063.helmsley.irccloud.com) (Read error: Connection reset by peer) |
| 2022-11-07 10:38:27 | → | pl joins (sid98063@2a03:5180:f:1::1:7f0f) |
| 2022-11-07 11:09:55 | × | werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 252 seconds) |
| 2022-11-07 11:26:55 | → | werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) |
| 2022-11-07 12:03:03 | → | Ehllie joins (~Thunderbi@217-67-208-66.itsa.net.pl) |
| 2022-11-07 12:55:29 | × | vanvik1 quits (~vanvik@78.156.8.93) (Quit: Later) |
| 2022-11-07 13:30:44 | × | werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Ping timeout: 260 seconds) |
| 2022-11-07 13:30:59 | → | werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) |
| 2022-11-07 15:11:47 | → | vanvik1 joins (~vanvik@185.138.33.250) |
| 2022-11-07 15:21:07 | → | Ehllie1 joins (~Thunderbi@217-67-208-66.itsa.net.pl) |
| 2022-11-07 15:22:29 | × | Ehllie quits (~Thunderbi@217-67-208-66.itsa.net.pl) (Ping timeout: 246 seconds) |
| 2022-11-07 15:22:29 | Ehllie1 | is now known as Ehllie |
| 2022-11-07 15:42:30 | → | jabuxas joins (~jabuxas@user/jabuxas) |
| 2022-11-07 15:43:06 | <jabuxas> | hello |
| 2022-11-07 15:43:19 | <jabuxas> | how can I set a default layout for a workspace? |
| 2022-11-07 15:43:26 | → | liskin[m] joins (~liskinmat@2001:470:69fc:105::768) |
| 2022-11-07 15:47:14 | × | Ehllie quits (~Thunderbi@217-67-208-66.itsa.net.pl) (Ping timeout: 260 seconds) |
| 2022-11-07 15:55:26 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Layout-PerWorkspace.html |
| 2022-11-07 15:55:58 | <geekosaur> | https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L144-L151 example |
| 2022-11-07 16:12:51 | <jabuxas> | thank you, managed to get it working. it wasn't working for some reason adding on the layoutHook at the end so I just put it inside myLayoutHook |
| 2022-11-07 16:14:28 | <geekosaur> | your myLayoutHook probably has an unconditional set of layouts which would take precedence (cf. line 152 of mine) |
| 2022-11-07 16:14:51 | <geekosaur> | they have to come before those |
| 2022-11-07 16:15:47 | <geekosaur> | well, it'd still work but you would have to mod-space through the other layouts to reach it. it's not a very practical setup when put at the end |
| 2022-11-07 16:17:35 | <geekosaur> | also, after things like avoidStruts (noting I have some magic on line 144) |
| 2022-11-07 16:18:50 | → | mvk joins (~mvk@2607:fea8:5ce3:8500::4b68) |
| 2022-11-07 16:19:14 | <jabuxas> | now that you said, i think putting it first and then mylayouthook would probably work, as you have basic at the end |
| 2022-11-07 16:20:20 | <jabuxas> | also how do u have 12 workspaces o.O |
| 2022-11-07 16:22:41 | <geekosaur> | there's no limit on the number of workspaces you can have. I extended the top row keys to access the additional ones as 0/-/= (lines 251-255) |
| 2022-11-07 16:23:08 | <geekosaur> | but you can also use XMonad.Prompt.Workspaces to access by name, or use DynamicWorkspaces to make new named workspaces on the fly |
| 2022-11-07 16:23:21 | <jabuxas> | the reason I decided to fixate a floating layout on my game's workspace is because I couldn't figure out how to doFloat it properly since it just wasn't working, and onPropertyChange is some dark magic. tho doShift was working. |
| 2022-11-07 16:24:26 | <geekosaur> | I've also seen configs which have 20+ workspaces by using the F-keys to access the additional ones |
| 2022-11-07 16:24:36 | <jabuxas> | geekosaur: oh I see, I can't even juggle the 8 workspaces I have at hand but 12 workspaces does seem attractive |
| 2022-11-07 16:25:01 | <geekosaur> | I don't use the extra ones that often but they can be fairly useful at times |
| 2022-11-07 16:25:32 | <geekosaur> | I think there's also a Prompt module to find/focus a workspace by window |
| 2022-11-07 16:26:17 | <jabuxas> | rofi can also do that window finding thing |
| 2022-11-07 16:26:33 | <geekosaur> | yeh, part of XMonad.Prompt.Window |
| 2022-11-07 16:29:09 | <jabuxas> | i have no idea why my ncmpcpp scratchpad doesn't work |
| 2022-11-07 16:31:15 | <jabuxas> | when i run the exact command ` kitty --name ncmpcpp -e ncmpcpp` it works (it runs), but it doesn't really recognize as scratchpad |
| 2022-11-07 16:32:07 | <jabuxas> | https://0x0.st/oExA.txt at the end of the file i'm defining it |
| 2022-11-07 16:35:13 | <geekosaur> | might mean it doesn't set --name until it's mapped, which is what onPropertyChange is for |
| 2022-11-07 16:35:26 | <geekosaur> | then again that would break the terminal scratchpad too |
| 2022-11-07 16:37:07 | <jabuxas> | terminal scratchpad works |
| 2022-11-07 17:06:51 | <geekosaur> | hm. can you make sure -e doesn't override --name? |
| 2022-11-07 17:06:59 | geekosaur | is still trying to figure this out |
| 2022-11-07 17:08:56 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.17.1/docs/XMonad-Hooks-ManageDebug.html may be helpful as well, if you have access to xmonad's stderr (usually .xsession-errors) |
| 2022-11-07 17:16:31 | → | jao joins (~jao@92.233.85.247) |
| 2022-11-07 17:17:03 | × | thyriaen quits (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) (Remote host closed the connection) |
| 2022-11-07 17:19:24 | <jabuxas> | `WM_CLASS(STRING) = "ncmpcpp", "kitty"` |
| 2022-11-07 17:19:31 | <jabuxas> | so it looks like it isn't overriding |
| 2022-11-07 17:19:53 | <jabuxas> | when I xprop my term scratchpad, it shows up as `"scratchpad", "kitty"` |
| 2022-11-07 17:25:34 | → | thyriaen joins (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) |
| 2022-11-07 17:26:56 | → | thyriaen_ joins (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) |
| 2022-11-07 17:51:14 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 3.7.1) |
| 2022-11-07 17:51:22 | <geekosaur> | still might want to try ManageDebug (https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L54-L56 see also line 132) just to make sure. M-S-d (or pick your own key sequence and fill it in on line 54) then open the ncmpcpp scratchpad |
| 2022-11-07 17:51:31 | <jabuxas> | ok so is there an mpd library for xmobar or something? I'm not finding anything on https://hackage.haskell.org/package/xmobar-0.39/docs/Xmobar.html |
| 2022-11-07 17:51:53 | <geekosaur> | (also note the ManageHook only applies when first launched, so you would need to exit and relaunch) |
| 2022-11-07 17:52:05 | <geekosaur> | I don't know, I don't use xmobar |
| 2022-11-07 17:52:13 | <jabuxas> | ok I will try that managedebug |
| 2022-11-07 17:52:18 | <geekosaur> | although, no library as such but ISTR a plugin |
| 2022-11-07 17:54:07 | <geekosaur> | https://codeberg.org/xmobar/xmobar/src/branch/master/doc/plugins.org#headline-44 |
| 2022-11-07 17:54:36 | <geekosaur> | two plugins in fact, I pointed to MPDX vs. MPD which is headline-43 |
| 2022-11-07 17:55:42 | <jabuxas> | I was trying, but `Data constructor not in scope: MPD :: [String]` errors out |
| 2022-11-07 17:56:38 | <geekosaur> | sounds like your xmobar was built without it, then |
| 2022-11-07 17:57:44 | <geekosaur> | https://codeberg.org/xmobar/xmobar/src/branch/master/xmobar.cabal#L51-L53 |
| 2022-11-07 17:58:28 | <jabuxas> | I guess it was indeed built without it, even when I added `with_mpd : true` to stack.yaml and ran `stack install` |
| 2022-11-07 17:58:47 | <jabuxas> | I updated the stack.yaml and now it lloks like it should work |
| 2022-11-07 18:13:30 | <geekosaur> | make sure the libmpd dev library is installed or it might flip it back to false or just report it can't find an install plan |
| 2022-11-07 18:14:01 | <jabuxas> | all went well |
| 2022-11-07 18:14:03 | <jabuxas> | sort of |
| 2022-11-07 18:14:13 | <jabuxas> | it is showing <Waiting...> |
| 2022-11-07 18:14:17 | <jabuxas> | I'm not sure what's wrong |
| 2022-11-07 18:14:44 | <jabuxas> | `, Run $ MPD ["-t", "<composer> <title> <track>/<plength> <statei>", "--", "-P", ">>", "-Z", "|", "-S", "><"] 10` |
| 2022-11-07 18:20:35 | <geekosaur> | make sure MPD_HOST and MPD_PORT are set in xmobar's context? (this is similar to $PATH, if you started mpd separately then libmpd might not be able to find it) |
| 2022-11-07 18:21:32 | <geekosaur> | which mmeans it may be set for a terminal but not for xmobar |
| 2022-11-07 18:23:08 | <jabuxas> | hmmm |
| 2022-11-07 18:24:36 | <geekosaur> | or use -h/-p in the plugin args |
| 2022-11-07 18:29:51 | <jabuxas> | I have added `"-h", "127.0.0.1", "-p", "6600",` to the args |
| 2022-11-07 18:30:07 | <jabuxas> | still waiting |
| 2022-11-07 18:30:28 | <geekosaur> | 😞 |
| 2022-11-07 18:39:09 | <jabuxas> | looking at other people's config, they don't need to add -p and -h |
| 2022-11-07 18:40:44 | × | jabuxas quits (~jabuxas@user/jabuxas) (Remote host closed the connection) |
| 2022-11-07 18:41:50 | <geekosaur> | @tell jabuxas I don't know enough about mpd, I don't know if you (or they) are starting it differently, etc. |
| 2022-11-07 18:41:51 | <lambdabot> | Consider it noted. |
| 2022-11-07 18:43:28 | → | jabuxas joins (~jabuxas@user/jabuxas) |
| 2022-11-07 18:46:41 | <jabuxas> | geekosaur: i'll probably just write a script with `mpc current -f %title%` or something |
| 2022-11-07 18:47:49 | <jabuxas> | i'll try to figure that out later, thank you for your patience and help |
| 2022-11-07 18:47:52 | × | jabuxas quits (~jabuxas@user/jabuxas) (Client Quit) |
| 2022-11-07 18:59:52 | × | thyriaen_ quits (~thyriaen@2a01:aea0:dd4:470d:6245:cbff:fe9f:48b1) (Quit: Leaving) |
| 2022-11-07 19:23:20 | → | YasserK[m]1 joins (~varonking@2001:470:69fc:105::2:b4a2) |
| 2022-11-07 19:24:07 | × | burp quits (~quassel@hedgewars/sysadmin/burp) (Read error: Connection reset by peer) |
| 2022-11-07 19:24:07 | × | YasserK[m] quits (~varonking@2001:470:69fc:105::2:b4a2) (Ping timeout: 246 seconds) |
| 2022-11-07 19:24:07 | × | VarikValefor[m] quits (~varikvale@2001:470:69fc:105::a5d) (Ping timeout: 246 seconds) |
| 2022-11-07 19:24:07 | × | lions[m] quits (~lionsmatr@2001:470:69fc:105::d1fe) (Ping timeout: 246 seconds) |
| 2022-11-07 19:24:07 | × | MangoIV[m] quits (~mangoivma@2001:470:69fc:105::2:8417) (Ping timeout: 246 seconds) |
| 2022-11-07 19:24:07 | × | unclechu quits (~unclechu@2001:470:69fc:105::354) (Ping timeout: 246 seconds) |
All times are in UTC.