From jmikeneedham at gmail.com Fri Apr 1 14:42:27 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Fri, 1 Apr 2022 09:42:27 -0500 Subject: [xmonad] Total Noob to Xmonad Message-ID: <31F64BE9-51ED-434F-BED4-39B729C38B7D@gmail.com> Greetings all; I am brand new to TWMs altogether but have used UNIX and UNIX- like systems for a little over 30 years now. This has been both professionally and personally, I am a System Admin who also develops software. The latter started in 1990 while in college, taking C++ and Java classes and through my part-time internship at my school, writing KSH scripts and data entry work on an IBM AIX server. So I am learning Haskell and Rust now to round out my knowledge of many languages and using EndeavourOS (Arch based) Linux as my daily driver. My machine is a 9+ year old HP Z400 Workstation with 16gb Ram and 500gb SSD. Has some other various USB bits and bobs too all which show up fine running lsusb. I have a very base install of Xmonad 0.17 (compiled from source) and the companion contrib also from source. There is also Xmobar, dmenu and trayer installed. It works, kind of. Using keybindings I can run all apps from dmenu and the regular keys work. My xmonad.hs is just an import of XMonad and defaults set to modMask = mon4Mask and terminal = “alacritty “. I can get into Xmonad through startx ( which in .xinitrc the file is the supplied version from the EOS repository) with the last lines removed and added exec Xmonad). Have to date tried 2 display login managers lightdm and sddm and this system was built initially with XFCE and that has been removed plus dependancies. So Xmonad is the only de currently. All the gtk and qt apps are still installed, and run from dmenu or invoked from CLI. What happens is the dm of choice runs from systemctl just fine. At login you get your dialog box and put in your password, then the machine tries to load the session and just drops you back to the login screen. Upon disabling lightdm or sddm (no matter which, they both behave as described above) you can reboot from an alternate tty (eg cnttl-alt-f2) and reboot. Have tried Xmonad —recompile from alt tty and this hangs the x-session running on tty 0 so I reboot from alt tty and rinse and repeat. So currently the dm is disabled and I through much reading and watching a few tutorials as well as going through the Xmonad documentation, believe it is a PAM Authentication issue? I do have lxsession installed and I think I need a little clarification on what exactly needs to go into Xmonad.hs as far as imports and perhaps hooks. If I am wrong about my conclusion, please advise. I currently have decided to go with sddm if anyone decides to reply. Thank you for help in advance and please forgive me for my verbose post. Regards, Michael Needham From platon7pronko at gmail.com Fri Apr 1 14:57:25 2022 From: platon7pronko at gmail.com (Platon Pronko) Date: Fri, 1 Apr 2022 17:57:25 +0300 Subject: [xmonad] Total Noob to Xmonad In-Reply-To: <31F64BE9-51ED-434F-BED4-39B729C38B7D@gmail.com> References: <31F64BE9-51ED-434F-BED4-39B729C38B7D@gmail.com> Message-ID: <344d7360-98f9-4600-e6c6-a45cbf1f4844@gmail.com> Hi! I don't have any good ideas about what could be causing this. But I can give a tip about debugging the situation - maybe it'll help. I had similar situations ("then the machine tries to load the session and just drops you back to the login screen"), and I debugged it by wrapping the session startup code in a subshell and sending output to log files. Something like this (I'm using lightdm, but session files should be in the same location for all others): $ cat /usr/share/xsessions/debug.desktop [Desktop Entry] Name=Debug session Comment=Only run ~/.xsession Exec=bash -c "~/.xsession" $ cat ~/.xsession #!/bin/bash ( xmonad 1>/tmp/xmonad.stdout 2>/tmp/xmonad.stderr & xfce4-session ) 1>/tmp/session.stdout 2>/tmp/session.stderr > Have tried Xmonad —recompile from alt tty and this hangs the x-session This is strange - why should --recompile hang the running xmonad process? Does the `xmonad --recompile` command complete successfully? -- Best regards, Platon Pronko PGP 7A2CB94E On 2022-04-01 17:42, Michael Needham wrote: > > Greetings all; > I am brand new to TWMs altogether but have used UNIX and UNIX- like systems for a little over 30 years now. This has been both professionally and personally, I am a System Admin who also develops software. The latter started in 1990 while in college, taking C++ and Java classes and through my part-time internship at my school, writing KSH scripts and data entry work on an IBM AIX server. > > So I am learning Haskell and Rust now to round out my knowledge of many languages and using EndeavourOS (Arch based) Linux as my daily driver. > > My machine is a 9+ year old HP Z400 Workstation with 16gb Ram and 500gb SSD. Has some other various USB bits and bobs too all which show up fine running lsusb. > > I have a very base install of Xmonad 0.17 (compiled from source) and the companion contrib also from source. There is also Xmobar, dmenu and trayer installed. It works, kind of. > > Using keybindings I can run all apps from dmenu and the regular keys work. > > My xmonad.hs is just an import of XMonad and defaults set to modMask = mon4Mask and terminal = “alacritty “. I can get into Xmonad through startx ( which in .xinitrc the file is the supplied version from the EOS repository) with the last lines removed and added exec Xmonad). > > Have to date tried 2 display login managers lightdm and sddm and this system was built initially with XFCE and that has been removed plus dependancies. So Xmonad is the only de currently. All the gtk and qt apps are still installed, and run from dmenu or invoked from CLI. > > What happens is the dm of choice runs from systemctl just fine. At login you get your dialog box and put in your password, then the machine tries to load the session and just drops you back to the login screen. Upon disabling lightdm or sddm (no matter which, they both behave as described above) you can reboot from an alternate tty (eg cnttl-alt-f2) and reboot. Have tried Xmonad —recompile from alt tty and this hangs the x-session running on tty 0 so I reboot from alt tty and rinse and repeat. So currently the dm is disabled and I through much reading and watching a few tutorials as well as going through the Xmonad documentation, believe it is a PAM Authentication issue? I do have lxsession installed and I think I need a little clarification on what exactly needs to go into Xmonad.hs as far as imports and perhaps hooks. If I am wrong about my conclusion, please advise. I currently have decided to go with sddm if anyone decides to reply. > > Thank you for help in advance and please forgive me for my verbose post. > > Regards, > Michael Needham > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad From allbery.b at gmail.com Fri Apr 1 15:06:55 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Fri, 1 Apr 2022 11:06:55 -0400 Subject: [xmonad] Total Noob to Xmonad In-Reply-To: <31F64BE9-51ED-434F-BED4-39B729C38B7D@gmail.com> References: <31F64BE9-51ED-434F-BED4-39B729C38B7D@gmail.com> Message-ID: On Fri, Apr 1, 2022 at 10:42 AM Michael Needham wrote: > What happens is the dm of choice runs from systemctl just fine. At login you get your dialog box and put in your password, then the machine tries to load the session and just drops you back to the login screen. Upon disabling lightdm or sddm (no matter which, they both behave as described above) you can reboot from an alternate tty (eg cnttl-alt-f2) and reboot. Have tried Xmonad —recompile from alt tty and this hangs the x-session running on tty 0 so I reboot from alt tty and rinse and repeat. So currently the dm is disabled and I through much reading and watching a few tutorials as well as going through the Xmonad documentation, believe it is a PAM Authentication issue? I do have lxsession installed and I think I need a little clarification on what exactly needs to go into Xmonad.hs as far as imports and perhaps hooks. If I am wrong about my conclusion, please advise. I currently have decided to go with sddm if anyone decides to reply. A common complication with display managers is that the $PATH they use is `/bin:/usr/bin`; they don't run your `.profile`/`.bash_profile`, so they won't find xmonad unless it's in `/usr/bin`. It's often a good idea to use a `.xsession` based session, with your `.xsession` file being something like: #! /bin/bash source ~/.bash_profile exec xmonad > Thank you for help in advance and please forgive me for my verbose post. Better to provide more information than none, when it comes to debugging these kinds of failures. -- brandon s allbery kf8nh allbery.b at gmail.com From jmikeneedham at gmail.com Sat Apr 2 21:10:57 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Sat, 2 Apr 2022 16:10:57 -0500 Subject: [xmonad] Configuration Issue version 0.17 Message-ID: Hello all: I am not sure how I borked my xmonad been trying to configure it to run trayer xmobar and dmenu and started working with it today. I added workspaces to the config and now it appears this has borked my xmobar. I am simply trying to get xmobar to show the workspaces. Xmobar starts and then quits I can restart from terminal but the minute I close the terminal it disappears again. I have to assume I am doing something wrong as it worked before the workspaces. please see both config files below xmobarrc: ------------------ Config { overrideRedirect = False , font = "xft:ubunutu" , bgColor = "#5f5f5f" , fgColor = "#f8f8f2" , position = TopW L 90 , commands = [ Run Weather "KMCI" [ "--template", " °C" , "-L", "0" , "-H", "25" , "--low" , "lightblue" , "--normal", "#f8f8f2" , "--high" , "red" ] 36000 , Run Cpu [ "-L", "3" , "-H", "50" , "--high" , "red" , "--normal", "green" ] 10 , Run Alsa "default" "Master" [ "--template", "" , "--suffix" , "True" , "--" , "--on", "" ] , Run Memory ["--template", "Mem: %"] 10 , Run Swap [] 10 , Run Date "%a %Y-%m-%d %H:%M" "date" 10 , Run XMonadLog ] , sepChar = "%" , alignSep = "}{" , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %KMCI% | %date% " } _____________ xmonad.hs: ------------------------ Config { overrideRedirect = False , font = "xft:ubunutu" , bgColor = "#5f5f5f" , fgColor = "#f8f8f2" , position = TopW L 90 , commands = [ Run Weather "KMCI" [ "--template", " °C" , "-L", "0" , "-H", "25" , "--low" , "lightblue" , "--normal", "#f8f8f2" , "--high" , "red" ] 36000 , Run Cpu [ "-L", "3" , "-H", "50" , "--high" , "red" , "--normal", "green" ] 10 , Run Alsa "default" "Master" [ "--template", "" , "--suffix" , "True" , "--" , "--on", "" ] , Run Memory ["--template", "Mem: %"] 10 , Run Swap [] 10 , Run Date "%a %Y-%m-%d %H:%M" "date" 10 , Run XMonadLog ] , sepChar = "%" , alignSep = "}{" , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %KMCI% | %date% " } --------------------- Hope someone can tell me to revert back or properly add workspaces. I really only want clickable workspaces and launch a terminal on ws 2 and also volume control in trayer with the pipewire controls for proaudio (like gnome volume control or KDE Plasman pa. Thanks in advance and hope someone can see where it went wrong. Thanks in advnace. -- Kind Regards, *Michael Needham* -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Sat Apr 2 21:24:52 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Sat, 2 Apr 2022 17:24:52 -0400 Subject: [xmonad] Configuration Issue version 0.17 In-Reply-To: References: Message-ID: A few observations: (1) You misspelled "xft:ubuntu". This should have shown up in the terminal, though. (But see (3) below.) (2) Your xmonad.hs is actually a re-paste of your .xmobarrc. (3) It's not that unusual that closing a terminal kills any programs started from it. Moreover, if you backgrounded it, you won't see any messages from it; at most you'll see a message from the shell that it stopped on output. You would need to foreground it (`fg %1`) to see the message(s). Correct way to do this is to start it without `&`, wait for it to initialize itself, then press control-Z to background it; then type `disown %1` so the shell in the terminal won't kill it on exit. (This should also resume it; if not, you may need to explicitly `bg %1` to resume it after control-Z stops it.) On Sat, Apr 2, 2022 at 5:11 PM Michael Needham wrote: > > Hello all: > I am not sure how I borked my xmonad been trying to configure it to run trayer xmobar and dmenu and started working with it today. > > I added workspaces to the config and now it appears this has borked my xmobar. I am simply trying to get xmobar to show the workspaces. Xmobar starts and then quits I can restart from terminal but the minute I close the terminal it disappears again. I have to assume I am doing something wrong as it worked before the workspaces. please see both config files below > > xmobarrc: > ------------------ > Config { overrideRedirect = False > , font = "xft:ubunutu" > , bgColor = "#5f5f5f" > , fgColor = "#f8f8f2" > , position = TopW L 90 > , commands = [ Run Weather "KMCI" > [ "--template", " °C" > , "-L", "0" > , "-H", "25" > , "--low" , "lightblue" > , "--normal", "#f8f8f2" > , "--high" , "red" > ] 36000 > , Run Cpu > [ "-L", "3" > , "-H", "50" > , "--high" , "red" > , "--normal", "green" > ] 10 > , Run Alsa "default" "Master" > [ "--template", "" > , "--suffix" , "True" > , "--" > , "--on", "" > ] > , Run Memory ["--template", "Mem: %"] 10 > , Run Swap [] 10 > , Run Date "%a %Y-%m-%d %H:%M" "date" 10 > , Run XMonadLog > ] > , sepChar = "%" > , alignSep = "}{" > , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %KMCI% | %date% " > } > _____________ > > xmonad.hs: > ------------------------ > > Config { overrideRedirect = False > , font = "xft:ubunutu" > , bgColor = "#5f5f5f" > , fgColor = "#f8f8f2" > , position = TopW L 90 > , commands = [ Run Weather "KMCI" > [ "--template", " °C" > , "-L", "0" > , "-H", "25" > , "--low" , "lightblue" > , "--normal", "#f8f8f2" > , "--high" , "red" > ] 36000 > , Run Cpu > [ "-L", "3" > , "-H", "50" > , "--high" , "red" > , "--normal", "green" > ] 10 > , Run Alsa "default" "Master" > [ "--template", "" > , "--suffix" , "True" > , "--" > , "--on", "" > ] > , Run Memory ["--template", "Mem: %"] 10 > , Run Swap [] 10 > , Run Date "%a %Y-%m-%d %H:%M" "date" 10 > , Run XMonadLog > ] > , sepChar = "%" > , alignSep = "}{" > , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %KMCI% | %date% " > } > --------------------- > > Hope someone can tell me to revert back or properly add workspaces. I really only want clickable workspaces and launch a terminal on ws 2 and also volume control in trayer with the pipewire controls for proaudio (like gnome volume control or KDE Plasman pa. > > Thanks in advance and hope someone can see where it went wrong. > > Thanks in advnace. > > > -- > > Kind Regards, > > Michael Needham > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- brandon s allbery kf8nh allbery.b at gmail.com From jmikeneedham at gmail.com Mon Apr 4 12:34:02 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Mon, 4 Apr 2022 07:34:02 -0500 Subject: [xmonad] New couple of problems with xmonad 0.17 Message-ID: Hello again: The journey continues. I have Xmonad on EndeavourOS running in almost basic form and I am going to start by pasting my whole xmobarrc and xmonad.hs files here. I am attaching them so I hope this works. I am getting an error when I try to restart that xmonad is not in path (using mod - q) but it now works fine from lightdm and startx commands. It recompiles without errors. The workstations are not showing up in xmobar though the previous issue with xmobar was resolved by proc call in xmonad.hs to include -x 0 in the xproc (see attached xmonad.hs) Hopefully I can get the hs file tweaked so that xmobar has picom transparency and get the workspaces to show up, which is what I am not sure I set that up correctly in my xmond.hs. Hope someone can spot the error for me or suggest a fix. Everyone have a great day (BTW) would like the workspaces clickable as well as hotkey changeable. Thanks in advance. Files attached. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmobarrc Type: application/octet-stream Size: 1387 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 3376 bytes Desc: not available URL: From allbery.b at gmail.com Tue Apr 5 19:43:26 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Tue, 5 Apr 2022 15:43:26 -0400 Subject: [xmonad] New couple of problems with xmonad 0.17 In-Reply-To: References: Message-ID: How exactly are you starting the xmonad session? Can you attach your session file (~/.xsession or xmonad.desktop, as appropriate)? What's going wrong with picom? Is it simply not starting? Do you have an appropriate config file for it? On Mon, Apr 4, 2022 at 8:34 AM Michael Needham wrote: > > Hello again: The journey continues. I have Xmonad on EndeavourOS running in almost basic form and I am going to start by pasting my whole xmobarrc and xmonad.hs files here. I am attaching them so I hope this works. > > I am getting an error when I try to restart that xmonad is not in path (using mod - q) but it now works fine from lightdm and startx commands. It recompiles without errors. > > The workstations are not showing up in xmobar though the previous issue with xmobar was resolved by proc call in xmonad.hs to include -x 0 in the xproc (see attached xmonad.hs) Hopefully I can get the hs file tweaked so that xmobar has picom transparency and get the workspaces to show up, which is what I am not sure I set that up correctly in my xmond.hs. > > Hope someone can spot the error for me or suggest a fix. Everyone have a great day (BTW) would like the workspaces clickable as well as hotkey changeable. > > Thanks in advance. Files attached. > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- brandon s allbery kf8nh allbery.b at gmail.com From jmikeneedham at gmail.com Thu Apr 7 17:17:13 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Thu, 7 Apr 2022 12:17:13 -0500 Subject: [xmonad] Still having issues and can't seem to get 'workspaces' solved. This is borking my xmobar too. Message-ID: Hello All and thanks for the past help and patience with me as I am learning both Haskell and use of Xmonad / Xmobar! I don't get errors when I run xmobar from the terminal, however, it no longer starts on login (xession) from lightdm or startx either. When I run it from terminal it just shows "Updating" where the workspaces should be. But is used to startup with the TWM and I am on one monitor (0) and so there is one xproc statement. Attached is today's version of xmobarrc and xmonad.hs so if someone can help me figure out workspaces that is my problem (apparently). I have been using another persons configs to enhance my own which were very vanilla examples from haskell.org (config archives) and a very standard (common) minimal xmobar config from a search on the web. I have all the fonts I am trying to load loaded and I am running on EndeavourOS (Arch based Linux) but all the Arch wiki advice has worked in the past. Just still wearing noob clothes when it comes to xmonad :) Please see attached files: -- Kind Regards, *John Michael Needham* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 3376 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmobarrc Type: application/octet-stream Size: 1359 bytes Desc: not available URL: From jmikeneedham at gmail.com Fri Apr 8 15:56:14 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Fri, 8 Apr 2022 10:56:14 -0500 Subject: [xmonad] Same stuff new day Message-ID: Hello Again: Still struggling with my xmobar config and workspaces issues. Figured out something I don't quite get why it is not working, but in xmobarrc I am using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation as well) and this causes xmobar not to run at startup again. If I start xmobar from the terminal it runs and does not error. in my xmobar.hs it is called via xproc inside my main do block. I am attaching both files as they appear today. Thank you guys for all the help so far. Please do tell me if I am missing some imports or something I need! Also all the fonts listed are installed and verified as in my fc-cache on the EOS system. -- Kind Regards, *John Michael Needham* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmobarrc Type: application/octet-stream Size: 1322 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 3378 bytes Desc: not available URL: From allbery.b at gmail.com Fri Apr 8 16:00:10 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Fri, 8 Apr 2022 12:00:10 -0400 Subject: [xmonad] Same stuff new day In-Reply-To: References: Message-ID: I'm hoping someone else can help you because I don't use and am not familiar with xmobar. You might also be able to get help on Reddit. On Fri, Apr 8, 2022 at 11:56 AM Michael Needham wrote: > > Hello Again: > Still struggling with my xmobar config and workspaces issues. Figured out something I don't quite get why it is not working, but in xmobarrc I am using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation as well) and this causes xmobar not to run at startup again. If I start xmobar from the terminal it runs and does not error. in my xmobar.hs it is called via xproc inside my main do block. > > I am attaching both files as they appear today. > > Thank you guys for all the help so far. Please do tell me if I am missing some imports or something I need! Also all the fonts listed are installed and verified as in my fc-cache on the EOS system. > -- > > Kind Regards, > > John Michael Needham > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- brandon s allbery kf8nh allbery.b at gmail.com From jmikeneedham at gmail.com Fri Apr 8 16:07:26 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Fri, 8 Apr 2022 11:07:26 -0500 Subject: [xmonad] Same stuff new day In-Reply-To: References: Message-ID: Brandon: I appreciate your help so far. I am further along because of your suggestions and advice, so I am appreciative! Perhaps someone does know, Reddit in my experience is not that helpful and I have also asked the forums at EOS since that is my Linux flavor. But I digress, thanks again! On Fri, Apr 8, 2022 at 11:00 AM Brandon Allbery wrote: > I'm hoping someone else can help you because I don't use and am not > familiar with xmobar. You might also be able to get help on Reddit. > > On Fri, Apr 8, 2022 at 11:56 AM Michael Needham > wrote: > > > > Hello Again: > > Still struggling with my xmobar config and workspaces issues. Figured > out something I don't quite get why it is not working, but in xmobarrc I am > using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation > as well) and this causes xmobar not to run at startup again. If I start > xmobar from the terminal it runs and does not error. in my xmobar.hs it is > called via xproc inside my main do block. > > > > I am attaching both files as they appear today. > > > > Thank you guys for all the help so far. Please do tell me if I am > missing some imports or something I need! Also all the fonts listed are > installed and verified as in my fc-cache on the EOS system. > > -- > > > > Kind Regards, > > > > John Michael Needham > > > > _______________________________________________ > > xmonad mailing list > > xmonad at haskell.org > > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > > > -- > brandon s allbery kf8nh > allbery.b at gmail.com > -- Kind Regards, *John Michael Needham * *LinkedIn: http://www.linkedin.com/in/jmikeneedham * -------------- next part -------------- An HTML attachment was scrubbed... URL: From soliditsallgood at mailbox.org Fri Apr 8 17:01:08 2022 From: soliditsallgood at mailbox.org (Tony Zorman) Date: Fri, 08 Apr 2022 19:01:08 +0200 Subject: [xmonad] Same stuff new day In-Reply-To: References: Message-ID: <878rsfo6gb.fsf@hyperspace> Hi, On Fri, Apr 08 2022 10:56, Michael Needham wrote: > I don't quite get why it is not working, but in xmobarrc I am using ", > RUN StdinReader" (and have tried the UnsafeStdinReader variation as > well) and this causes xmobar not to run at startup again. If I start > xmobar from the terminal it runs and does not error. in my xmobar.hs > it is called via xproc inside my main do block. You are calling spawnPipe in you startup hook > myStartupHook :: X () > myStartupHook = do > xproc <- spawnPipe ("xmobar -x 0") > […] but you never do anything with that pipe; e.g., normally you would feed information about the workspaces to xmobar. Note that, in particular, this > in my xmobar.hs it is called via xproc inside my main do block. is not quite right. xproc is simply a name you give to the handle returned by spawnPipe. Whether you want to use pipes or not, I would suggest going through the tutorial[1] to learn how to correctly set up xmobar. It also tells you a little bit about Haskell, which may be useful when you have to debug something again in the future. Tony [1]: https://xmonad.org/TUTORIAL.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 873 bytes Desc: not available URL: From platon7pronko at gmail.com Sat Apr 9 07:53:43 2022 From: platon7pronko at gmail.com (Platon Pronko) Date: Sat, 9 Apr 2022 10:53:43 +0300 Subject: [xmonad] Same stuff new day In-Reply-To: References: Message-ID: <5fbb94e0-8e09-106f-2ffb-8b41f6cbc9b5@gmail.com> Hi! It could be because you never actually write to xmobar's stdin. You start the process and store the handle in `xproc` - but it is never used. You need to modify xmonad's logHook to log to xmobar's stdin - something like this: , logHook = logHook myConfig <+> dynamicLogWithPP myXmobarPP { ppOutput = hPutStrLn xmproc } In order to get it all to compile you'll probably need to also move xmobar startup from `myStartupHook` into `main` before actual xmonad startup -- Best regards, Platon Pronko PGP 7A2CB94E On 2022-04-08 18:56, Michael Needham wrote: > Hello Again: > Still struggling with my xmobar config and workspaces issues. Figured out > something I don't quite get why it is not working, but in xmobarrc I am > using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation > as well) and this causes xmobar not to run at startup again. If I start > xmobar from the terminal it runs and does not error. in my xmobar.hs it is > called via xproc inside my main do block. > > I am attaching both files as they appear today. > > Thank you guys for all the help so far. Please do tell me if I am missing > some imports or something I need! Also all the fonts listed are installed > and verified as in my fc-cache on the EOS system. > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad From jmikeneedham at gmail.com Sat Apr 9 11:44:06 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Sat, 9 Apr 2022 06:44:06 -0500 Subject: [xmonad] Same stuff new day In-Reply-To: <5fbb94e0-8e09-106f-2ffb-8b41f6cbc9b5@gmail.com> References: <5fbb94e0-8e09-106f-2ffb-8b41f6cbc9b5@gmail.com> Message-ID: <3A95D1C3-C548-4548-AC46-0E1518829033@gmail.com> Thank you Platon. I think that might be exactly what I was missing. I will make the addition you suggest and I have already moved the xproc line to main. Thanks Again to all and for your kind help and advice. Now wish me luck learning Haskell and I may better understand the “why” of all this. Have a great weekend! Regards, Michael Needham > On Apr 9, 2022, at 2:53 AM, Platon Pronko wrote: > > Hi! > > It could be because you never actually write to xmobar's stdin. You start the process and store the handle in `xproc` - but it is never used. You need to modify xmonad's logHook to log to xmobar's stdin - something like this: > > , logHook = logHook myConfig <+> > dynamicLogWithPP myXmobarPP { ppOutput = hPutStrLn xmproc } > > In order to get it all to compile you'll probably need to also move xmobar startup from `myStartupHook` into `main` before actual xmonad startup > > -- > Best regards, > Platon Pronko > PGP 7A2CB94E > >> On 2022-04-08 18:56, Michael Needham wrote: >> Hello Again: >> Still struggling with my xmobar config and workspaces issues. Figured out >> something I don't quite get why it is not working, but in xmobarrc I am >> using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation >> as well) and this causes xmobar not to run at startup again. If I start >> xmobar from the terminal it runs and does not error. in my xmobar.hs it is >> called via xproc inside my main do block. >> I am attaching both files as they appear today. >> Thank you guys for all the help so far. Please do tell me if I am missing >> some imports or something I need! Also all the fonts listed are installed >> and verified as in my fc-cache on the EOS system. >> _______________________________________________ >> xmonad mailing list >> xmonad at haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad From jmikeneedham at gmail.com Sun Apr 10 17:01:55 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Sun, 10 Apr 2022 12:01:55 -0500 Subject: [xmonad] Loghook Help Message-ID: Hi Guys, still struggling with my xmobar config on xmonad. I have been trying to add loghook to spawn my workspaces on xmobar via StdinReader and right now my xmobar spawns with "Updaing..." where the workspaces should appear. A helpful person did give me a hint which is to use a loghook to outputPP to get the data from my xmproc (which is a spawnPipe) and I guess I am not understanding. I have attached my xmonad.hs and there is a pleace to add whatever loghook I need to get the workspaces to show up. The config is I believe darcs from the Haskell.org site. I need to know where exactly in here to put the loghook statement and how to setup that section in my xmonad.hs. The current part of the section looks like: " myLogHook = return ()." Hope someone can uncloud the explanations that I am getting because all Google Searches and Haskell documentation just doesn't seem to work (always get errors about out of scrope and I believe the imports are all there for everything I am trying to use. (please feel free to correct me if I am not importing something). Thanks, -- Kind Regards, *John Michael Needham * -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 12381 bytes Desc: not available URL: From platon7pronko at gmail.com Sun Apr 10 17:15:43 2022 From: platon7pronko at gmail.com (Platon Pronko) Date: Sun, 10 Apr 2022 20:15:43 +0300 Subject: [xmonad] Loghook Help In-Reply-To: References: Message-ID: Hi! You need to actually put data into the process input. logHook is a function that is ran each time something changes - so you need to make sure that xmproc is available there and that you write into it. I've tweaked your xmonad.hs a bit (please see attached) - passed xmproc through `defaults` and into `myLogHook` function. -- Best regards, Platon Pronko PGP 7A2CB94E On 2022-04-10 20:01, Michael Needham wrote: > Hi Guys, still struggling with my xmobar config on xmonad. I have been > trying to add loghook to spawn my workspaces on xmobar via StdinReader and > right now my xmobar spawns with "Updaing..." where the workspaces should > appear. A helpful person did give me a hint which is to use a loghook to > outputPP to get the data from my xmproc (which is a spawnPipe) and I guess > I am not understanding. I have attached my xmonad.hs and there is a pleace > to add whatever loghook I need to get the workspaces to show up. The > config is I believe darcs from the Haskell.org site. I need to know where > exactly in here to put the loghook statement and how to setup that section > in my xmonad.hs. The current part of the section looks like: " myLogHook = > return ()." > > Hope someone can uncloud the explanations that I am getting because all > Google Searches and Haskell documentation just doesn't seem to work (always > get errors about out of scrope and I believe the imports are all there for > everything I am trying to use. (please feel free to correct me if I am not > importing something). > > Thanks, > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 12450 bytes Desc: not available URL: From jmikeneedham at gmail.com Wed Apr 13 16:04:28 2022 From: jmikeneedham at gmail.com (Michael Needham) Date: Wed, 13 Apr 2022 11:04:28 -0500 Subject: [xmonad] Hopefully Very Simple Question Message-ID: <3744C47A-28B3-4098-97D3-5823D4D3DBF5@gmail.com> Greetings: I am very happy with my xmonad now. Fixed it with your help and the help of the DT (YouTube) community though this community was able to help me the most. THANK-YOU! My new issue is annoying to me and not something that keeps the system from working. I am using isDialog to spawn dialog boxes as floating windows. They spawn floating but show up to the right top of the screen. I would like them always be centered. Is this possible and if so how do I modify the layout statement? Thanks, Regards, Michael Needham From allbery.b at gmail.com Wed Apr 13 16:06:45 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Wed, 13 Apr 2022 12:06:45 -0400 Subject: [xmonad] Hopefully Very Simple Question In-Reply-To: <3744C47A-28B3-4098-97D3-5823D4D3DBF5@gmail.com> References: <3744C47A-28B3-4098-97D3-5823D4D3DBF5@gmail.com> Message-ID: If you're using `doFloat` now to float them, you may want to look at `doCenterFloat` from `XMonad.Hooks.ManageHelpers`. On Wed, Apr 13, 2022 at 12:04 PM Michael Needham wrote: > > Greetings: > > I am very happy with my xmonad now. Fixed it with your help and the help of the DT (YouTube) community though this community was able to help me the most. THANK-YOU! > > My new issue is annoying to me and not something that keeps the system from working. I am using isDialog to spawn dialog boxes as floating windows. They spawn floating but show up to the right top of the screen. I would like them always be centered. Is this possible and if so how do I modify the layout statement? > > Thanks, > > Regards, > Michael Needham > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- brandon s allbery kf8nh allbery.b at gmail.com From platon7pronko at gmail.com Thu Apr 14 10:11:43 2022 From: platon7pronko at gmail.com (Platon Pronko) Date: Thu, 14 Apr 2022 13:11:43 +0300 Subject: [xmonad] Hopefully Very Simple Question In-Reply-To: References: <3744C47A-28B3-4098-97D3-5823D4D3DBF5@gmail.com> Message-ID: <7e24733d-3e76-307c-3fc7-1627340fb22b@gmail.com> Hi! Interestingly my dialogs already center on screen automatically, even though I use standard doFloat. I suppose this is related to the window hints that different applications and DEs provide (I'm using XFCE). Anyway, can also recommend using doRectFloat if you want to have even more control over where the floated window will be placed. -- Best regards, Platon Pronko PGP 7A2CB94E On 2022-04-13 19:06, Brandon Allbery wrote: > If you're using `doFloat` now to float them, you may want to look at > `doCenterFloat` from `XMonad.Hooks.ManageHelpers`. > > On Wed, Apr 13, 2022 at 12:04 PM Michael Needham wrote: >> >> Greetings: >> >> I am very happy with my xmonad now. Fixed it with your help and the help of the DT (YouTube) community though this community was able to help me the most. THANK-YOU! >> >> My new issue is annoying to me and not something that keeps the system from working. I am using isDialog to spawn dialog boxes as floating windows. They spawn floating but show up to the right top of the screen. I would like them always be centered. Is this possible and if so how do I modify the layout statement? >> >> Thanks, >> >> Regards, >> Michael Needham >> >> _______________________________________________ >> xmonad mailing list >> xmonad at haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > > From allbery.b at gmail.com Thu Apr 14 12:33:01 2022 From: allbery.b at gmail.com (Brandon Allbery) Date: Thu, 14 Apr 2022 08:33:01 -0400 Subject: [xmonad] Hopefully Very Simple Question In-Reply-To: <7e24733d-3e76-307c-3fc7-1627340fb22b@gmail.com> References: <3744C47A-28B3-4098-97D3-5823D4D3DBF5@gmail.com> <7e24733d-3e76-307c-3fc7-1627340fb22b@gmail.com> Message-ID: There's also `XMonad.Hooks.Place` — I use it everywhere in place of `doFloat`. It's pretty nice. On Thu, Apr 14, 2022 at 6:11 AM Platon Pronko wrote: > > Hi! > > Interestingly my dialogs already center on screen automatically, even though I use standard doFloat. I suppose this is related to the window hints that different applications and DEs provide (I'm using XFCE). > > Anyway, can also recommend using doRectFloat if you want to have even more control over where the floated window will be placed. > > -- > Best regards, > Platon Pronko > PGP 7A2CB94E > > On 2022-04-13 19:06, Brandon Allbery wrote: > > If you're using `doFloat` now to float them, you may want to look at > > `doCenterFloat` from `XMonad.Hooks.ManageHelpers`. > > > > On Wed, Apr 13, 2022 at 12:04 PM Michael Needham wrote: > >> > >> Greetings: > >> > >> I am very happy with my xmonad now. Fixed it with your help and the help of the DT (YouTube) community though this community was able to help me the most. THANK-YOU! > >> > >> My new issue is annoying to me and not something that keeps the system from working. I am using isDialog to spawn dialog boxes as floating windows. They spawn floating but show up to the right top of the screen. I would like them always be centered. Is this possible and if so how do I modify the layout statement? > >> > >> Thanks, > >> > >> Regards, > >> Michael Needham > >> > >> _______________________________________________ > >> xmonad mailing list > >> xmonad at haskell.org > >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > > > > > -- brandon s allbery kf8nh allbery.b at gmail.com