XMonad - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

TheMatten

How do I recover "standard" numpad behaviour in XMonad in some direct way? As in, I want to type numbers here, not special symbols

TheMatten

You mean something like setxkbmap -option "numpad:microsoft" (which I found but doesn't seem to work)?

Georgi Lyubenov // googleson78

actually, my numlock toggle works without any setxkbmap shenanigans, and I'm using i3 :thinking:

TheMatten

Right now it's just US

TheMatten

I've tried NumLock already

Georgi Lyubenov // googleson78

/usr/bin/setleds -D +num < "$tty"

TheMatten

What should be in place of $tty?

Georgi Lyubenov // googleson78

ah, lol, that's what I get for copy+paste

Georgi Lyubenov // googleson78

well, you're current vtty I assume

Georgi Lyubenov // googleson78

you can find it out with w I think

Georgi Lyubenov // googleson78

/dev/<curr-tty> this should be in-place of $tty

TheMatten

Wow, it works - wait, does it mean that my NumLock key doesn't work? :sweat_smile:

Georgi Lyubenov // googleson78

do they work with some other DE? I highly doubt xmonad has anything to do with kb setup, it's only a window manager

TheMatten

1234567890 :big_smile:
Hmm, interesting

TheMatten

They work in GNOME3, though I'm not sure if NumLock works there - let me try

Georgi Lyubenov // googleson78

and see if your numlock button registers

TheMatten

Okay, I'm stupid - I was pressing "lock screen" button all the time :joy:

TheMatten

Where's numlock then - I see "scr lk", but not "num lk" or anything similar

TheMatten

I guess I just have dumb keyboard :big_smile:

Georgi Lyubenov // googleson78

I mean, you can upload a photo and we can look at it together :grinning_face_with_smiling_eyes:

Torsten Schmits

it should be above your 7 key :sweat_smile:

Torsten Schmits

I had an ideapad where the numlock was like Fn-k or something

Torsten Schmits

but it also had all the num block keys as Fn

TheMatten

Georgi Lyubenov // googleson78 said:

I mean, you can upload a photo and we can look at it together :grinning_face_with_smiling_eyes:

It's this one (with local characters sprinkled in top row, not relevant):
https://ssl-product-images.www8-hp.com/digmedialib/prodimg/lowres/c06073431.png

Torsten Schmits

as I said, it should be the one above the numpad's 7

Georgi Lyubenov // googleson78

like what ctrl+v does on windows?

TheMatten

Yeah... :big_smile:

Torsten Schmits

I've one of those on a keyboard as well

Sridhar Ratnakumar

Xmonad is rad. xmonad-contrib has some interesting stuff; some are rather abstract to grasp as first glance, eg: https://hackage.haskell.org/package/xmonad-0.15/docs/XMonad-StackSet.html

ideal candidate for blog posts

Vladimir Ciobanu

Do you have your config up anywhere? I'm using XMonad but I lack the imagination to use it in cool ways.

Sridhar Ratnakumar

nixos-rebuild switch && xmonad --restart also reloads your xmonad with new config, without having to logout and login back.

Kampouse

When your first editing your config i would just use the .Xmonad and Build from there and when your done drop your Xmonad.hs to your module folder if your on nix and then add then the above when your just doing small edit :wink:

Sridhar Ratnakumar

An idea for a Chrome extension: open link in a new window that is docked to the side (whilst main chrome window is still positioned in center; the middle column of 3-column layout).

Sridhar Ratnakumar

More generally, is there an extension that allows me to run arbitrary commands triggered by context menu on links and such?

Kampouse

I think its already possible :flushed: with some brower/vim emulator for chrome for the spawning in the right place am not 100% how
Its supposed to know what collum to spawn on