Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→ 184,794 events total
2023-11-08 14:47:58 <haskellbridge> <f​rankitox> , borderWidth = 0
2023-11-08 14:48:00 <haskellbridge> <f​rankitox> , layoutHook = Grid}
2023-11-08 14:48:01 <haskellbridge> <f​rankitox> `additionalKeys`
2023-11-08 14:48:02 <haskellbridge> <f​rankitox> [
2023-11-08 14:48:04 <haskellbridge> <f​rankitox> ((mod4Mask, xK_q), windows $ greedyView "1")
2023-11-08 14:48:05 <haskellbridge> <f​rankitox> ]
2023-11-08 14:48:06 <haskellbridge> <f​rankitox> -- (modMask, xK_q)
2023-11-08 14:48:07 <haskellbridge> <f​rankitox> ```
2023-11-08 14:48:09 <haskellbridge> <f​rankitox> Hi everyone 👋 I'm having a hard time configuring xmonad, I want to define a shortcut `modMask + q` such that it xmonad switches to workspace 1. So, in a way, it's an alias of the default shortcut `modMask + 1`. How can I accomplish this? This is the best attempt I tried:
2023-11-08 14:48:10 <haskellbridge> <f​rankitox> ```
2023-11-08 14:48:11 <haskellbridge> <f​rankitox> import XMonad (def, modMask, mod4Mask, spawn, (.|.), controlMask, mod1Mask, xK_q, xK_t, xK_f, borderWidth, layoutHook, windows)
2023-11-08 14:48:13 <haskellbridge> <f​rankitox> import XMonad.Main (xmonad)
2023-11-08 14:48:14 <haskellbridge> <f​rankitox> import XMonad.Util.PureX (greedyView)
2023-11-08 14:48:15 <haskellbridge> <f​rankitox> import XMonad.Layout.Grid
2023-11-08 14:48:17 <haskellbridge> <f​rankitox> import XMonad.Util.EZConfig (additionalKeys)
2023-11-08 14:48:18 <haskellbridge> <f​rankitox> import XMonad.Actions.PhysicalScreens (viewScreen)
2023-11-08 14:48:19 <haskellbridge> <f​rankitox> main :: IO ()
2023-11-08 14:48:20 <haskellbridge> <f​rankitox> main = xmonad $ def
2023-11-08 14:48:22 <haskellbridge> <f​rankitox> { modMask = mod4Mask
2023-11-08 14:48:23 <haskellbridge> <f​rankitox> , borderWidth = 0
2023-11-08 14:48:24 <haskellbridge> <f​rankitox> , layoutHook = Grid}
2023-11-08 14:48:26 <haskellbridge> <f​rankitox> `additionalKeys`
2023-11-08 14:48:27 <haskellbridge> <f​rankitox> [
2023-11-08 14:48:28 <haskellbridge> <f​rankitox> ((mod4Mask, xK_q), windows $ greedyView "1")
2023-11-08 14:48:30 <haskellbridge> <f​rankitox> ]
2023-11-08 14:48:31 <haskellbridge> <f​rankitox> -- (modMask, xK_q)
2023-11-08 14:48:32 <haskellbridge> <f​rankitox> ```
2023-11-08 14:49:26 <haskellbridge> <f​rankitox> Using this I'm getting the error
2023-11-08 14:49:27 <haskellbridge> <f​rankitox> ```
2023-11-08 14:49:28 <haskellbridge> <f​rankitox> xmonad.hs:15:33: error:
2023-11-08 14:49:29 <haskellbridge> <f​rankitox> * Couldn't match type `base-4.17.2.0:Data.Semigroup.Internal.Any'
2023-11-08 14:49:31 <haskellbridge> <f​rankitox> with `XMonad.StackSet.StackSet
2023-11-08 14:49:32 <haskellbridge> <f​rankitox> XMonad.Core.WorkspaceId
2023-11-08 14:49:33 <haskellbridge> <f​rankitox> (XMonad.Core.Layout Graphics.X11.Types.Window)
2023-11-08 14:49:35 <haskellbridge> <f​rankitox> Graphics.X11.Types.Window
2023-11-08 14:49:36 <haskellbridge> <f​rankitox> XMonad.Core.ScreenId
2023-11-08 14:49:37 <haskellbridge> <f​rankitox> XMonad.Core.ScreenDetail'
2023-11-08 14:49:38 <haskellbridge> <f​rankitox> Expected: XMonad.Core.WindowSet -> XMonad.Core.WindowSet
2023-11-08 14:49:40 <haskellbridge> <f​rankitox> Actual: XMonad.Core.WindowSet
2023-11-08 14:49:41 <haskellbridge> <f​rankitox> -> base-4.17.2.0:Data.Semigroup.Internal.Any
2023-11-08 14:49:42 <haskellbridge> <f​rankitox> * In the second argument of `($)', namely `greedyView "1"'
2023-11-08 14:49:44 <haskellbridge> <f​rankitox> In the expression: windows $ greedyView "1"
2023-11-08 14:49:45 <haskellbridge> <f​rankitox> In the expression: ((mod4Mask, xK_q), windows $ greedyView "1")
2023-11-08 14:49:46 <haskellbridge> <f​rankitox> |
2023-11-08 14:49:48 <haskellbridge> <f​rankitox> 15 | ((mod4Mask, xK_q), windows $ greedyView "1")
2023-11-08 14:49:49 <haskellbridge> <f​rankitox> | ^^^^^^^^^^^^^^
2023-11-08 14:49:50 <haskellbridge> <f​rankitox> ```
2023-11-08 14:54:05 <haskellbridge> <f​rankitox> Hi everyone 👋 I'm having a hard time configuring xmonad, I want to define a shortcut `modMask + q` such that xmonad switches to workspace 1. So, in a way, it's an alias of the default shortcut `modMask + 1`. How can I accomplish this? This is the best attempt I tried:
2023-11-08 14:54:05 <haskellbridge> <f​rankitox> ```
2023-11-08 14:54:06 <haskellbridge> <f​rankitox> import XMonad (def, modMask, mod4Mask, spawn, (.|.), controlMask, mod1Mask, xK_q, xK_t, xK_f, borderWidth, layoutHook, windows)
2023-11-08 14:54:08 <haskellbridge> <f​rankitox> import XMonad.Main (xmonad)
2023-11-08 14:54:09 <haskellbridge> <f​rankitox> import XMonad.Util.PureX (greedyView)
2023-11-08 14:54:10 <haskellbridge> <f​rankitox> import XMonad.Layout.Grid
2023-11-08 14:54:11 <haskellbridge> <f​rankitox> import XMonad.Util.EZConfig (additionalKeys)
2023-11-08 14:54:13 <haskellbridge> <f​rankitox> import XMonad.Actions.PhysicalScreens (viewScreen)
2023-11-08 14:54:14 <haskellbridge> <f​rankitox> main :: IO ()
2023-11-08 14:54:15 <haskellbridge> <f​rankitox> main = xmonad $ def
2023-11-08 14:54:17 <haskellbridge> <f​rankitox> { modMask = mod4Mask
2023-11-08 14:54:18 <haskellbridge> <f​rankitox> , borderWidth = 0
2023-11-08 14:54:19 <haskellbridge> <f​rankitox> , layoutHook = Grid}
2023-11-08 14:54:21 <haskellbridge> <f​rankitox> `additionalKeys`
2023-11-08 14:54:22 <haskellbridge> <f​rankitox> [
2023-11-08 14:54:23 <haskellbridge> <f​rankitox> ((mod4Mask, xK_q), windows $ greedyView "1")
2023-11-08 14:54:24 <haskellbridge> <f​rankitox> ]
2023-11-08 14:54:26 <haskellbridge> <f​rankitox> -- (modMask, xK_q)
2023-11-08 14:54:27 <haskellbridge> <f​rankitox> ```
2023-11-08 15:02:16 <[Leary]> o g'd laird
2023-11-08 15:03:06 <[Leary]> frankitox: Please avoid big code blocks and matrix edits, on IRC it just becomes 77 lines of spam.
2023-11-08 15:03:15 <[Leary]> @where paste
2023-11-08 15:03:15 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
2023-11-08 15:05:14 <haskellbridge> <f​rankitox> This is the config https://paste.tomsmeding.com/T8Y3Blzm I'm trying
2023-11-08 15:05:51 <[Leary]> As for your actual problem, don't use `windows` with functions from X.U.PureX. You want either `defile (greedyView "1")` or `windows (XMonad.Stackset.greedyView "1")`.
2023-11-08 15:08:18 <haskellbridge> <f​rankitox> So, there's more than one definition for `greedyView`? I've been using the search functionality from this page (https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Config-Prime.html#g:1) to find the functions
2023-11-08 15:09:05 <[Leary]> Yes. You should use hoogle: https://hoogle.haskell.org/?hoogle=greedyView
2023-11-08 15:09:44 <haskellbridge> <f​rankitox> Oh, I see. Thank you!! 🙏
2023-11-08 15:32:48 <haskellbridge> <f​rankitox> For future reference and because every config I found seemed to be quite old, this is what I ended up with: https://gist.github.com/frankitox/2be10331f8e9d5abe89de2a8008aea58
2023-11-08 15:43:23 × alp quits (~alp@2001:861:5e02:eff0:2d1c:5a65:2649:274e) (Ping timeout: 252 seconds)
2023-11-08 16:05:28 Nixkernal_ joins (~Nixkernal@115.16.194.178.dynamic.wline.res.cust.swisscom.ch)
2023-11-08 16:06:53 × Nixkernal quits (~Nixkernal@115.16.194.178.dynamic.wline.res.cust.swisscom.ch) (Ping timeout: 258 seconds)
2023-11-08 16:09:06 <geekosaur> XMonad.Config.Prime is an experiment from the very early days of xmonad, don't rely on it for anything
2023-11-08 16:09:27 <geekosaur> I think (hope) it's being removed after the next release, it's deprecated now
2023-11-08 17:44:16 alp joins (~alp@2001:861:5e02:eff0:a4ec:9755:9740:6f21)
2023-11-08 17:57:33 × alp quits (~alp@2001:861:5e02:eff0:a4ec:9755:9740:6f21) (Ping timeout: 260 seconds)
2023-11-08 18:13:01 × sundbry quits (~quassel@2600:1700:38c6:180:a1da:9e07:832c:1349) (Quit: No Ping reply in 180 seconds.)
2023-11-08 18:14:16 sundbry joins (~quassel@2600:1700:38c6:180:a1da:9e07:832c:1349)
2023-11-08 18:20:01 × jeeeun8 quits (~jeeeun@78.40.148.178) (Quit: The Lounge - https://thelounge.chat)
2023-11-08 18:21:40 jeeeun8 joins (~jeeeun@78.40.148.178)
2023-11-08 18:23:24 justThanks is now known as justTesting
2023-11-08 18:30:00 × thunderrd quits (~thunderrd@183.182.111.58) (Remote host closed the connection)
2023-11-08 19:14:41 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Ping timeout: 240 seconds)
2023-11-08 20:13:33 justTesting is now known as justThanks
2023-11-08 21:01:22 ft joins (~ft@p4fc2a529.dip0.t-ipconnect.de)
2023-11-08 21:35:01 [Leary] joins (~Leary]@user/Leary/x-0910699)
2023-11-08 21:58:50 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
2023-11-08 23:04:51 × Benzi-Junior quits (~BenziJuni@88-149-64-112.du.xdsl.is) (Server closed connection)
2023-11-08 23:06:38 Benzi-Junior joins (~BenziJuni@88-149-64-112.du.xdsl.is)
2023-11-08 23:10:30 × terrorjack quits (~terrorjac@2a01:4f8:c17:87f8::) (Quit: The Lounge - https://thelounge.chat)
2023-11-08 23:13:39 terrorjack joins (~terrorjac@2a01:4f8:c17:87f8::)
2023-11-09 01:43:37 × haskellbridge quits (~haskellbr@069-135-003-034.biz.spectrum.com) (Remote host closed the connection)
2023-11-09 01:55:30 derpyxdhs joins (~Thunderbi@user/derpyxdhs)

All times are in UTC.