From 51d458a88b971d4b4c04c278e3d52ee1c0d78158 Mon Sep 17 00:00:00 2001 From: rootniformaticaservice Date: Tue, 7 Mar 2023 10:01:29 -0300 Subject: [PATCH] other shit --- rwm_arrangement.sh | 2 ++ rwm_backgroundize.sh | 18 +++++++++++++----- rwm_mainrole.sh | 2 ++ rwm_monopolize.sh | 2 ++ rwm_moveresize.sh | 2 ++ rwm_revalue.sh | 2 ++ rwm_session.sh | 2 ++ rwm_shepperd.sh | 2 ++ rwm_switcher.sh | 2 ++ rwm_termbaptist.sh | 2 ++ rwm_termtogle.sh | 2 ++ rwm_voyeur.sh | 2 ++ rwm_wiper.sh | 2 ++ 13 files changed, 37 insertions(+), 5 deletions(-) diff --git a/rwm_arrangement.sh b/rwm_arrangement.sh index 439819f..c364c87 100755 --- a/rwm_arrangement.sh +++ b/rwm_arrangement.sh @@ -1,5 +1,7 @@ #!/bin/sh +## some layouts to order the windows ## + . $HOME/.config/rootwm/rwm_var FLAG=$1 # input diff --git a/rwm_backgroundize.sh b/rwm_backgroundize.sh index d99d819..43fd8c6 100755 --- a/rwm_backgroundize.sh +++ b/rwm_backgroundize.sh @@ -1,9 +1,16 @@ #!/bin/sh -. $HOME/.wmvar +## send windows to desktop background ## + +. $HOME/.config/rootwm/rwm_var FLAG=$1 -FW=$(pfw) # focused window +FW=$(pfw) # focused window +RID=$(lsw -r) # root widnow id +RW=$(wattr w $RID) # root width +RH=$(wattr h $RID) # root height +SW=$((RW - 2*BW)) # usable screen width +SH=$((RH - 2*BW)) # usable screen height usage() { echo "usage: @@ -14,13 +21,14 @@ nowm_ignore.sh [ -i, -u ] case $FLAG in -i) # ignore - if [ ! "$(wattr o $(pfw) && echo 1)" ]; then # if override is not set + if [ ! "$(wattr o $FW && echo 1)" ]; then # if override is not set + wtp 0 0 $SW $SH $FW ignw -s $FW # ignore focused window - chwb -c $IGNORED $FW # change border color to ignore + chwb -c 000000 $FW # change border color to ignore else ignw -r $FW # unignore focused window - chwb -c $ACTIVE $FW # change border color to active + chwb -c $FG $FW # change border color to active fi ;; diff --git a/rwm_mainrole.sh b/rwm_mainrole.sh index 1cff6c1..fc71dbf 100755 --- a/rwm_mainrole.sh +++ b/rwm_mainrole.sh @@ -1,5 +1,7 @@ #!/bin/sh +## give windows the stardom ## + . $HOME/.config/rootwm/rwm_var usage() { diff --git a/rwm_monopolize.sh b/rwm_monopolize.sh index 94e6b9d..f6c25b9 100755 --- a/rwm_monopolize.sh +++ b/rwm_monopolize.sh @@ -1,5 +1,7 @@ #!/bin/sh +## monopolize the screen with the window in focus ## + . $HOME/.config/rootwm/rwm_var FW=$(pfw) # focused window diff --git a/rwm_moveresize.sh b/rwm_moveresize.sh index bd1a59d..9ec362e 100755 --- a/rwm_moveresize.sh +++ b/rwm_moveresize.sh @@ -1,5 +1,7 @@ #!/bin/sh +## move and resize windows ## + FLAG=$1 # option FW=$(pfw) # focused window diff --git a/rwm_revalue.sh b/rwm_revalue.sh index fab466d..fcfdd22 100755 --- a/rwm_revalue.sh +++ b/rwm_revalue.sh @@ -1,5 +1,7 @@ #!/bin/sh +## change variables contained between the qualities of root window ## + . $HOME/.config/rootwm/rwm_var FLAG=$1 diff --git a/rwm_session.sh b/rwm_session.sh index 1543fac..7a4018b 100755 --- a/rwm_session.sh +++ b/rwm_session.sh @@ -1,5 +1,7 @@ #!/bin/sh +## manage session and some more things ## + . $HOME/.config/rootwm/rwm_var LOCK="slock" # lock screen monitor diff --git a/rwm_shepperd.sh b/rwm_shepperd.sh index ad8e15c..c794c6a 100755 --- a/rwm_shepperd.sh +++ b/rwm_shepperd.sh @@ -1,5 +1,7 @@ #!/bin/sh +## sort windows by flock ## + . $HOME/.config/rootwm/rwm_var NAMES=$(cat $HOME/.config/rootwm/names) # disponible names diff --git a/rwm_switcher.sh b/rwm_switcher.sh index 98da6f1..b423509 100755 --- a/rwm_switcher.sh +++ b/rwm_switcher.sh @@ -1,5 +1,7 @@ #!/bin/sh +## switch between windows ## + . $HOME/.config/rootwm/rwm_var TARGET=$(\ diff --git a/rwm_termbaptist.sh b/rwm_termbaptist.sh index b61a985..8ad30b6 100755 --- a/rwm_termbaptist.sh +++ b/rwm_termbaptist.sh @@ -1,5 +1,7 @@ #!/bin/sh +## rename terminals ## + . $HOME/.config/rootwm/rwm_var TARGET=$(pfw) # focused window diff --git a/rwm_termtogle.sh b/rwm_termtogle.sh index 698678f..f84c7c4 100755 --- a/rwm_termtogle.sh +++ b/rwm_termtogle.sh @@ -1,5 +1,7 @@ #!/bin/bash +## toggle between terminals ## + . $HOME/.config/rootwm/rwm_var TNAME=$(echo $TERMINAL | cut -d ' ' -f 1) # terminal name diff --git a/rwm_voyeur.sh b/rwm_voyeur.sh index 4f897f5..151a8de 100755 --- a/rwm_voyeur.sh +++ b/rwm_voyeur.sh @@ -1,5 +1,7 @@ #!/bin/sh +## snooping on xorg window events and doing some things ## + wew | while read ev wid args; do case $ev in MAP) # focus on mappng requests diff --git a/rwm_wiper.sh b/rwm_wiper.sh index 63ed95c..212a237 100755 --- a/rwm_wiper.sh +++ b/rwm_wiper.sh @@ -1,5 +1,7 @@ #!/bin/sh +## clean screen ## + . $HOME/.config/rootwm/rwm_var CWL="/tmp/nowm_cwl" # cleared windows list