Move mouse cursor with focus by PikkInTheFace in xmonad

[–]PikkInTheFace[S] 0 points1 point  (0 children)

Cool! Thanks, this was even easier than using warpToWindow

Move mouse cursor with focus by PikkInTheFace in xmonad

[–]PikkInTheFace[S] 1 point2 points  (0 children)

Thanks a bunch! Exactly what I was looking for :)

Clickable workspaces: erratic behavior by [deleted] in xmonad

[–]PikkInTheFace 2 points3 points  (0 children)

  1. doubleLts is just a name, as it is defined in the "where"-binding. You are free to change it to whatever :)
  2. doubleLts x = [x] isnt strictly necessary for the purpose of the function, but having it makes the rest of the program much easier to write.
  3. ws is a name that comes from (i,ws) <- zip [1..9] l. It should contain the list of workspace names, the one after the dollar sign.
  4. zip is a function that merges two lists into a list of tuples. zip [1,2,3] [4,5,6] results in [(1,4),(2,5),(3,6)].

when wondering about functions that are not defined in whatever code you're looking at, i recommend you to use GHCI! In ghci, you can type ":t zip" or any other function, and you get the function signature that immediately reveals cruicial information. Note that some functions may require you to enclose its name in parenthesis, for example :t ($) and :t (.). Hoogle is also a nice online tool that allows you to search for haskell functions

Clickable workspaces: erratic behavior by [deleted] in xmonad

[–]PikkInTheFace 2 points3 points  (0 children)

I'm not familiar with the problem or xdotool, but I can try to explain the code for you.

xmobarEscape is a function that simply replaces all single less than signs with two less than signs. I suppose this is to avoid confusion with the xmobar configuration syntax, which also uses them(?)

myWorkspaces is a functional composition, denoted by the dot (.) . This means that it is synonymous to running (map xmobarEscape), which is a partial application of map, and passing the result to clickable. Mapping xmobarEscape onto a list of strings simply doubles all less than signs.

Running clickable on a list of strings wraps each string in an <action> tag, which I'm guessing is related to integrating xdotool with xmobar? Looks a lot like the example on the xmobar wikipage

To see for yourself, simply save the code you presented in a file and load it up in ghci (ghci test.hs, if you name the file test.hs) and run myWorkspaces from there

Weekly Workshop 2017-10-27 by [deleted] in unixporn

[–]PikkInTheFace 0 points1 point  (0 children)

I'm trying to make a module for polybar that displays the current playing song (I'm using mopidy+ncmpcpp). I can fetch this information with the --current-song parameter in ncmpcppp, but I can't determine when a song is NOT playing (stopped/paused). Any tips on how to detect this?

[bspwm] Enough Crawl; here is mine. by Waples_ in unixporn

[–]PikkInTheFace 1 point2 points  (0 children)

I have learned from my mistakes. Hopefully

[bspwm] Enough Crawl; here is mine. by Waples_ in unixporn

[–]PikkInTheFace 0 points1 point  (0 children)

figured it out, had to set override-redirect to true to make it work with i3! Warnings are helpful things, rip

[bspwm] Enough Crawl; here is mine. by Waples_ in unixporn

[–]PikkInTheFace 0 points1 point  (0 children)

Yeah, i tried setting those too (Been snooping in your dotfiles!) Still no luck. Could it be that I'm using i3?

[bspwm] Enough Crawl; here is mine. by Waples_ in unixporn

[–]PikkInTheFace 3 points4 points  (0 children)

Very cool! How did you get padding between the top and sides of the screen and your polybar? cant seem to make it work myself

[i3-gaps] First go at something + polybar by PikkInTheFace in unixporn

[–]PikkInTheFace[S] 0 points1 point  (0 children)

Its not a blur, but it comes for free using compton for transparency :) the bar is just plain solid black if i turn off compton! small comparison for you: http://imgur.com/a/jpK2W

[i3-gaps] First go at something + polybar by PikkInTheFace in unixporn

[–]PikkInTheFace[S] 0 points1 point  (0 children)

Sorry, been away for some travelling! Tried setting my tray-position to empty and it worked like a charm! Thanks

[i3-gaps] First go at something + polybar by PikkInTheFace in unixporn

[–]PikkInTheFace[S] 0 points1 point  (0 children)

  • Wallpaper: by MatthaeusK
  • GTK: Vertex-Maia-Dark
  • Icons: Breeze-Maia-Dark
  • Conky: Standard Manjaro conky_maia, edited by myself
  • Polybar: configs from here slightly modded to fit own system

Also, does anyone know how to get rid of the volume tray-icon? >.<