mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
changed wmiirc, exporting WMII_ in a separate line, proglist don't does tr : ' ', this should be done earlier
This commit is contained in:
parent
05964332e1
commit
bce2865e89
15
rc/wmiirc
15
rc/wmiirc
@ -7,8 +7,7 @@ xwrite() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proglist() {
|
proglist() {
|
||||||
ls -lL `echo "$@" | tr : ' '` 2>/dev/null |
|
ls -lL "$@" 2>/dev/null | awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u
|
||||||
awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MODKEY=Mod1
|
MODKEY=Mod1
|
||||||
@ -17,9 +16,11 @@ DOWN=j
|
|||||||
LEFT=h
|
LEFT=h
|
||||||
RIGHT=l
|
RIGHT=l
|
||||||
|
|
||||||
WMII_FONT='fixed' export WMII_FONT
|
WMII_FONT='fixed'
|
||||||
WMII_NORMCOLORS='#222222 #eeeeee #666666' export WMII_NORMCOLORS
|
WMII_NORMCOLORS='#222222 #eeeeee #666666'
|
||||||
WMII_SELCOLORS='#ffffff #285577 #4c7899' export WMII_SELCOLORS
|
WMII_SELCOLORS='#ffffff #285577 #4c7899'
|
||||||
|
|
||||||
|
export WMII_FONT WMII_NORMCOLORS WMII_SELCOLORS
|
||||||
|
|
||||||
# give wmiiwm a chance to start
|
# give wmiiwm a chance to start
|
||||||
while :
|
while :
|
||||||
@ -46,7 +47,7 @@ EOF
|
|||||||
xsetroot -solid '#0b1014'
|
xsetroot -solid '#0b1014'
|
||||||
status &
|
status &
|
||||||
PROGS_FILE=/tmp/.wmiimenu.$USER.progs
|
PROGS_FILE=/tmp/.wmiimenu.$USER.progs
|
||||||
proglist $PATH >$PROGS_FILE &
|
proglist `echo "$PATH" | tr : ' '` >$PROGS_FILE &
|
||||||
|
|
||||||
# SHORTCUTS
|
# SHORTCUTS
|
||||||
xwrite /def/grabmod $MODKEY
|
xwrite /def/grabmod $MODKEY
|
||||||
@ -127,7 +128,7 @@ do
|
|||||||
$MODKEY-m)
|
$MODKEY-m)
|
||||||
xwrite /view/sel/mode max;;
|
xwrite /view/sel/mode max;;
|
||||||
$MODKEY-a)
|
$MODKEY-a)
|
||||||
`proglist CONFPREFIX/wmii-3:$HOME/.wmii-3 | wmiimenu` &;;
|
`proglist CONFPREFIX/wmii-3 $HOME/.wmii-3 | wmiimenu` &;;
|
||||||
$MODKEY-p)
|
$MODKEY-p)
|
||||||
`wmiimenu <$PROGS_FILE` &;;
|
`wmiimenu <$PROGS_FILE` &;;
|
||||||
$MODKEY-t)
|
$MODKEY-t)
|
||||||
|
Loading…
Reference in New Issue
Block a user