Litle fixes.
This commit is contained in:
parent
e8d562914b
commit
2d4cf4924a
5 changed files with 44 additions and 115 deletions
63
README.md
63
README.md
|
@ -12,14 +12,15 @@ https://git.disroot.org/root_sti/nowm.git (dead at birth)
|
|||
|
||||
|
||||
|
||||
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, using and taking advantage of the modification and addition of atoms in root window.
|
||||
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.
|
||||
I am learning, discovering, experimenting. This makes these scripts very volatile.
|
||||
Some of the scripts have other crap as dependencies which I have made available at:
|
||||
https://git.disroot.org/root_sti/others.git
|
||||
|
||||
**My thanks and credits to the wmutils project. I wish you luck on your way.**
|
||||
|
||||
**FEATURES:**
|
||||
|
||||
**THE MAIN FEATURES:**
|
||||
|
||||
|
||||
**[wms_batlarm.sh]**
|
||||
|
@ -34,9 +35,6 @@ move / resize windows.
|
|||
-fullsize.
|
||||
-half screen (north, south, est, west).
|
||||
|
||||
**[wms_backgroundize.sh]**
|
||||
send windows to the background and ingore them.
|
||||
|
||||
**[wms_termtogle.sh]**
|
||||
cicle opened terminals.
|
||||
|
||||
|
@ -46,6 +44,35 @@ change terminal name.
|
|||
**[wms_clearer.sh]**
|
||||
clear desktop maping and unmaping windows.
|
||||
|
||||
**[wms_voyeur.sh]**
|
||||
watch xorg events and do things.
|
||||
|
||||
**[wms_mainrole.sh]**
|
||||
manage focus and colors.
|
||||
|
||||
**[wms_value.sh]**
|
||||
resize windows percentage. (regarding screen size), resize master area in tiling mode, resize gap (bloat)
|
||||
|
||||
**[wms_menu.sh]**
|
||||
menu made with fzf and xterm.
|
||||
|
||||
**[wms_launcher.sh]**
|
||||
launcher made with fzf and xterm.
|
||||
|
||||
**THE FETICHES**
|
||||
|
||||
**[wms_mimic.sh]**
|
||||
extract colors from the desktop content and use them for decorations, background and more.
|
||||
|
||||
**[wms_editor.sh]**
|
||||
GUI editor launcher.
|
||||
|
||||
**[wms_panel.sh]**
|
||||
applet made with dzen2 to show system details and clock.
|
||||
|
||||
**[wms_backgroundize.sh]**
|
||||
send windows to the background and ingore them.
|
||||
|
||||
**[wms_shepperd.sh]**
|
||||
herds (group windows by herd).
|
||||
-add individual window.
|
||||
|
@ -58,32 +85,6 @@ window arrangements.
|
|||
-widespread.
|
||||
-tiled.
|
||||
|
||||
**[wms_voyeur.sh]**
|
||||
watch xorg events and do things.
|
||||
|
||||
**[wms_mainrole.sh]**
|
||||
manage focus and colors.
|
||||
|
||||
**[wms_value.sh]**
|
||||
resize windows percentage. (regarding screen size), resize master area in tiling mode, resize gap (bloat)
|
||||
|
||||
_the new ones_
|
||||
|
||||
**[wms_menu.sh]**
|
||||
menu made with fzf and xterm.
|
||||
|
||||
**[wms_launcher.sh]**
|
||||
launcher made with fzf and xterm.
|
||||
|
||||
**[wms_mimic.sh]**
|
||||
extract colors from the desktop content and use them for decorations, background and more.
|
||||
|
||||
**[wms_editor.sh]**
|
||||
GUI editor launcher.
|
||||
|
||||
**[wms_panel.sh]**
|
||||
clock applet made with dzen2 to show system details and clock.
|
||||
|
||||
**[wms_screensaver.sh]**
|
||||
experimental scripts that keps windows in a loop of random movements.
|
||||
|
||||
|
|
31
batlarm.sh
31
batlarm.sh
|
@ -1,31 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
## alternating window border colors depending on battery charge ##
|
||||
## this script depends on power.sh which is in the /others repo ##
|
||||
|
||||
. /tmp/wms_var
|
||||
|
||||
# freq.
|
||||
FREQ=0.5
|
||||
# alternate colors.
|
||||
COLORS="aa0000 $AC"
|
||||
|
||||
while true:; do
|
||||
# battery status.
|
||||
read -r STATUS < /sys/class/power_supply/BAT0/status
|
||||
# if status discharging.
|
||||
if [ "$STATUS" = "Discharging" ]; then
|
||||
# alternate border colors.
|
||||
for c in $COLORS; do
|
||||
chwb -c $c $(pfw)
|
||||
sleep $FREQ
|
||||
done
|
||||
|
||||
else # if not
|
||||
# default border colors.
|
||||
chwb -c $AC $(pfw)
|
||||
# exit loop.
|
||||
break
|
||||
|
||||
fi
|
||||
done
|
|
@ -6,7 +6,7 @@ BITMAP="$HOME/.bitmap.xbm"
|
|||
GIF="$HOME/.gif"
|
||||
|
||||
# terminal
|
||||
TERMINAL=xterm
|
||||
TERMINAL="xterm"
|
||||
|
||||
# x editor
|
||||
XENAME="emacs"
|
||||
|
@ -22,10 +22,10 @@ GEOMETRY=66x11+314+250
|
|||
BW=2
|
||||
|
||||
# active color
|
||||
AC=829AA6
|
||||
AC=B6B6B6
|
||||
|
||||
# inactive color
|
||||
IC=4D4D4D
|
||||
IC=616161
|
||||
|
||||
# background color
|
||||
BC=101010
|
||||
|
@ -34,10 +34,13 @@ BC=101010
|
|||
FC=A0A0A0
|
||||
|
||||
# windows percentage
|
||||
WP=90
|
||||
WP=85
|
||||
|
||||
# tiling master area percentage
|
||||
MP=60
|
||||
|
||||
# gaps
|
||||
GAP=6
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ NAMES="$HOME/.config/wms/wms_names"
|
|||
usage() {
|
||||
cat<<EOF
|
||||
usage:
|
||||
wms_shepperd.sh [ -a, -r, -t ]
|
||||
wms_shepperd.sh [ -a, -A, -d, -D, -t ]
|
||||
-a) add
|
||||
-A) add all
|
||||
-d) delete
|
||||
|
@ -26,7 +26,8 @@ EOF
|
|||
|
||||
# create atom in focused window
|
||||
add_focused() {
|
||||
name="$($XMENU < $NAMES)"
|
||||
# chose herd name.
|
||||
h_name="$($XMENU < $NAMES)"
|
||||
if [ -n "$name" ]; then
|
||||
atomx WM_HERD="$name $FW" $FW
|
||||
else
|
||||
|
@ -36,7 +37,8 @@ add_focused() {
|
|||
|
||||
# create atom in all maped windows
|
||||
add_all() {
|
||||
name="$($XMENU < $NAMES)"
|
||||
# chose herd name.
|
||||
h_name="$($XMENU < $NAMES)"
|
||||
for wid in $AMW; do
|
||||
if [ -n "$name" ]; then
|
||||
atomx WM_HERD="$name $wid" $wid
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
# wallpaper #
|
||||
WALL="$HOME/.wall.png"
|
||||
BITMAP="$HOME/.bitmap.xbm"
|
||||
|
||||
# gif #
|
||||
GIF="$HOME/.gif"
|
||||
|
||||
# terminal
|
||||
TERMINAL="xterm"
|
||||
|
||||
# x editor
|
||||
XENAME="emacs"
|
||||
XECMD="emacsclient -c --alternate-editor="""
|
||||
|
||||
# menu command
|
||||
XMENU=wms_menu.sh
|
||||
|
||||
# launcher / menu geometry
|
||||
GEOMETRY=66x11+314+250
|
||||
|
||||
# border width
|
||||
BW=2
|
||||
|
||||
# active color
|
||||
AC=829AA6
|
||||
|
||||
# inactive color
|
||||
IC=4D4D4D
|
||||
|
||||
# background color
|
||||
BC=101010
|
||||
|
||||
# font color
|
||||
FC=A0A0A0
|
||||
|
||||
# windows percentage
|
||||
WP=85
|
||||
|
||||
# tiling master area percentage
|
||||
MP=60
|
||||
|
||||
# gaps
|
||||
GAP=6
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue