wms/README.md

105 lines
3.8 KiB
Markdown
Raw Normal View History

2023-03-20 03:16:02 +01:00
# [ wms ]
2023-04-03 05:15:35 +02:00
[w]indow [m]manipulation [s]hellscripts.
2023-03-20 03:21:20 +01:00
A bunch of shellscripts around **wmutils**.
2023-03-07 03:14:33 +01:00
2023-03-20 03:16:02 +01:00
Well, not only is wms not a wm per se, it's also not an original project. What is it then you ask. It's my implementation of some tools from the wmutils project in a **bunch of horrible shell scripts**. As a clear requirement, you should have the wmutils binaries. Namely:
2023-03-07 03:14:33 +01:00
https://github.com/wmutils.
2023-03-20 03:16:02 +01:00
Also wms is a derivative of [ ! wm]:
https://git.disroot.org/root_sti/nowm.git (dead at birth)
2023-03-07 03:14:33 +01:00
2024-02-16 05:39:42 +01:00
This one is designed to maintain and incorporate from that one, things that are essential for my workflow. Also, this must contain future experiments around the configuration of my scripts.
2023-03-07 03:24:28 +01:00
I am learning, discovering, experimenting. This makes these scripts very volatile.
2023-03-28 06:24:25 +02:00
Some of the scripts have other crap as dependencies which I have made available at:
https://git.disroot.org/root_sti/others.git
2023-03-07 03:14:33 +01:00
2024-09-11 03:54:51 +02:00
**FUNDAMENTALS**
2024-09-11 04:00:30 +02:00
2024-09-11 03:54:51 +02:00
Two great decisions that may seem like errors but are rather conditioning from which I cannot escape since in principle they move me towards their truth. To save: the use of Xterm as a term emulator is such an unorthodox launcher.
2024-09-11 04:00:30 +02:00
2024-09-11 03:54:51 +02:00
The first choice is based on the fact that in many distros Xterm is installed together with Xorg and if not, it is the terminal emulator closest to Xorg as a project. I could use st or urxvt, but it would be moving towards another paradigm and breaking the conceptual homogeneity of this project.
2024-09-11 04:00:30 +02:00
2024-09-11 03:54:51 +02:00
The second option is based on the extension of the first and the fact of using what is already installed. Since fzy/fzy is present in many scripts taking the place of a terminal menu, extending its operation and putting it in a resized terminal as a launcher is more than sensible.
2024-02-22 04:38:47 +01:00
I have left the three main scripts, which are the ones I use daily, as the fundamental option. I've put the others, which are mostly experimental features, in a folder called opt, for optional.
2023-03-14 04:51:11 +01:00
**My thanks and credits to the wmutils project. I wish you luck on your way.**
2024-02-16 05:39:42 +01:00
2024-02-22 04:46:17 +01:00
**THE CORE SCRIPTS:**
2023-03-15 05:44:56 +01:00
2024-02-22 04:46:17 +01:00
**[wms_voyeur.sh]**
watch xorg events and do things.
2023-03-20 03:16:02 +01:00
2024-02-22 04:46:17 +01:00
**[wms_focuser.sh]**
manage focus and colors.
2023-03-28 06:24:25 +02:00
2024-02-22 04:46:17 +01:00
**[wms_usher.sh]**
2023-03-20 03:16:02 +01:00
move / resize windows.
2023-03-14 04:51:11 +01:00
-fullsize.
-half screen (north, south, est, west).
2024-02-22 04:46:17 +01:00
-centered.
2023-03-14 04:51:11 +01:00
2023-03-15 05:40:44 +01:00
2024-02-22 04:46:17 +01:00
**THE OPT SCRIPTS**
2023-03-15 05:40:44 +01:00
2024-02-22 04:46:17 +01:00
**[wms_jumper.sh]**
jump across windows with menú. (dmenu, fzfmenu, etc.)
-next / prev / wid.
2023-03-14 04:51:11 +01:00
2024-02-22 04:46:17 +01:00
**[wms_shepperd.sh]**
herds (group windows by herd).
-add individual window.
-add all windows.
-togle herds.
2023-03-20 03:16:02 +01:00
2024-02-22 04:46:17 +01:00
**[wms_layout.sh]**
window arrangements.
-monocule.
-widespread.
-tiled.
2023-03-20 03:16:02 +01:00
2023-03-15 05:40:44 +01:00
2024-02-22 04:46:17 +01:00
**THE FETICHES**
2023-12-29 05:25:52 +01:00
2024-02-22 04:46:17 +01:00
**[wms_batlarm.sh]**
alternate color borders according to the state of the battery (only on laptops, depends on power.sh)
2023-12-29 05:25:52 +01:00
2024-02-22 04:46:17 +01:00
**[wms_termrename.sh]**
change terminal name.
2024-02-16 05:39:42 +01:00
2024-02-22 04:46:17 +01:00
**[wms_clearer.sh]**
clear desktop maping and unmaping windows.
2024-02-22 04:48:50 +01:00
2023-12-29 05:25:52 +01:00
**[wms_mimic.sh]**
2024-01-18 14:54:04 +01:00
extract colors from the desktop content and use them for decorations, background and more.
2023-12-29 05:25:52 +01:00
2024-02-16 05:39:42 +01:00
**[wms_backgroundize.sh]**
send windows to the background and ingore them.
2024-01-18 14:54:04 +01:00
**[wms_screensaver.sh]**
experimental scripts that keps windows in a loop of random movements.
2023-03-14 04:51:11 +01:00
2024-02-26 05:32:24 +01:00
**SETUP STEPS**
1 - download, compile and install wmutils/core and wmutils/opt.
2 - clone this repo and put at least the main scripts in some executable path.
3 - install a daemon for keyboard events, I have used sxhkd. Copy your configuration file, sxhkdrc, from wms/config to .config/sxhkd/.
4 - copy the wms variables file, wms_var, contained in wms/config to .config/wms/.
5 - add the following lines in .xinitrc or sxrc:
sxhkd &
exec wms_voyeur.sh
!! In the case of using a Display Manager, copy the wms.desktop file contained in wms/config to /usr/share/xsessions and add the file wms.sh to the executable path.
2024-01-21 04:07:47 +01:00
**This spawn doesn't have mouse support**
**Sorry for the verbosity of the comments, the idea is to explain each script in general terms so that it can be easier to hack them**