Home liberachat/#xmonad: Logs Calendar

Logs: liberachat/#xmonad

←Prev  Next→
Page 1 .. 720 721 722 723 724 725 726 727 728 729 730 .. 1850
184,942 events total
2022-07-09 13:42:25 <Zedgamer9128[m]> ```
2022-07-09 13:42:58 <geekosaur> that doesn't surprise me, I never remember whether that is , or ;
2022-07-09 13:43:17 <geekosaur> void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c set -U " ++ s ++ " $win"})
2022-07-09 13:43:27 <geekosaur> I still think the spawn will be wrong
2022-07-09 13:44:28 <Zedgamer9128[m]> the full fish command is "fish -c 'set -U layout Full'"
2022-07-09 13:44:49 <geekosaur> okay, that is doable
2022-07-09 13:45:10 <Zedgamer9128[m]> but will ++ work since you will have to close the quotes
2022-07-09 13:45:27 <geekosaur> void (dynamicLogString def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"})
2022-07-09 13:45:40 <geekosaur> ++ doesn't care if the string includes quotes
2022-07-09 13:46:03 <geekosaur> and haskell is not a shell, it doesn't track different kinds of quotes like that
2022-07-09 13:46:48 <geekosaur> also note that the layout name is quoted by the `ppLayout` so you shouldn't need to worry about that either
2022-07-09 13:47:29 <Zedgamer9128[m]> xmonad.hs:38:1: error:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/7e9758857c95f93c2b01ea3ae25551f63d2be69e)
2022-07-09 13:47:32 <Zedgamer9128[m]> new error
2022-07-09 13:48:02 <geekosaur> once again: this goes in the logHook
2022-07-09 13:48:06 <geekosaur> not at the top level
2022-07-09 13:48:27 <geekosaur> https://github.com/geekosaur/xmonad.hs/blob/skkukuk/xmonad.hs#L127
2022-07-09 13:51:31 <Zedgamer9128[m]> xmonad.hs:47:17: error:
2022-07-09 13:51:31 <Zedgamer9128[m]> Variable not in scope: void :: X String -> X ()
2022-07-09 13:52:32 <Zedgamer9128[m]> ```
2022-07-09 13:52:44 <Zedgamer9128[m]> is this right
2022-07-09 13:52:44 <Zedgamer9128[m]> * ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/329e422866ce2f19e45f210418eaa8fea7e33317)
2022-07-09 14:03:12 <geekosaur> it's right but I forgot void isn't in the Prelude
2022-07-09 14:03:16 <geekosaur> @index void
2022-07-09 14:03:17 <lambdabot> Foreign.Marshal.Error, Foreign.Marshal, Foreign, Foreign.Safe, Foreign.Marshal.Safe, Data.Functor, Control.Monad
2022-07-09 14:03:41 <geekosaur> import Data.Functor at the top, where you should already have an `import XMonad`
2022-07-09 14:07:14 <Zedgamer9128[m]> no errors but the variable is not shown
2022-07-09 14:07:42 <geekosaur> actually I think that should have been dynamicLog without the void, but oh well
2022-07-09 14:07:51 <geekosaur> I don't know how fish works
2022-07-09 14:12:00 <geekosaur> can you check for errors in ~/.xsession-errors? (unless you're on fedora and then you have to do something with journalctl)
2022-07-09 14:12:35 <Zedgamer9128[m]> there is no .xsession-errors arch
2022-07-09 14:12:58 <geekosaur> did you use startx instead of a display manager?
2022-07-09 14:13:12 <Zedgamer9128[m]> yeah .xinitrc
2022-07-09 14:13:40 <geekosaur> then it'll be on the original virtual terminal. probably ctrl+alt+f1
2022-07-09 14:14:41 <Zedgamer9128[m]> geekosaur: sorry it is started by sddm
2022-07-09 14:15:05 <Zedgamer9128[m]> by a package i think called xinit-xsession
2022-07-09 14:15:20 <Zedgamer9128[m]> that turn xinit to desktop to launch from sddm
2022-07-09 14:15:40 <geekosaur> hm. normally that would put the error log in .xsession-errors
2022-07-09 14:18:15 <geekosaur> okay, looks like sddm uses ~/.local/sddb/xorg-session.log
2022-07-09 14:18:19 <geekosaur> er
2022-07-09 14:18:28 <geekosaur> ~/.local/sddm/xorg-session.log
2022-07-09 14:22:13 <Zedgamer9128[m]> i made .xsession-errors by editing xinitrc to `exec xmonad 2> ~/.xsession-errors
2022-07-09 14:22:23 <Zedgamer9128[m]> the only errors i see are gtk and chrome
2022-07-09 14:23:01 qther joins (~qther@138.75.66.60)
2022-07-09 14:23:07 <geekosaur> I don't know if fish sends errors to stderr,m it differs from standard shells in so many other ways…
2022-07-09 14:27:24 <geekosaur> the other thing to check is ~/.config/fish/fish_variables
2022-07-09 14:31:31 <Zedgamer9128[m]> geekosaur: no layout variable
2022-07-09 14:31:57 <Zedgamer9128[m]> i dont think the fish command is running probably because of ++
2022-07-09 14:32:08 <geekosaur> why do you suspect the ++?
2022-07-09 14:32:12 <Zedgamer9128[m]> sorry not that
2022-07-09 14:32:33 <Zedgamer9128[m]> i changed the command to killall yakuake to see if it will kill and it didnt
2022-07-09 14:32:58 <Zedgamer9128[m]> so the fish script is not at all running
2022-07-09 14:33:02 <geekosaur> ppOutput not running at all, hm, suppose that's possible/ hold on
2022-07-09 14:33:23 <geekosaur> dynamicLog def {ppLayout = show, ppOrder = \(_:l:_) -> [l], ppOutput = \s -> spawn $ "fish -c 'set -U layout " ++ s ++ "'"}
2022-07-09 14:33:50 <Zedgamer9128[m]> put it in logHook?
2022-07-09 14:33:56 <geekosaur> (remove the void wrapping the whole thing and change dynamicLogString to dynamicLog, I think ppOutput is not used with dynamicLogString)
2022-07-09 14:33:59 <geekosaur> yes, same place
2022-07-09 14:35:08 <geekosaur> > (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full"
2022-07-09 14:35:10 <lambdabot> "fish -c 'set -U layout \"Full\"'"
2022-07-09 14:35:22 <geekosaur> > text $ (\s -> id $ "fish -c 'set -U layout " ++ show s ++ "'") "Full"
2022-07-09 14:35:24 <lambdabot> fish -c 'set -U layout "Full"'
2022-07-09 14:35:51 Zedgamer9128[m] sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/2dee442a204474a6f7f12381ac1645add6ec4427
2022-07-09 14:36:47 <geekosaur> oh, it's dynamicLogWithPP
2022-07-09 14:37:00 <geekosaur> the old API is a bit of a mess, but the new API doesn't expose this stuff
2022-07-09 14:37:38 <Zedgamer9128[m]> whoa it worked thank you so much
2022-07-09 14:38:12 <geekosaur> might have a problem if you switch layouts (or workspaces if you use PerWorkspace) too quickly, since spawn is asynchronous
2022-07-09 14:40:10 <Zedgamer9128[m]> well only the killall command worked
2022-07-09 14:42:28 <geekosaur> if killall worked but the fish command didn't, you'll have to find someone who knows fish better, I think
2022-07-09 14:42:44 <geekosaur> I verified the command that it's sending above
2022-07-09 14:42:52 <geekosaur> and it looks like what you told me
2022-07-09 14:43:19 <geekosaur> > text $ ((\s -> id $ "fish -c 'set -U layout " ++ s ++ "'") . show) "Full"
2022-07-09 14:43:21 <lambdabot> fish -c 'set -U layout "Full"'
2022-07-09 14:43:36 qbt joins (~qbt@user/edun)
2022-07-09 14:44:50 <Zedgamer9128[m]> yeah the above cmd is right
2022-07-09 14:48:57 <Zedgamer9128[m]> i tried running a echo cmd
2022-07-09 14:49:09 <Zedgamer9128[m]> spawn $ "fish -c 'echo " ++ s ++ " > ~/fi'"
2022-07-09 14:49:15 <Zedgamer9128[m]> still didnt work
2022-07-09 14:49:25 <Zedgamer9128[m]> so i think ++ maybe?
2022-07-09 14:49:43 <geekosaur> this is where you check the session log
2022-07-09 14:49:51 <geekosaur> ~/.local/sddm/xorg-session.log
2022-07-09 14:51:59 <Zedgamer9128[m]> sighs
2022-07-09 14:52:08 <Zedgamer9128[m]> just because of one space
2022-07-09 14:52:54 <Zedgamer9128[m]> as i said i redirected all error to .xsession-errors
2022-07-09 14:53:24 <Zedgamer9128[m]> and when i opened that
2022-07-09 14:53:43 Zedgamer9128[m] sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/e7c278985245e2970676089a6bdfc4096767b71d
2022-07-09 14:54:19 <Zedgamer9128[m]> so because there was no space between layout and spacing it didnt work
2022-07-09 14:54:38 <Zedgamer9128[m]> well thanks for help and also for xsession errors idea
2022-07-09 15:08:03 × qther quits (~qther@138.75.66.60) (Quit: Client closed)
2022-07-09 15:59:31 <Zedgamer9128[m]> okay one last thing is trayer
2022-07-09 16:01:50 <Zedgamer9128[m]> okay so trayer has and --distancefrom where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it?
2022-07-09 16:02:26 <Zedgamer9128[m]> * okay so trayer has a --distancefrom cmd where a direction can be chose but only one but i want to distancefrom top and right to make it fit in xmobar like how tray has wifi after date time texts that is the thing i want to do but looks like it is not possible in trayer or is it?
2022-07-09 16:02:39 <Zedgamer9128[m]> so should i see other sys tray
2022-07-09 16:05:40 <geekosaur> I think you can repeat it? --distancefrom top ... --distancefrom right ...
2022-07-09 16:06:04 <Zedgamer9128[m]> geekosaur: i tried but only the last one works
2022-07-09 16:08:31 <geekosaur> oh, looks like you need the trayer-srg fork for that
2022-07-09 16:08:38 <geekosaur> also gets you multimonitor support
2022-07-09 16:09:27 <Zedgamer9128[m]> geekosaur: i have trayer-srg installed
2022-07-09 16:09:55 <geekosaur> trayer-srg, at least as on github, claims to support double --distancefrom parameters
2022-07-09 16:10:54 <Zedgamer9128[m]> where
2022-07-09 16:10:57 <geekosaur> https://github.com/sargon/trayer-srg/commit/4506241b4e60fe12e7c119a21347a158b93e13d6
2022-07-09 16:11:56 <Zedgamer9128[m]> ill try installing the -git version from aur

All times are in UTC.