other shit
This commit is contained in:
parent
02db2406be
commit
51d458a88b
13 changed files with 37 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## some layouts to order the windows ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
FLAG=$1 # input
|
||||
|
|
|
@ -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
|
||||
;;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## give windows the stardom ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
usage() {
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## monopolize the screen with the window in focus ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
FW=$(pfw) # focused window
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## move and resize windows ##
|
||||
|
||||
FLAG=$1 # option
|
||||
FW=$(pfw) # focused window
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## change variables contained between the qualities of root window ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
FLAG=$1
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## manage session and some more things ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
LOCK="slock" # lock screen monitor
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## sort windows by flock ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
NAMES=$(cat $HOME/.config/rootwm/names) # disponible names
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## switch between windows ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
TARGET=$(\
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## rename terminals ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
TARGET=$(pfw) # focused window
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## toggle between terminals ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
TNAME=$(echo $TERMINAL | cut -d ' ' -f 1) # terminal name
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
## clean screen ##
|
||||
|
||||
. $HOME/.config/rootwm/rwm_var
|
||||
|
||||
CWL="/tmp/nowm_cwl" # cleared windows list
|
||||
|
|
Loading…
Reference in a new issue