From pisit.jee at gmail.com Wed Mar 17 09:31:48 2021 From: pisit.jee at gmail.com (Peet) Date: Wed, 17 Mar 2021 16:31:48 +0700 Subject: [xmonad] can get xmobar show workspace Message-ID: <0010ce08-5431-bf11-a615-4068c721d0d8@gmail.com> when i add StdinReader in xmobar.config the bar will not run, i have google days and days. please tell me where config is bad. config at attachments. Thank you -------------- next part -------------- Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , additionalFonts = [] , borderColor = "black" , border = TopB , bgColor = "black" , fgColor = "grey" , alpha = 255 , position = Top , textOffset = -1 , iconOffset = -1 , lowerOnStart = True , pickBroadest = False , persistent = False , hideOnStart = False , iconRoot = "." , allDesktops = True , overrideRedirect = True , commands = [ Run Weather "VTBS" ["-t",": C", "-L","18","-H","25", "--normal","green", "--high","red", "--low","lightblue"] 36000 , Run Network "LAN" ["-L","0","-H","32", "--normal","green","--high","red"] 10 , Run Cpu ["-L","3","-H","50", "--normal","green","--high","red"] 10 , Run Memory ["-t","Mem: %"] 10 , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 , Run StdinReader ] , sepChar = "%" , alignSep = "}{" , template = " %StdinReader% } { %cpu% | %memory% | %enp3s0% | %date%| %VTBS%" } -------------- next part -------------- xmonad.hs:241:64: error: Variable not in scope: h :: Handle | 241 | myLogHook = dynamicLogWithPP $ xmobarPP { ppOutput = hPutStrLn h } | ^ -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 12398 bytes Desc: not available URL: From platon7pronko at gmail.com Wed Mar 17 09:52:55 2021 From: platon7pronko at gmail.com (Platon Pronko) Date: Wed, 17 Mar 2021 12:52:55 +0300 Subject: [xmonad] can get xmobar show workspace In-Reply-To: <0010ce08-5431-bf11-a615-4068c721d0d8@gmail.com> References: <0010ce08-5431-bf11-a615-4068c721d0d8@gmail.com> Message-ID: Hi! Does your xmonad.hs compile? I see an undefined variable reference: xmonad.hs:241:64: error: Variable not in scope: h :: Handle | 241 | myLogHook = dynamicLogWithPP $ xmobarPP { ppOutput = hPutStrLn h } | ^ Try inlining myLogHook directly in `defaults` definition, then inlining `defaults` into `main`. This way `h` will be in scope. On 2021-03-17 12:31, Peet wrote: > when i add StdinReader in xmobar.config the bar will not run, i have google days and days. > please tell me where config is bad. > config at attachments. > > Thank you > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > From pisit.jee at gmail.com Fri Mar 19 09:23:21 2021 From: pisit.jee at gmail.com (Peet) Date: Fri, 19 Mar 2021 16:23:21 +0700 Subject: [xmonad] Can't get JumToLayout work. Message-ID: <17c1c742-0961-b39d-1fcf-5a7f3ac5fa55@gmail.com> Hi, I'm Peet. I have play with xmonad config for days, and more of config was working, but i can not get JumpToLayout work. I does do compile xmonad config with no error , but when i press the keybinding not thing happen . Please help! config file in attachment. Thank you! -------------- next part -------------- A non-text attachment was scrubbed... Name: xmobar.hs Type: text/x-haskell Size: 1485 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 21097 bytes Desc: not available URL: From tomi at nomi.cz Fri Mar 19 09:33:23 2021 From: tomi at nomi.cz (Tomas Janousek) Date: Fri, 19 Mar 2021 09:33:23 +0000 Subject: [xmonad] Can't get JumToLayout work. In-Reply-To: <17c1c742-0961-b39d-1fcf-5a7f3ac5fa55@gmail.com> References: <17c1c742-0961-b39d-1fcf-5a7f3ac5fa55@gmail.com> Message-ID: Hi, On Fri, Mar 19, 2021 at 04:23:21PM +0700, Peet wrote: >I have play with xmonad config for days, and more of config was >working, but i can not get JumpToLayout work. >[…] JumpToLayout needs the (|||) from XMonad.Layout.LayoutCombinators, not the one from XMonad: >import XMonad.Layout.LayoutCombinators hiding ( (|||) ) >--import XMonad hiding ( (|||) ) You'll need to swap these ^ -- Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, https://work.lisk.in/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pisit.jee at gmail.com Sun Mar 21 06:29:51 2021 From: pisit.jee at gmail.com (Peet) Date: Sun, 21 Mar 2021 13:29:51 +0700 Subject: [xmonad] can't hide the scratchpads Message-ID: Hi, I'm Peet. I can get Scratchpads work, but i can't hide it. please help Thanks! config in attachfile -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 14732 bytes Desc: not available URL: From pisit.jee at gmail.com Sun Mar 21 07:11:38 2021 From: pisit.jee at gmail.com (Peet) Date: Sun, 21 Mar 2021 14:11:38 +0700 Subject: [xmonad] custom floating in manageHook Message-ID: <82ddf135-8fe7-d418-06e3-dddd019ac08c@gmail.com> hi, I'm Peet. I have another question. can i do customFloating in myManageHook? so i can run mpv with a custom size and position when it floating. Thank you config in attachment. -------------- next part -------------- A non-text attachment was scrubbed... Name: xmonad.hs Type: text/x-haskell Size: 15096 bytes Desc: not available URL: From platon7pronko at gmail.com Sun Mar 21 12:52:54 2021 From: platon7pronko at gmail.com (Platon Pronko) Date: Sun, 21 Mar 2021 15:52:54 +0300 Subject: [xmonad] custom floating in manageHook In-Reply-To: <82ddf135-8fe7-d418-06e3-dddd019ac08c@gmail.com> References: <82ddf135-8fe7-d418-06e3-dddd019ac08c@gmail.com> Message-ID: Hi! I do it like this: , role =? "mycalc" --> doRectFloat (W.RationalRect (1/10) (5/10) (2/9) (2/9)) Best regards, Platon Pronko On 2021-03-21 10:11, Peet wrote: > hi, I'm Peet. > > I have another question. > > can i do customFloating in myManageHook? so i can run mpv with a custom size and position when it floating. > > Thank you > > config in attachment. > > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > From platon7pronko at gmail.com Sun Mar 21 12:57:19 2021 From: platon7pronko at gmail.com (Platon Pronko) Date: Sun, 21 Mar 2021 15:57:19 +0300 Subject: [xmonad] can't hide the scratchpads In-Reply-To: References: Message-ID: <22d02908-98b2-a50a-ed95-b9c8522a1dbe@gmail.com> Hi! According to your config your scratchpad appears when you press M-S-. What happens when you press it again? Also if I understand it correctly M-S- is the default keybinding for opening new terminal. Maybe there is a conflict? What will happen if you bind namedScatchpadAction to something else? For example I use F12 for my scratchpad. Best regards, Platon Pronko On 2021-03-21 09:29, Peet wrote: > Hi, I'm Peet. > > I can get Scratchpads work, but i can't hide it. please help > > Thanks! > > config in attachfile > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > From allbery.b at gmail.com Sun Mar 21 12:59:37 2021 From: allbery.b at gmail.com (Brandon Allbery) Date: Sun, 21 Mar 2021 08:59:37 -0400 Subject: [xmonad] can't hide the scratchpads In-Reply-To: <22d02908-98b2-a50a-ed95-b9c8522a1dbe@gmail.com> References: <22d02908-98b2-a50a-ed95-b9c8522a1dbe@gmail.com> Message-ID: The new binding will replace the default, so it won't open a terminal any more (unless the scratchpad is a terminal, of course). On Sun, Mar 21, 2021, 08:57 Platon Pronko wrote: > Hi! > > According to your config your scratchpad appears when you press > M-S-. What happens when you press it again? > > Also if I understand it correctly M-S- is the default keybinding > for opening new terminal. Maybe there is a conflict? What will happen if > you bind namedScatchpadAction to something else? For example I use F12 for > my scratchpad. > > Best regards, > Platon Pronko > > On 2021-03-21 09:29, Peet wrote: > > Hi, I'm Peet. > > > > I can get Scratchpads work, but i can't hide it. please help > > > > Thanks! > > > > config in attachfile > > > > > > _______________________________________________ > > xmonad mailing list > > xmonad at haskell.org > > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Sun Mar 21 14:01:21 2021 From: allbery.b at gmail.com (Brandon Allbery) Date: Sun, 21 Mar 2021 10:01:21 -0400 Subject: [xmonad] can't hide the scratchpads In-Reply-To: References: Message-ID: I don't see `namedScratchpadManageHook` in your `manageHook`, so it never finds out that the terminal is a scratchpad window. On Sun, Mar 21, 2021 at 2:30 AM Peet wrote: > Hi, I'm Peet. > > I can get Scratchpads work, but i can't hide it. please help > > Thanks! > > config in attachfile > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From platon7pronko at gmail.com Sun Mar 21 14:12:27 2021 From: platon7pronko at gmail.com (Platon Pronko) Date: Sun, 21 Mar 2021 17:12:27 +0300 Subject: [xmonad] can't hide the scratchpads In-Reply-To: References: Message-ID: Hi! There is one, on line 291. It's just composed in a wierd way. Best regards, Platon Pronko On 2021-03-21 17:01, Brandon Allbery wrote: > I don't see `namedScratchpadManageHook` in your `manageHook`, so it never finds out that the terminal is a scratchpad window. > > On Sun, Mar 21, 2021 at 2:30 AM Peet > wrote: > > Hi, I'm Peet. > > I can get Scratchpads work, but i can't hide it. please help > > Thanks! > > config in attachfile > > _______________________________________________ > 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 > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > From allbery.b at gmail.com Sun Mar 21 14:19:30 2021 From: allbery.b at gmail.com (Brandon Allbery) Date: Sun, 21 Mar 2021 10:19:30 -0400 Subject: [xmonad] can't hide the scratchpads In-Reply-To: References: Message-ID: Hm, so it is. :/ Then the question becomes why try to use the title to match it. If they're passing `-name scratchpad` then it should be matching on `resource =? "scratchpad"`. On Sun, Mar 21, 2021 at 10:12 AM Platon Pronko wrote: > Hi! > > There is one, on line 291. It's just composed in a wierd way. > > Best regards, > Platon Pronko > > On 2021-03-21 17:01, Brandon Allbery wrote: > > I don't see `namedScratchpadManageHook` in your `manageHook`, so it > never finds out that the terminal is a scratchpad window. > > > > On Sun, Mar 21, 2021 at 2:30 AM Peet pisit.jee at gmail.com>> wrote: > > > > Hi, I'm Peet. > > > > I can get Scratchpads work, but i can't hide it. please help > > > > Thanks! > > > > config in attachfile > > > > _______________________________________________ > > xmonad mailing list > > xmonad at haskell.org > > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad < > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad> > > > > > > > > -- > > brandon s allbery kf8nh > > allbery.b at gmail.com > > > > _______________________________________________ > > xmonad mailing list > > xmonad at haskell.org > > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: