amarok

joined 3 weeks ago
 

Today I was looking for a solution how to disable the urgency hint for programs which I automatically launch in my i3 config file on startup.

I have saved the layout of my workspace number 2 (see https://i3wm.org/docs/layout-saving.html for the docs) and in my i3 config I attach that layout to workspace number 2 and I also launch some programs (applications) there. Then I let i3-msg switch to workspace 1 so I see the wallpaper. But the launched programs on workspace 2 launch just after that (I guess a few milliseconds later) so they are not focused and i3 changes the workspace color to red, which is annoying because I have to switch to workspace 2 and back to workspace 1 to get rid of the red color.

Solution: put this Bash script to your i3 config folder, in my case the full path is ~/.config/i3/urgency_off.sh and make the file executable.

#!/bin/sh
# Disable urgency hint of all opened windows on i3wm startup.
# Add it to i3 config as exec.

sleep 2

for i in $(xdotool search --class .\*)
do
	xdotool set_window --urgency 0 $i
done

Then put this line at the end of your ~/.config/i3/config file:

exec --no-startup-id ~/.config/i3/urgency_off.sh

Make sure you have xdotool installed. On Debian-based systems you can install it simply with apt install xdotool. If you use Wayland instead of X you may need to use another tool.

[–] [email protected] 2 points 5 days ago (1 children)

Thanks for sharing. So there is no option to change the Win key in Blender4, to use (for example) AltGr (right Alt) instead?

[–] [email protected] 1 points 1 week ago

What happens if you remove the gaps between windows? Just guessing, but maybe the bug simply takes the gap width and uses it for the inner padding? I don't use gaps at all and I've never experienced this issue. (Docs: https://i3wm.org/docs/userguide.html#gaps)

 

This is a HOW TO, not a question :-)

Binding numeric keys (for example KP_1 or KP_0) is not as easy as it might seem. A simple bindsym $mod+KP_1 does NOT work in X11 (but maybe it works in Wayland?).

Solution

for example to define a key binding to switch to workspace 1 we can use: bindsym $mod+Mod2+KP_1 workspace number $ws1

Background info: Mod2 specifies the numlock key (although xev reports it's called Num_Lock with code 77). Mod2 is not a key to be pressed, it seems to be the numlock state, so +Mod2 means the keybinding is active with num_lock enabled.

 

I noticed a strange silent error: when having a typo in keymap.json file, for example "ctlr-space" instead of "ctrl-space", the whole keymap is ignored and default key bindings are active instead. Why isn't there any error message? So pay attention to your keymap.json modifications!

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

AFAIK the glibc compatibility issues were related to very outdated glibc versions. IMHO almost nobody with an old distro (Debian 10 or similar) will be using a modern IDE. I'm using Debian stable (12) which has a much newer glibc than required for remote ssh to work. Sidenote: half a year ago Microsoft even didn't bother to inform its VS Code users that they were dropping support for old glibc when they updated their remote SSH extension :) I was one of many impacted users, because Amazon decided to use an outdated glibc in their weird Amazon Linux distro.

[–] [email protected] 1 points 2 weeks ago

parcellite is a lightweight clipboard manager, I use it in i3. It has some useful features and supports basic key bindings. A more advanced one is xfce4-clipman (works standalone without Xfce, uses Gtk).

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

Someone already gave me the answer elsewhere. It is the "editor::Hover" action, this is the default keymap excerpt:

"context": "Editor",
    "bindings": {
      "ctrl-k ctrl-i": "editor::Hover",
...

I just had to remap it because I already use ctrl-k for something else.

4
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]
 

Hi, could someone please help me with this: what is the keybinding to open those pop-up windows which show the function description? See my screenshot. In other editors it's sometimes called "code lense".

I've looked everywhere and I simply cannot find it (if I only knew how the action is called in the settings file...). I'm using a tiling window manager, so I don't want to use the mouse every time. Thanks.