![]() ![]() So, on my desktop’s sxhkdrc I rewrite that binding. However, on my desktop I have a multi-monitor setup, and therefore want to choose a wallpaper from my widescreen wallpapers directory instead. In that snippet I choose a wallpaper from my “normal” wallpaper collection. On this section I showed my snippet for changing the lock screen wallpaper. Here’s a simple example to help better illustrate what I mean. The latter is extremely important, because it allows me to have the same keybinding do different things on different machines. The first contains the configuration common among all my machines, and the other is unique to each machine, adds extra stuff AND also rewrites bindings from the common config file. I split my config file into 2 files, one I called mon and the other sxhkdrc. While searching for a solution that’ll allow me to share the “core” configuration between machines, I noticed that sxhkd supported loading config files from multiple different sources at once. Most of my configuration applies to all of them, but inevitably some machines require small modifications. I tried using xdotool and xdo instead, but both of them offered far worse responsiveness. Note: Performance of this tweak could use some improvement, mainly due to the usage of the old xautomation tool. Xte 'keyup Alt_L' 'key Delete' 'keydown Alt_L' # Expand/contract a window by moving one of its side outward/inward cmdpowershell (.NET Core 3.0SDK): dotnet new -i Stylet.Templates Stylet dotnet new stylet -o StyletBookStore StyletWPF VS2019StyletBookStore.csproj, F5: OK. I found myself always doing step 2 and 3 without thinking too much, so I thought why not have a dedicated binding just for doing that. Move the marked window to the preselected space.However, the common way of doing that is quite cumbersome where each step has its own separate keybinding: Sometimes, people want to manually reorder windows to something like a grid of four windows. Generate a random password to clipboardīspwm has this Fibonacci-style window opening order, where new windows get smaller and smaller.Move window to a workspace & switch to it.One last thing: most of the snippets involve around bspwm, but some are not, so I hope that even users of other window managers will find them useful. For the latter I’ll add a link to the author’s snippet. ![]() Some of the snippets I wrote myself, while some I found online. Instead, I want to share some snippets of my configuration, that may help inspire people, or even convince them to switch to bspwm+sxhkd. There are tones of articles on how to set up bspwm with sxhkd, so I won’t go into basic configuration here. To complement bspwm’s “missing feature”, the developer created another tool, sxhkd, which helps managing key bindings on any Linux system, but works especially well with bspwm (of course). The other stuff (namely, managing system key bindings) it leaves for other tools to do. I chose bspwm for various reasons I won’t go into in this post, but one of the strong points that I see in its design is that it does only one thing - manage windows. That’s why, pretty soon after publishing this post, I moved to using a tiling window manager, and never looked back. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |